Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D3BC4200C1C for ; Wed, 15 Feb 2017 15:37:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D19DB160B5E; Wed, 15 Feb 2017 14:37:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 25278160B46 for ; Wed, 15 Feb 2017 15:37:00 +0100 (CET) Received: (qmail 55085 invoked by uid 500); 15 Feb 2017 14:37:00 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 55074 invoked by uid 99); 15 Feb 2017 14:37:00 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2017 14:37:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C49E11865E5 for ; Wed, 15 Feb 2017 14:36:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id tbIsjz9o-B3N for ; Wed, 15 Feb 2017 14:36:58 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 5B8635FB49 for ; Wed, 15 Feb 2017 14:36:58 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1EF60E02F7 for ; Wed, 15 Feb 2017 14:36:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id C1DCE2411B for ; Wed, 15 Feb 2017 14:36:41 +0000 (UTC) Date: Wed, 15 Feb 2017 14:36:41 +0000 (UTC) From: "Bibin A Chundatt (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-6198) getAMRMToken for application with unmanaged AM fail in secure mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 15 Feb 2017 14:37:02 -0000 [ https://issues.apache.org/jira/browse/YARN-6198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15867925#comment-15867925 ] Bibin A Chundatt commented on YARN-6198: ---------------------------------------- [~varun_saxena] Thank you for looking into issue and finding duplicate issue. Have linked the issue to YARN-2892. > getAMRMToken for application with unmanaged AM fail in secure mode > ------------------------------------------------------------------- > > Key: YARN-6198 > URL: https://issues.apache.org/jira/browse/YARN-6198 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Bibin A Chundatt > > *Command* > ./yarn jar ../share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-3.0.0-alpha3-SNAPSHOT.jar -appname bibin -cmd "sleep 10" > {code} > public void launchAM(ApplicationAttemptId attemptId) > throws IOException, YarnException { > Credentials credentials = new Credentials(); > Token token = > rmClient.getAMRMToken(attemptId.getApplicationId()); > // Service will be empty but that's okay, we are just passing down only > // AMRMToken down to the real AM which eventually sets the correct > // service-address. > credentials.addToken(token.getService(), token); > {code} > Token is not received. > {noformat} > 2017-02-15 16:14:58,188 FATAL unmanagedamlauncher.UnmanagedAMLauncher: Error running Client > java.lang.NullPointerException > at org.apache.hadoop.yarn.applications.unmanagedamlauncher.UnmanagedAMLauncher.launchAM(UnmanagedAMLauncher.java:186) > at org.apache.hadoop.yarn.applications.unmanagedamlauncher.UnmanagedAMLauncher.run(UnmanagedAMLauncher.java:354) > at org.apache.hadoop.yarn.applications.unmanagedamlauncher.UnmanagedAMLauncher.main(UnmanagedAMLauncher.java:111) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.hadoop.util.RunJar.run(RunJar.java:239) > at org.apache.hadoop.util.RunJar.main(RunJar.java:153) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org