hama-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 顾荣 <gurongwal...@gmail.com>
Subject failed to run hama pi example
Date Wed, 12 Sep 2012 02:25:15 GMT
Hi,all.

I set up a hama cluster of 3 nodes and start hama successfully. However,
when I run the pi example, the job failed with a very strange message as
below.

 hama jar /home/hadoop/hama_installs/hama-0.5.0/hama-examples-0.5.0.jar pi
org.apache.hadoop.ipc.RemoteException: java.io.IOException:
java.lang.NoSuchMethodException:
org.apache.hadoop.hdfs.protocol.ClientProtocol.create(java.lang.String,
org.apache.hadoop.fs.permission.FsPermission, java.lang.String, boolean,
boolean, short, long)
    at java.lang.Class.getMethod(Class.java:1605)
    at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:557)
    at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1388)
    at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1384)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:396)
    at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1059)
    at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1382)

    at org.apache.hadoop.ipc.Client.call(Client.java:1066)
    at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)
    at $Proxy2.create(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)
    at
org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)
    at $Proxy2.create(Unknown Source)
    at
org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.<init>(DFSClient.java:3245)
    at org.apache.hadoop.hdfs.DFSClient.create(DFSClient.java:713)
    at
org.apache.hadoop.hdfs.DistributedFileSystem.create(DistributedFileSystem.java:182)
    at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:555)
    at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:536)
    at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:443)
    at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:229)
    at
org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:1195)
    at
org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:1171)
    at
org.apache.hadoop.fs.FileSystem.copyFromLocalFile(FileSystem.java:1143)
    at
org.apache.hama.bsp.BSPJobClient.submitJobInternal(BSPJobClient.java:349)
    at org.apache.hama.bsp.BSPJobClient.submitJob(BSPJobClient.java:294)
    at org.apache.hama.bsp.BSPJob.submit(BSPJob.java:218)
    at org.apache.hama.bsp.BSPJob.waitForCompletion(BSPJob.java:225)
    at org.apache.hama.examples.PiEstimator.main(PiEstimator.java:139)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
    at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
    at org.apache.hama.examples.ExampleDriver.main(ExampleDriver.java:39)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.hama.util.RunJar.main(RunJar.java:147)

My hama verison is 0.5 and hadoop version is 0.20.205. This error seems to
comes from the "org.apache.hadoop.hdfs.protocol.ClientProtocol.create"
method, this is a normal method. I am kind of confused...

Thanks in advance.

walker

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message