Hadoop报错

来源:互联网 发布:python能做成包吗 编辑:程序博客网 时间:2024/06/04 21:56
Exception in thread "main" java.io.IOException: java.net.ConnectException: Call From LiuKai-PC/192.168.3.86 to 0.0.0.0:10020 failed on connection exception: java.net.ConnectException: Connection refused: no further information; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefusedat org.apache.hadoop.mapred.ClientServiceDelegate.invoke(ClientServiceDelegate.java:334)at org.apache.hadoop.mapred.ClientServiceDelegate.getJobStatus(ClientServiceDelegate.java:419)at org.apache.hadoop.mapred.YARNRunner.getJobStatus(YARNRunner.java:532)at org.apache.hadoop.mapreduce.Job$1.run(Job.java:314)at org.apache.hadoop.mapreduce.Job$1.run(Job.java:311)at java.security.AccessController.doPrivileged(Native Method)at javax.security.auth.Subject.doAs(Subject.java:422)at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1556)at org.apache.hadoop.mapreduce.Job.updateStatus(Job.java:311)at org.apache.hadoop.mapreduce.Job.isComplete(Job.java:599)at org.apache.hadoop.mapreduce.Job.monitorAndPrintJob(Job.java:1344)at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1306)at org.apache.mahout.vectorizer.DocumentProcessor.tokenizeDocuments(DocumentProcessor.java:93)at org.apache.mahout.vectorizer.SparseVectorsFromSequenceFiles.run(SparseVectorsFromSequenceFiles.java:257)at com.technobium.NaiveBayes.sequenceFileToSparseVector(NaiveBayes.java:100)at com.technobium.NaiveBayes.main(NaiveBayes.java:64)Caused by: java.net.ConnectException: Call From LiuKai-PC/192.168.3.86 to 0.0.0.0:10020 failed on connection exception: java.net.ConnectException: Connection refused: no further information; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefusedat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)at java.lang.reflect.Constructor.newInstance(Constructor.java:422)at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:783)at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:730)at org.apache.hadoop.ipc.Client.call(Client.java:1414)at org.apache.hadoop.ipc.Client.call(Client.java:1363)at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206)at com.sun.proxy.$Proxy13.getJobReport(Unknown Source)at org.apache.hadoop.mapreduce.v2.api.impl.pb.client.MRClientProtocolPBClientImpl.getJobReport(MRClientProtocolPBClientImpl.java:133)at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:497)at org.apache.hadoop.mapred.ClientServiceDelegate.invoke(ClientServiceDelegate.java:320)... 15 moreCaused by: java.net.ConnectException: Connection refused: no further informationat sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:529)at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:493)at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:604)at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:699)at org.apache.hadoop.ipc.Client$Connection.access$2800(Client.java:367)at org.apache.hadoop.ipc.Client.getConnection(Client.java:1462)at org.apache.hadoop.ipc.Client.call(Client.java:1381)... 23 more

解决方法:

当时 尝试了之前的方法,但是不行。

进行了:root@localhost:/home/hadoop-2.4.1# ./bin/hadoop namenode -format 也删除了tmp/但是还是不行。
但是还是为解决,我也尝试查一下端口:
root@localhost:/home/hadoop-2.4.1#
root@localhost:/home/hadoop-2.4.1# netstat -ano|grep 10020
root@localhost:/home/hadoop-2.4.1#
root@localhost:/home/hadoop-2.4.1#
这个说明 这个10020端口没有起来。http://blog.csdn.net/tangzwgo/article/details/25893989
成功解决方法:
root@master:/home/hadoop-2.4.1# vim /etc/hostname
修改hostname为master,成功解决。
所以 主机名还是要尽快的修改和开发工具系统上配置成一样的,这样就能避免这个问题。








0 0
原创粉丝点击