hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Capriolo <edlinuxg...@gmail.com>
Subject Re: Problem with simple-yarn-app
Date Mon, 02 Jun 2014 00:02:27 GMT
Last I checked. It has been broken for a while.

API changes as well as issues with IPV4/IPv6 addressing required me to
force localhost in some hadoop configuration files.

Here is something relatively simple that worked with hadoop 2.3.0. Your
milage may vary.

https://github.com/edwardcapriolo/teknek-yarn


On Fri, May 30, 2014 at 2:45 PM, Harsh J <harsh@cloudera.com> wrote:

> The version of hadoop you've compiled it with and the version of
> hadoop you are running it against are likely different, and is the
> reason behind this (cause of method signature changes having been
> made).
>
> This may be specific to your distro as well, so do ask on their direct
> forums, if the above does not help.
>
> On Fri, May 30, 2014 at 1:25 AM, Lars Selsaas
> <lars.selsaas@thinkbiganalytics.com> wrote:
> > 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
> >
> >
>
>
>
> --
> Harsh J
>

Mime
View raw message