You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Lars Selsaas <la...@thinkbiganalytics.com> on 2014/05/29 20:40:25 UTC
Problem with simple-yarn-app
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