Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Impala shell action with Kerberos

Highlighted

Impala shell action with Kerberos

Contributor

Hi,

 

I activated Kerberos on my cluster and I had to modify some Oozie workflows.

 

I have a problem with a shell action that call a impala-shell command.

 

I tried to use this command:

              impala-shell -k  -q 'show tables;'

 

and I have this error:

              -k requires a valid kerberos ticket but no valid kerberos ticket found.

 

I have also defined these two variables: 

  •  export IMPALA_STATE_STORE_ARGS=${IMPALA_STATE_STORE_ARGS:- -principal=impala/_HOST@CLOUDERA.REALM -keytab_file=${HADOOP_TOKEN_FILE_LOCATION}} 
  • export IMPALA_SERVER_ARGS=${IMPALA_SERVER_ARGS:- -principal=impala/_HOST@CLOUDERA.REALM -keytab_file=${HADOOP_TOKEN_FILE_LOCATION}}

But I continue to have the same error.

 

Can I solve this?

Thanks

1 REPLY 1

Re: Impala shell action with Kerberos

New Contributor

Try this :

/usr/bin/kinit 'username'@'hostname' -k -t 'path'/'keytabfile'

replace the username','hostname' ,'path' and 'keytabfile' in your case 

Don't have an account?
Coming from Hortonworks? Activate your account here