在Ubuntu 14.04阿帕奇HAMA安装错误 [英] apache hama installation error on ubuntu 14.04

查看:138
本文介绍了在Ubuntu 14.04阿帕奇HAMA安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想安装和使用的整个过程中使用端口号54310的HAMA安装指南运行哈马,但是当我要运行一些HAMA例如它给了我一个错误。即尝试连接到服务器:localhost / 127.0.0.1:40000

这是我的滨site.xml的

 <结构>
<性>
 <名称>&bsp.master.address LT; /名称>
 < VALUE>本地主机< /值>
 <描述>在BSP主服务器的地址。无论是
 字面上的本土或主机[:端口(其中host是一个名称或
 IP地址),用于分布式模式。
 < /描述>
 < /性>
 <性>
 <名称>&bsp.system.dir LT; /名称>
 < VALUE>的/ tmp /滨hduser / BSP /系统< /值>
 <描述>在共享目录中存储的BSP控制文件。
 < /描述>
 < /性>
 <性>
 <名称>&bsp.local.dir LT; /名称>
 < VALUE>的/ tmp /滨hduser / BSP /本地和LT; /值>
 <描述>对颞存储本地目录和LT; /描述>
 < /性>
<性>
<名称>&hama.tmp.dir LT; /名称>
 < VALUE>的/ tmp /滨hduser< /值>
 <描述方式>在本地文件系统的临时目录和LT; /描述>
 < /性>
 <性>
 <名称>&fs.default.name LT; /名称>
 < VALUE> HDFS://本地主机:54310< /值>
 <描述>
 默认的文件系统的名称。无论是文字字符串
 本地或主机:端口HDFS。
 < /描述>
 < /性>
< /结构>


  

我已经开始HDFS,这里是错误信息运行PI的例子了。


  hduser @ Ubuntu的中:/ opt / HAMA $ /选择/ HAMA /箱/罐HAMA浜例子-0.6.4.jar PI
14/05/28五点50分57秒INFO ipc.Client:重试连接到服务器:localhost / 127.0.0.1:40000。已经尝试过0时间(s);重试的政策是RetryUpToMaximumCountWithFixedSleep(maxRetries = 10,休眠时间= 1秒)
14/05/28五时50分58秒INFO ipc.Client:重试连接到服务器:localhost / 127.0.0.1:40000。已经试过1时间(s);重试的政策是RetryUpToMaximumCountWithFixedSleep(maxRetries = 10,休眠时间= 1秒)
14/05/28 5点50分59秒INFO ipc.Client:重试连接到服务器:localhost / 127.0.0.1:40000。已经尝试过2时间(s);重试的政策是RetryUpToMaximumCountWithFixedSleep(maxRetries = 10,休眠时间= 1秒)
14/05/28 5点51分00秒INFO ipc.Client:重试连接到服务器:localhost / 127.0.0.1:40000。已经尝试过3时间(s);重试的政策是RetryUpToMaximumCountWithFixedSleep(maxRetries = 10,休眠时间= 1秒)
14/05/28 5时51分01秒INFO ipc.Client:重试连接到服务器:localhost / 127.0.0.1:40000。已经尝试过4时间(s);重试的政策是RetryUpToMaximumCountWithFixedSleep(maxRetries = 10,休眠时间= 1秒)
14/05/28 5时51分02秒INFO ipc.Client:重试连接到服务器:localhost / 127.0.0.1:40000。已经尝试过5时间(s);重试的政策是RetryUpToMaximumCountWithFixedSleep(maxRetries = 10,休眠时间= 1秒)
14/05/28 5时51分03秒INFO ipc.Client:重试连接到服务器:localhost / 127.0.0.1:40000。已经尝试过6时间(s);重试的政策是RetryUpToMaximumCountWithFixedSleep(maxRetries = 10,休眠时间= 1秒)
14/05/28 5时51分04秒INFO ipc.Client:重试连接到服务器:localhost / 127.0.0.1:40000。已经尝试过7时间(s);重试的政策是RetryUpToMaximumCountWithFixedSleep(maxRetries = 10,休眠时间= 1秒)
14/05/28 5时51分05秒INFO ipc.Client:重试连接到服务器:localhost / 127.0.0.1:40000。已经尝试过8时间(s);重试的政策是RetryUpToMaximumCountWithFixedSleep(maxRetries = 10,休眠时间= 1秒)
14/05/28 5时51分06秒INFO ipc.Client:重试连接到服务器:localhost / 127.0.0.1:40000。已经尝试过9时间(s);重试的政策是RetryUpToMaximumCountWithFixedSleep(maxRetries = 10,休眠时间= 1秒)
java.net.ConnectException:呼叫到localhost / 127.0.0.1:40000失败的连接异常:java.net.ConnectException:连接被拒绝
    在org.apache.hama.ipc.Client.wrapException(Client.java:937)
    在org.apache.hama.ipc.Client.call(Client.java:913)
    在org.apache.hama.ipc.RPC $ Invoker.invoke(RPC.java:238)
    在com.sun.proxy。$ Proxy1.getProtocolVersion(来源不明)
    在org.apache.hama.ipc.RPC.checkVersion(RPC.java:434)
    在org.apache.hama.ipc.RPC.getProxy(RPC.java:426)
    在org.apache.hama.ipc.RPC.getProxy(RPC.java:403)
    在org.apache.hama.ipc.RPC.getProxy(RPC.java:368)
    在org.apache.hama.bsp.BSPJobClient.init(BSPJobClient.java:230)
    在org.apache.hama.bsp.BSPJobClient<&初始化GT;(BSPJobClient.java:221)
    在org.apache.hama.bsp.BSPJob<&初始化GT;(BSPJob.java:57)
    在org.apache.hama.bsp.BSPJob<&初始化GT;(BSPJob.java:75)
    在org.apache.hama.examples.PiEstimator.main(PiEstimator.java:119)
    在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
    在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    在java.lang.reflect.Method.invoke(Method.java:483)
    在org.apache.hama.util.ProgramDriver $ ProgramDescription.invoke(ProgramDriver.java:68)
    在org.apache.hama.util.ProgramDriver.driver(ProgramDriver.java:139)
    在org.apache.hama.examples.ExampleDriver.main(ExampleDriver.java:45)
    在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
    在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    在java.lang.reflect.Method.invoke(Method.java:483)
    在org.apache.hama.util.RunJar.main(RunJar.java:146)
java.net.ConnectException:引起连接被拒绝
    在sun.nio.ch.SocketChannelImpl.checkConnect(本机方法)
    在sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:712)
    在org.apache.hama.util.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:204)
    在org.apache.hama.util.BSPNetUtils.connect(BSPNetUtils.java:375)
    在org.apache.hama.util.BSPNetUtils.connect(BSPNetUtils.java:347)
    在org.apache.hama.ipc.Client $ Connection.setupConnection(Client.java:364)
    在org.apache.hama.ipc.Client $ Connection.setupIOstreams(Client.java:408)
    在org.apache.hama.ipc.Client $ Connection.access $ 1600(Client.java:195)
    在org.apache.hama.ipc.Client.getConnection(Client.java:1049)
    在org.apache.hama.ipc.Client.call(Client.java:888)
    ... 23更多


解决方案

哈马被编译为Hadoop 1.x的,所以不要使用Hadoop的2.X

i want to install and run the hama using the hama installation guide which use port no 54310 in the whole process, but when i want to run some example on hama it gave me an error. i.e. retrying to connect to server: localhost/ 127.0.0.1:40000

here is my hama-site.xml

<configuration>
<property>
 <name>bsp.master.address</name>
 <value>localhost</value>
 <description>The address of the bsp master server. Either the
 literal string "local" or a host[:port] (where host is a name or
 IP address) for distributed mode.
 </description>
 </property>
 <property>
 <name>bsp.system.dir</name>
 <value>/tmp/hama-hduser/bsp/system</value>
 <description>The shared directory where BSP stores control files.
 </description>
 </property>
 <property>
 <name>bsp.local.dir</name>
 <value>/tmp/hama-hduser/bsp/local</value>
 <description>local directory for temporal store.</description>
 </property>
<property>
<name>hama.tmp.dir</name>
 <value>/tmp/hama-hduser</value>
 <description>Temporary directory on the local filesystem.</description>
 </property>
 <property>
 <name>fs.default.name</name>
 <value>hdfs://localhost:54310</value>
 <description>
 The name of the default file system. Either the literal string
 "local" or a host:port for HDFS.
 </description>
 </property>
</configuration>

I have already started HDFS, here is the error message after run the PI example.

hduser@ubuntu:/opt/hama$ /opt/hama/bin/hama jar hama-examples-0.6.4.jar pi
14/05/28 05:50:57 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/05/28 05:50:58 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/05/28 05:50:59 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/05/28 05:51:00 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/05/28 05:51:01 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/05/28 05:51:02 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/05/28 05:51:03 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/05/28 05:51:04 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/05/28 05:51:05 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
14/05/28 05:51:06 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
java.net.ConnectException: Call to localhost/127.0.0.1:40000 failed on connection exception: java.net.ConnectException: Connection refused
    at org.apache.hama.ipc.Client.wrapException(Client.java:937)
    at org.apache.hama.ipc.Client.call(Client.java:913)
    at org.apache.hama.ipc.RPC$Invoker.invoke(RPC.java:238)
    at com.sun.proxy.$Proxy1.getProtocolVersion(Unknown Source)
    at org.apache.hama.ipc.RPC.checkVersion(RPC.java:434)
    at org.apache.hama.ipc.RPC.getProxy(RPC.java:426)
    at org.apache.hama.ipc.RPC.getProxy(RPC.java:403)
    at org.apache.hama.ipc.RPC.getProxy(RPC.java:368)
    at org.apache.hama.bsp.BSPJobClient.init(BSPJobClient.java:230)
    at org.apache.hama.bsp.BSPJobClient.<init>(BSPJobClient.java:221)
    at org.apache.hama.bsp.BSPJob.<init>(BSPJob.java:57)
    at org.apache.hama.bsp.BSPJob.<init>(BSPJob.java:75)
    at org.apache.hama.examples.PiEstimator.main(PiEstimator.java:119)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.apache.hama.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
    at org.apache.hama.util.ProgramDriver.driver(ProgramDriver.java:139)
    at org.apache.hama.examples.ExampleDriver.main(ExampleDriver.java:45)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.apache.hama.util.RunJar.main(RunJar.java:146)
Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:712)
    at org.apache.hama.util.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:204)
    at org.apache.hama.util.BSPNetUtils.connect(BSPNetUtils.java:375)
    at org.apache.hama.util.BSPNetUtils.connect(BSPNetUtils.java:347)
    at org.apache.hama.ipc.Client$Connection.setupConnection(Client.java:364)
    at org.apache.hama.ipc.Client$Connection.setupIOstreams(Client.java:408)
    at org.apache.hama.ipc.Client$Connection.access$1600(Client.java:195)
    at org.apache.hama.ipc.Client.getConnection(Client.java:1049)
    at org.apache.hama.ipc.Client.call(Client.java:888)
    ... 23 more

解决方案

Hama is compiled for the hadoop 1.x , so don't use hadoop 2.x

这篇关于在Ubuntu 14.04阿帕奇HAMA安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆