分享

hadoop2.2运行mapreduce(wordcount)问题总结

pig2 2014-5-15 02:35:12 发表于 总结型 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 39 201660
hebina 发表于 2015-11-4 17:41:38
2015-11-04 17:40:24,796ERROR [org.apache.hadoop.security.UserGroupInformation] - PriviledgedActionException as:EMP (auth:SIMPLE) cause:java.net.ConnectException: Call From EMP-PC/192.168.1.1 to TestDemo-1:9001 failed on connection exception: java.net.ConnectException: Connection refused: no further information; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
Exception in thread "main" java.net.ConnectException: Call From EMP-PC/192.168.1.1 to TestDemo-1:9001 failed on connection exception: java.net.ConnectException: Connection refused: no further information; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        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:1351)
        at org.apache.hadoop.ipc.Client.call(Client.java:1300)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206)
        at com.sun.proxy.$Proxy7.getFileInfo(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:186)
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
        at com.sun.proxy.$Proxy7.getFileInfo(Unknown Source)
        at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:651)
        at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1679)
        at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1106)
        at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1102)
        at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
        at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1102)
        at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1397)
        at org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.checkOutputSpecs(FileOutputFormat.java:145)
        at org.apache.hadoop.mapreduce.JobSubmitter.checkSpecs(JobSubmitter.java:456)
        at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:342)
        at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1268)
        at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1265)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:415)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491)
        at org.apache.hadoop.mapreduce.Job.submit(Job.java:1265)
        at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1286)
        at org.dragon.hadoop.hdfs.util.worldcount.main(worldcount.java:67)
Caused by: java.net.ConnectException: Connection refused: no further information
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
        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:547)
        at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:642)
        at org.apache.hadoop.ipc.Client$Connection.access$2600(Client.java:314)
        at org.apache.hadoop.ipc.Client.getConnection(Client.java:1399)
        at org.apache.hadoop.ipc.Client.call(Client.java:1318)
        ... 28 more

楼主这个怎么回事为什么拒绝连接呢!!!
回复

使用道具 举报

arsenduan 发表于 2015-11-4 17:48:25
hebina 发表于 2015-11-4 17:41
2015-11-04 17:40:24,796ERROR [org.apache.hadoop.security.UserGroupInformation] - PriviledgedActionEx ...

连接拒绝exception:java.net.connectionException:connection refused
http://www.aboutyun.com/thread-5474-1-1.html

Hadoop伪分布式环境 提示Connection refused错误
http://www.aboutyun.com/thread-1632-1-1.html


下面是否修改,还有hosts是否修改
hdfs.xml文件内容的.


回复

使用道具 举报

hebina 发表于 2015-11-4 18:08:35
arsenduan 发表于 2015-11-4 17:48
连接拒绝exception:java.net.connectionException:connection refused
http://www.aboutyun.com/thread- ...

dfs.permissions  属性已经就是false
回复

使用道具 举报

arsenduan 发表于 2015-11-4 18:09:18
hebina 发表于 2015-11-4 18:08
dfs.permissions  属性已经就是false

贴出hosts内容
回复

使用道具 举报

hebina 发表于 2015-11-4 18:11:18

192.168.1.121   TestDemo-1
::1             localhost6.localdomain6 localhost6
192.168.1.122   TestDemo-2
192.168.1.123   TestDemo-3
192.168.1.124   TestDemo-4
192.168.1.125   TestDemo-5

回复

使用道具 举报

hebina 发表于 2015-11-4 18:13:07

windows hosts文件内容
192.168.1.121  TestDemo-1
192.168.1.122  TestDemo-2
192.168.1.123  TestDemo-3
192.168.1.124  TestDemo-4
192.168.1.125  TestDemo-5
回复

使用道具 举报

arsenduan 发表于 2015-11-4 18:19:08
hebina 发表于 2015-11-4 18:13
windows hosts文件内容
192.168.1.121  TestDemo-1
192.168.1.122  TestDemo-2

贴图,里面的所有内容。包括localhost,还有Linux也贴出来
回复

使用道具 举报

hebina 发表于 2015-11-4 18:22:54
1.jpg
2.jpg
回复

使用道具 举报

hebina 发表于 2015-11-4 18:24:44
1.jpg
2.jpg

回复

使用道具 举报

hebina 发表于 2015-11-4 18:25:38
我笔记本是win10
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条