python - Windows上的Eclipse如何连接VMware虚拟机内Ubuntu的HDFS?
大家讲道理
大家讲道理 2017-04-18 09:46:10
0
0
316

背景

Windows IP:118.228.171.188;Ubuntu IP:192.168.162.138
在Windows下,Ping ubuntu_ip 成功;使用Putty远程登录ubuntu_ip成功,但是要输入用户名和密码:

在Ubuntu下,Ping windows_ip成功;ssh localhost不用输入密码;“hdfs getconf -confKey fs.default.name”的输出是“hdfs://localhost:9000”。
hosts文件:

场景

搭建Hadoop-2.7.3伪分布模式,在Ubuntu上,可以访问http://localhost:50070和http://localhost:50090,也可以使用9000端口:

问题来了

Error 1:

Failed on local exception: com.google.protobuf.InvalidProtocolBufferException: Protocol message end-group tag did not match expected tag.; Host Details : local host is: "win_user_name/118.228.171.188"; destination host is: "192.168.162.138":50070;

Define Hadoop Location:

Error2:

Call From win_user_name/118.228.171.188 to 192.168.162.138:9000 failed on connection exception java.net.ConnectException: Connection refused : no further infomation; For more details see: http://apache.****

Define Hadoop Location:

Ubuntu上Hadoop配置

core-site.xml

mapred-site.xml.tempalte

slaves

localhost

没有master文件

以上, 我该怎么办?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

全員に返信(0)
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート