出错:
Error: Call From hadoop/127.0.1.1 to localhost:8020 failed on connection exception: java.net.ConnectException: 拒绝连接: For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
打开终端,输入
cd sbin
cd hadoop
./start-all.sh
就好了,如果代码运行还出错,说是拒绝连接,看看你的代码中 ---读取文件的地址写对了没。