easthome001 发表于 2017-3-23 20:12:40

tan_323 发表于 2017-3-23 17:51
运行这个命令出现了以下信息:bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreducexamples-2.2.0.jar...

java.io.FileNotFoundException: File does not exist: hdfs://master:8020/user/test/QuasiMonteCarlo_1490259294583_1359990819/out/reduce-out
楼主看看有这个文件吗

tan_323 发表于 2017-3-27 09:56:10

easthome001 发表于 2017-3-23 20:12
java.io.FileNotFoundException: File does not exist: hdfs://master:8020/user/test/QuasiMonteCarlo_1 ...

我配置的东西不是放在这里的啊。为什么会出现 hdfs://master:8020/user/test/这个路径呢?

easthome001 发表于 2017-3-28 17:51:21

tan_323 发表于 2017-3-27 09:56
我配置的东西不是放在这里的啊。为什么会出现 hdfs://master:8020/user/test/这个路径呢?

检测程序和配置。肯定那里疏忽了

咸~~鱼 发表于 2017-4-5 09:12:22

2017-04-04 00:15:10,742 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: IOException in offerService
java.net.ConnectException: Call From master/192.168.254.11 to master:8020 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see:http://wiki.apache.org/hadoop/ConnectionRefused
        at 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:423)
        at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:792)
        at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:732)
        at org.apache.hadoop.ipc.Client.call(Client.java:1479)
        at org.apache.hadoop.ipc.Client.call(Client.java:1412)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
        at com.sun.proxy.$Proxy14.sendHeartbeat(Unknown Source)
        at org.apache.hadoop.hdfs.protocolPB.DatanodeProtocolClientSideTranslatorPB.sendHeartbeat(DatanodeProtocolClientSideTranslatorPB.java:153)
        at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.sendHeartBeat(BPServiceActor.java:554)
        at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.offerService(BPServiceActor.java:653)
        at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.run(BPServiceActor.java:824)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: 拒绝连接
        at 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:531)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:495)
        at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:614)
        at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:712)
        at org.apache.hadoop.ipc.Client$Connection.access$2900(Client.java:375)
        at org.apache.hadoop.ipc.Client.getConnection(Client.java:1528)
        at org.apache.hadoop.ipc.Client.call(Client.java:1451)
        ... 8 more
请问这个是什么问题啊,我做了好久没找出问题

咸~~鱼 发表于 2017-4-5 09:19:05

2017-04-04 00:15:10,742 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: IOException in offerService
java.net.ConnectException: Call From master/192.168.254.11 to master:8020 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see:http://wiki.apache.org/hadoop/ConnectionRefused
        at 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:423)
        at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:792)
        at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:732)
        at org.apache.hadoop.ipc.Client.call(Client.java:1479)
        at org.apache.hadoop.ipc.Client.call(Client.java:1412)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
        at com.sun.proxy.$Proxy14.sendHeartbeat(Unknown Source)
        at org.apache.hadoop.hdfs.protocolPB.DatanodeProtocolClientSideTranslatorPB.sendHeartbeat(DatanodeProtocolClientSideTranslatorPB.java:153)
        at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.sendHeartBeat(BPServiceActor.java:554)
        at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.offerService(BPServiceActor.java:653)
        at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.run(BPServiceActor.java:824)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: 拒绝连接
        at 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:531)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:495)
        at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:614)
        at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:712)
        at org.apache.hadoop.ipc.Client$Connection.access$2900(Client.java:375)
        at org.apache.hadoop.ipc.Client.getConnection(Client.java:1528)
        at org.apache.hadoop.ipc.Client.call(Client.java:1451)
        ... 8 more
你好,请问我每次启动dfs时都报这个错误,master节点服务能起来,两个slave节点nadename进程起不来,求指点,不胜感激

nextuser 发表于 2017-4-5 13:38:45

咸~~鱼 发表于 2017-4-5 09:12
2017-04-04 00:15:10,742 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: IOException in offerSe ...

测一下端口通吗?telnet master 8020
副本是几个

咸~~鱼 发表于 2017-4-5 14:54:04

nextuser 发表于 2017-4-5 13:38
测一下端口通吗?
副本是几个

Trying 192.168.254.11...
Connected to master.
Escape character is '^]'.
端口应该是没问题,一个master节点.两个salve节点



nextuser 发表于 2017-4-6 17:42:26

咸~~鱼 发表于 2017-4-5 14:54
Trying 192.168.254.11...
Connected to master.
Escape character is '^]'.



看是否被暂用
sudo netstat -anp|grep 8020

咸~~鱼 发表于 2017-4-7 10:52:19

nextuser 发表于 2017-4-6 17:42
看是否被暂用

解决了,是因为我的slave节点格式化失败,两个slave节点没有修改主机名导致的,谢谢大神百忙中指点

java_hadooplove 发表于 2017-7-3 14:45:14

这的下载链接去哪了~

页: 2 3 4 5 6 7 8 9 10 11 [12] 13
查看完整版本: hadoop(2.x)以hadoop2.2为例完全分布式最新高可靠安装文档