Reply
Contributor
Posts: 31
Registered: ‎08-01-2014

Impala shell action with Kerberos

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

New Contributor
Posts: 5
Registered: ‎02-11-2015

Re: Impala shell action with Kerberos

Try this :

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

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