Can't you set up a cron to kinit periodically?  If you need pig to do it,
it will have to be a new jira. None of the clients (hadoop, pig, hive) do
it now.

On Wed, Jan 6, 2016 at 6:35 AM, Niels Basjes <[email protected]> wrote:

> Hi,
>
> When I run a Pig job on a Kerberos secured cluster it uses the tickets
> obtained from the kinit I did just before starting the job.
> In some cases the job will run for a longer time than the max renew time of
> the kerberos tickets.
>
> In other Yarn applications (like Apache Flink) I can login using a Kerberos
> keytab file on a secure cluster by doing something like this in my Java
> code:
>
> System.setProperty("java.security.krb5.conf", "/etc/krb5.conf");
>
> UserGroupInformation.loginUserFromKeytab("[email protected]",
> "/home/nbasjes/.krb/nbasjes.keytab");
>
>
> I checked the source of Pig and couldn't find any reference to logging in
> with a keytab file.
>
>
> How can I use a keytab file to authenticate a pig job on a secure cluster?
> Or is this for which I should submit a feature request?
>
> --
> Best regards / Met vriendelijke groeten,
>
> Niels Basjes
>

Reply via email to