Support Questions

Find answers, ask questions, and share your expertise

Impala shell with Kerberos

avatar
Rising Star

Hi,

 

I tried to launch a script bash (from shell or from a shell action of oozie) with the impala-shell command.

 

This is the body of my script:

 

impala-shell -k -s impala/_HOST@CLOUDERA_REALM -q 'show tables;'

 

but i cannot specify the path of a valid keytab. How can I do this ?

I checked the documentation and it is possible to configure these two parameters:

 

-principal=impala_1/impala_host.example.com@TEST.EXAMPLE.COM
-keytab_file=/var/run/cloudera-scm-agent/process/3212-impala-IMPALAD/impala.keytab

 but how can I specify dynamically the keytab_file ? is it possible to use the HADOOP_TOKEN_FILE_LOCATION variable used also for Hive-shell o mapred job ?

 

Thanks

2 REPLIES 2

avatar
Expert Contributor

What are you trying to achieve?Can you be little elaborate on it?

 

The keytab file need not be given path for because is it internally taken care of.

avatar
Explorer

Hi Alessio,

 

I was able to use -ldap and connect to my Kerberized Impala cluster:

 

impala-shell -i SERVERNAME.DOMAIN.COM:21000 -ldap

 

You may not have LDAP integration setup or Impala configured for LDAP integration.

 

I hope this helps.

--
http://about.me/orrin
http://twitter.com/OrrinEdenfield