There are two parts to the question above:
- Showing a warning that U should use 64-bit and Hadoop Native Lib compiled into 32 bits. This warning will not affect your code.
- The second error is mainly because it cannot put the file in the input folder. U need to create a folder in hadoop using the hadoop mkdir command:
hadoop fs -mkdir / hadoopinput
OR [for new version]
hdfs dfs -mkdir / hadoopinput
Now U can put the file in the folder:
hdfs dfs -put / Users / {username} / Desktop / file01 / hadoopinput
To verify that the file is copied inside the folder or does not use the following command:
hdfs dfs -ls / hadoopinput
source share