分享

eclipse运行出现 Call From to master:8020 failed on connection exception:

pig2 发表于 2015-5-12 20:26:01
国宝熊猫 发表于 2015-4-15 16:32
2015-04-15 16:29:58,077 INFO [org.apache.hadoop.mapreduce.Job] -  map 0% reduce 0%
  2015-04-15 16: ...

连接失败,检查防火墙,hadoop集群进程是否都在
回复

使用道具 举报

xuanxufeng 发表于 2015-7-3 18:18:05
pig2 发表于 2015-5-12 20:26
连接失败,检查防火墙,hadoop集群进程是否都在

检查下hosts配置是否正确
注释掉127.0.1.1        hostname
例如hostname为ubuntu
[mw_shl_code=bash,true]127.0.1.1        ubuntu[/mw_shl_code]


回复

使用道具 举报

国宝熊猫 发表于 2015-7-8 12:04:34
回复

使用道具 举报

llp 发表于 2015-8-4 11:17:09
两个原因都排除了,还是拒绝连接   而且是突然拒绝连接,上1分钟还可以连接
回复

使用道具 举报

areyouyun 发表于 2015-9-18 15:54:44
重启一下hadoop试试
回复

使用道具 举报

jiguang 发表于 2015-10-30 16:10:36
本帖最后由 jiguang 于 2015-10-30 17:54 编辑

我的伪分布模式正常启动,测试结果bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.6.0.jar grep /user/ha1/input/hadoop  /user/ha1/output/temp 'dfs[a-z.]+'
正常,IPV6关了,ping localhost, ping 192.168.1.2 都正常。还是出现拒绝连接的错。

刚才通过了,原来要右击大象那条,然后不是点refresh,是点击Reconnect才可以。

Location name是你自己取的名字,我这里用了hadoop,Map/Reduce Master这里的host和port对应上面mapred-site.xml中mapred.job.tracker的值,我配置的是localhost和9001;DFS Master对应上面core-site.xml中fs.defaultFS中的值,我配置的是localhost和9000.(以前1.X版本配置是 fs.default.name)

回复

使用道具 举报

shanquan2006 发表于 2016-1-28 10:12:22
很多解决方法,mark下,学习中。。。
回复

使用道具 举报

wzhjwh 发表于 2016-3-31 22:52:38
Eclipse 里面的DFS Locations节点可以连接到云节点(云节点都开起来了,且都可以ping通,三个SUSE 虚拟机部署在win7上),但是Run As---〉Run On Hadoop,以及Debug时都报错。
Exception in thread "main" java.net.ConnectException: Call From hadoop-pc/XXX.XXX.XXX.XXX to namenode:8020 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(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        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.$Proxy9.getFileInfo(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:190)
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:103)
        at com.sun.proxy.$Proxy9.getFileInfo(Unknown Source)
        at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:699)
        at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1762)
        at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1124)
        at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1120)
        at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
        at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1120)
        at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1398)
        at org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.checkOutputSpecs(FileOutputFormat.java:145)
        at org.apache.hadoop.mapreduce.JobSubmitter.checkSpecs(JobSubmitter.java:458)
        at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:343)
        at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1285)
        at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1282)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Unknown Source)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1548)
        at org.apache.hadoop.mapreduce.Job.submit(Job.java:1282)
        at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1303)
        at WordCount.main(WordCount.java:70)
Caused by: java.net.ConnectException: Connection refused: no further information
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
        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)
        ... 28 more
求高手解答。。。。。。
回复

使用道具 举报

nini 发表于 2016-4-19 11:34:57
wzhjwh 发表于 2016-3-31 22:52
Eclipse 里面的DFS Locations节点可以连接到云节点(云节点都开起来了,且都可以ping通,三个SUSE 虚拟机部 ...


问题有没有解决? 现在我也遇到同样的问题了,。。。。
回复

使用道具 举报

rm-r/ 发表于 2016-5-18 16:59:03
@国宝熊猫 我现在遇到同样的问题,请问您找出原因了吗?
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条