Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C7E5B10E79 for ; Mon, 2 Jun 2014 00:02:58 +0000 (UTC) Received: (qmail 50275 invoked by uid 500); 2 Jun 2014 00:02:53 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 50154 invoked by uid 500); 2 Jun 2014 00:02:52 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 50147 invoked by uid 99); 2 Jun 2014 00:02:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2014 00:02:52 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of edlinuxguru@gmail.com designates 209.85.212.182 as permitted sender) Received: from [209.85.212.182] (HELO mail-wi0-f182.google.com) (209.85.212.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2014 00:02:50 +0000 Received: by mail-wi0-f182.google.com with SMTP id r20so3676001wiv.3 for ; Sun, 01 Jun 2014 17:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=nHqGhjai21IQgxr59Zscb5kYb7aIIy51FWOoLn+F7gg=; b=MJ8i4kOptFcCYJI9asy0ZlrdRZlvBXrQxxyqPsH50/RU9LUPKCVwLQ9LI+lisiO4n/ HewOeDWQ3mcfrOqv0NX26/cwbmsq6boPWGRxvwDI8SKJPNcb+T/ycVdkb6fHykQG+2XW ME+8y7Fu017QHyaY9jogMzkIBfysOp3ssauBPaku7tjSqqh4JHDUostZvjyNSL14udt8 SjWf9hHMWiMZKr3IgnJImR0061BI99HH6WsttqOBFAJ5C55AESVsgDs9DpJRTQXn9Nl0 g6pdGXA4X+g7ixaI4E8Y9NpHc+ZHP9Qo3pbItne3GKzVf+qyF+u0KmAdB+Lqh5oDXVgW xd/g== MIME-Version: 1.0 X-Received: by 10.180.84.7 with SMTP id u7mr17141736wiy.31.1401667347364; Sun, 01 Jun 2014 17:02:27 -0700 (PDT) Received: by 10.195.13.39 with HTTP; Sun, 1 Jun 2014 17:02:27 -0700 (PDT) In-Reply-To: References: Date: Sun, 1 Jun 2014 20:02:27 -0400 Message-ID: Subject: Re: Problem with simple-yarn-app From: Edward Capriolo To: "common-user@hadoop.apache.org" Content-Type: multipart/alternative; boundary=f46d0418255c55439504facf1c9e X-Virus-Checked: Checked by ClamAV on apache.org --f46d0418255c55439504facf1c9e Content-Type: text/plain; charset=UTF-8 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 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 > 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 > --f46d0418255c55439504facf1c9e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Last I checked. It has been broken for a while.<= br>
API changes as well as issues with IPV4/IPv6 addressing requir= ed me to force localhost in some hadoop configuration files.

Here is something relatively simple that worked with hadoop 2.3.0. Your mil= age 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@thin= kbiganalytics.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 a= t
> 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.j= ava:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess= orImpl.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

--f46d0418255c55439504facf1c9e--