I think Oozie Shell action is already taken care of this. There should not be 
any issue.
Please let us know if you find any.
Regards,Mohammad
 

    On Thursday, June 9, 2016 10:32 AM, Morgrim Murdargent 
<[email protected]> wrote:
 

 Hello Mohammad.

Ty for your answer. There is no errors in fact. I'm just wondering this
question.

If I want to interact with hdfs or hbase or hive in a shell from an oozie
shell action, how can I use the env variable HADOOP_TOKEN_FILE_LOCATION ?
Is the usage of this env variable the solution ?

BR.

Morgrim
Le 9 juin 2016 19:06, "Mohammad Islam" <[email protected]> a
écrit :

> Do you need to kinit explicitly in your shell script to be use in Shell
> Action?I think you don't need it. Any error message would help.
>
>
>    On Thursday, June 9, 2016 9:03 AM, Morgrim Murdargent <
> [email protected]> wrote:
>
>
>  Hello !
>
> I have a question related to a shell action in an oozie workflow in a
> kerberized cluster.
>
> I found something about this in the oozie doc for java action :
>
> *###IMPORTANT:* In order for a Java action to succeed on a secure cluster,
> it must propagate the
> Hadoop delegation token like in the following code snippet (this is benign
> on non-secure clusters):
>
> // propagate delegation related props from launcher job to MR job
> if (System.getenv("HADOOP_TOKEN_FILE_LOCATION") != null) {
>    jobConf.set("mapreduce.job.credentials.binary",
> System.getenv("HADOOP_TOKEN_FILE_LOCATION"));
> }
>
> ###
>
> https://oozie.apache.org/docs/4.2.0/WorkflowFunctionalSpec.html
>
> But is it possible to use the HADOOP_TOKEN_FILE_LOCATION in a shell action
> ? In order to not do a kinit with a keytab ?
>
> BR.
>
> Morgrim.
>
>
>

  

Reply via email to