eclipse运行wordcount报Connection refused,求大神帮忙!!!
xlk23 2014-05-09 03:28:16 伪分步式环境,
eclipse下面跑wordcount,
报错如下:
INFO ipc.Client: Retrying connect to server: xlk-dell/192.168.200.177:9001. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/05/11 23:13:13
INFO ipc.Client: Retrying connect to server: xlk-dell/192.168.200.177:9001. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/05/11 23:13:13
ERROR security.UserGroupInformation: PriviledgedActionException as:xlk cause:java.net.ConnectException: Call to xlk-dell/192.168.200.177:9001 failed on connection exception: java.net.ConnectException: Connection refused
其中,在main函数中加入了 Configuration conf = new Configuration();
conf.set("mapred.job.tracker", "192.168.200.177:9001");
如果这里是 conf.set("mapred.job.tracker", "127.0.0.1:9001");则不会出现上面的报错,能正常运行,
但不是说在eclipse下面要显式的指出mapreduce的地址么?(这样才能丢到mapreduce环境运行?!)
还有就是是不是/etc/hosts 里面需要配置?
我的配置是 127.0.0.1 localhost
#127.0.1.1 xlk-dell
192.168.200.177 xlk-dell
另外, 我的core-site.xml以及marred-site.xml里面陪的都是localhost:9000和localhost:9001, 改为 本机地址:9000,本机地址:9001 也试过, eclipse还是报链接错误。
之前 在main函数中 加入代码 Configuration conf = new Configuration();
conf.set("mapred.job.tracker", "192.168.200.177:9001");
一直是成功运行的,但后来重装了下hadoop就不行了。
哪位大神能给小弟指出下 ,eclipse下运行到底哪里不对的?