Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 114B3183A3 for ; Fri, 19 Jun 2015 20:14:13 +0000 (UTC) Received: (qmail 34256 invoked by uid 500); 19 Jun 2015 20:14:08 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 34162 invoked by uid 500); 19 Jun 2015 20:14:08 -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 34152 invoked by uid 99); 19 Jun 2015 20:14:08 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2015 20:14:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A99A4C08D7 for ; Fri, 19 Jun 2015 20:14:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3 X-Spam-Level: *** X-Spam-Status: No, score=3 tagged_above=-999 required=6.31 tests=[FSL_HELO_BARE_IP_2=0.001, HTML_MESSAGE=3, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id gvXQuXgLP5_k for ; Fri, 19 Jun 2015 20:14:06 +0000 (UTC) Received: from relayvx12c.securemail.intermedia.net (relayvx12c.securemail.intermedia.net [64.78.52.187]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 39D8124971 for ; Fri, 19 Jun 2015 20:14:06 +0000 (UTC) Received: from securemail.intermedia.net (localhost [127.0.0.1]) by emg-ca-1-2.localdomain (Postfix) with ESMTP id CE5BD53E4B for ; Fri, 19 Jun 2015 13:14:05 -0700 (PDT) Subject: Re: Using UserGroupInformation in multithread process MIME-Version: 1.0 x-echoworx-emg-received: Fri, 19 Jun 2015 13:14:05.831 -0700 x-echoworx-msg-id: 8d605ed4-3315-408b-846f-a4de6289f149 x-echoworx-action: delivered Received: from 10.254.155.17 ([10.254.155.17]) by emg-ca-1-2 (JAMES SMTP Server 2.3.2) with SMTP ID 849 for ; Fri, 19 Jun 2015 13:14:05 -0700 (PDT) Received: from MBX080-W4-CO-2.exch080.serverpod.net (unknown [10.224.117.102]) by emg-ca-1-2.localdomain (Postfix) with ESMTP id 9E47753E4B for ; Fri, 19 Jun 2015 13:14:05 -0700 (PDT) Received: from MBX080-W4-CO-2.exch080.serverpod.net (10.224.117.102) by MBX080-W4-CO-2.exch080.serverpod.net (10.224.117.102) with Microsoft SMTP Server (TLS) id 15.0.1044.25; Fri, 19 Jun 2015 13:14:04 -0700 Received: from MBX080-W4-CO-2.exch080.serverpod.net ([10.224.117.102]) by mbx080-w4-co-2.exch080.serverpod.net ([10.224.117.102]) with mapi id 15.00.1044.021; Fri, 19 Jun 2015 13:14:04 -0700 From: Zhijie Shen To: "user@hadoop.apache.org" Thread-Topic: Using UserGroupInformation in multithread process Thread-Index: AQHQqlom8hVbvDSCrk6h4iE3Z1YTN520QBHx Date: Fri, 19 Jun 2015 20:14:04 +0000 Message-ID: <1434744844637.14458@hortonworks.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [50.46.226.223] x-source-routing-agent: Processed Content-Type: multipart/alternative; boundary="_000_143474484463714458hortonworkscom_" --_000_143474484463714458hortonworkscom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Do you mean TGT tickets or tokens? Anyway, they should be across threads. D= id you check if you're using the same UGI object in different threads? Thanks, Zhijie ________________________________ From: Gaurav Gupta Sent: Thursday, June 18, 2015 11:35 PM To: user@hadoop.apache.org Subject: Using UserGroupInformation in multithread process I am using UserGroupInformation to get the Kerberos tokens. I have a process in a Yarn container that is spawning another thread (slave= ). I am renewing the Kerberos Tokens in master thread but the slave thread = is still using older Tokens. Are tokens not shared across threads in same JVM? Thanks Gaurav --_000_143474484463714458hortonworkscom_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Do you mean TGT tickets or tokens? Anyway, they should be across threads= . Did you check if you're using the same UGI object in different threads?


Thanks,

Zhijie


From: Gaurav Gupta <gaur= av.gopi123@gmail.com>
Sent: Thursday, June 18, 2015 11:35 PM
To: user@hadoop.apache.org
Subject: Using UserGroupInformation in multithread process
 
I am using UserGroupInformation to get the Kerberos tokens= .
I have a process in a Yarn container that is spawning another thread (= slave). I am renewing the Kerberos Tokens in master thread but the slave th= read is still using older Tokens.
Are tokens not shared across threads in same JVM?

Thanks
Gaurav
--_000_143474484463714458hortonworkscom_--