[root@localhost bin]# ./hdfs dfs -put /tmp/testfile.txt hdfs://node01:/tmp/
17/09/04 22:54:33 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
put: Call From localhost/127.0.0.1 to node01:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused