hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Selsaas <lars.sels...@thinkbiganalytics.com>
Subject Problem with simple-yarn-app
Date Thu, 29 May 2014 19:55:40 GMT
So I have built the simple-yarn-app and put the file inside HDFS

but it fails when I try run it:

[root@sandbox target]# hadoop jar simple-yarn-app-1.0-SNAPSHOT.jar
com.hortonworks.simpleyarnapp.Client /bin/date 2
hdfs:///apps/simple/simple-yarn-app-1.0-SNAPSHOT.jar

14/05/29 11:31:32 INFO client.RMProxy: Connecting to ResourceManager at
sandbox.hortonworks.com/10.0.2.15:8050

Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.hadoop.yarn.util.Apps.addToEnvironment(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V

at com.hortonworks.simpleyarnapp.Client.setupAppMasterEnv(Client.java:124)

at com.hortonworks.simpleyarnapp.Client.run(Client.java:73)

at com.hortonworks.simpleyarnapp.Client.main(Client.java:134)

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:606)

at org.apache.hadoop.util.RunJar.main(RunJar.java:212)


Does anyone know what I'm doing wrong?


Thanks,

Lars

Mime
View raw message