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 Gaurav Gupta <ga...@gmail.com> on 2015/06/19 08:35:13 UTC

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

Re: Using UserGroupInformation in multithread process

Posted by Zhijie Shen <zs...@hortonworks.com>.
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 <ga...@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 thread is still using older Tokens.
Are tokens not shared across threads in same JVM?

Thanks
Gaurav

Re: Using UserGroupInformation in multithread process

Posted by Zhijie Shen <zs...@hortonworks.com>.
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 <ga...@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 thread is still using older Tokens.
Are tokens not shared across threads in same JVM?

Thanks
Gaurav

Re: Using UserGroupInformation in multithread process

Posted by Zhijie Shen <zs...@hortonworks.com>.
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 <ga...@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 thread is still using older Tokens.
Are tokens not shared across threads in same JVM?

Thanks
Gaurav

Re: Using UserGroupInformation in multithread process

Posted by Zhijie Shen <zs...@hortonworks.com>.
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 <ga...@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 thread is still using older Tokens.
Are tokens not shared across threads in same JVM?

Thanks
Gaurav