Erreur d’installation apache hama sur Ubuntu 14.04

Je veux installer et exécuter le hama en utilisant le guide d’installation hama qui utilise le port n ° 54310 dans tout le processus, mais quand je veux exécuter un exemple sur hama, cela m’a donné une erreur. c.-à-d. réessayer de se connecter au serveur: localhost / 127.0.0.1:40000

voici mon hama-site.xml

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

J’ai déjà démarré HDFS, voici le message d’erreur après l’exécution de l’exemple PI.

 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 sortinged 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxResortinges=10, sleepTime=1 SECONDS) 14/05/28 05:50:58 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already sortinged 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxResortinges=10, sleepTime=1 SECONDS) 14/05/28 05:50:59 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already sortinged 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxResortinges=10, sleepTime=1 SECONDS) 14/05/28 05:51:00 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already sortinged 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxResortinges=10, sleepTime=1 SECONDS) 14/05/28 05:51:01 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already sortinged 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxResortinges=10, sleepTime=1 SECONDS) 14/05/28 05:51:02 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already sortinged 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxResortinges=10, sleepTime=1 SECONDS) 14/05/28 05:51:03 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already sortinged 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxResortinges=10, sleepTime=1 SECONDS) 14/05/28 05:51:04 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already sortinged 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxResortinges=10, sleepTime=1 SECONDS) 14/05/28 05:51:05 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already sortinged 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxResortinges=10, sleepTime=1 SECONDS) 14/05/28 05:51:06 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:40000. Already sortinged 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxResortinges=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.(BSPJobClient.java:221) at org.apache.hama.bsp.BSPJob.(BSPJob.java:57) at org.apache.hama.bsp.BSPJob.(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 est compilé pour le hadoop 1.x, donc n’utilisez pas hadoop 2.x

En fait avec votre propriété:

  fs.default.name hdfs://localhost:54310  The name of the default file system. Either the literal ssortingng "local" or a host:port for HDFS.   

Vous définissez l’adresse du client pour accéder à HDFS. Vérifiez dans votre core-site.xml quelle est la valeur actuelle de cette propriété.

Je n’ai jamais utilisé Hama mais je suppose que vous devez changer cette propriété:

  bsp.master.address localhost:40000 The address of the bsp master server. Either the literal ssortingng "local" or a host[:port] (where host is a name or IP address) for dissortingbuted mode.   

Peut-être essayer de vérifier les règles de votre pare-feu, le port 40000 peut être bloqué ou déjà utilisé.