我正在读一本关于hadoop的书,我正在本地用docker运行。我正在使用来自sequenceiq的image并尝试执行此命令:
./bin/hadoop fs -copyFromLocal /input/docs/quangle.txt hdfs://localhost/user/4lex1v/quangle.txt
但它引发了一个错误:
copyFromLocal: Call From e9584b413d6a/172.17.0.2 to localhost:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
我没有在本地运行它的问题,我该如何解决?