博主,我自己搭建了hadoop集群。master:10.5.0.230.但是当运行web程序时,文件上传到tomcat上是可以的,上传到hdfs就报错了。
信息: Server startup in 3172 ms
source file path:F:\apache-tomcat-7.0.62\webapps\data
begin to upload file to tomcat server</p>
<br>test.txt<br>
upload file to tomcat server success!
begin to upload file to hadoop hdfs</p>
15/10/22 13:39:58 INFO ipc.Client: Retrying connect to server: 192.168.1.104/192.168.1.104:9000. Already tried 0 time(s); maxRetries=45。