[ 
https://issues.apache.org/jira/browse/OOZIE-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14082242#comment-14082242
 ] 

Anuroopa George commented on OOZIE-1955:
----------------------------------------

Hi Robert,Thanks for your clarification. We have some dynamic Hive query 
generation. That's  why we used a shell script for calling hive scripts

> Unable to run hive scripts from Oozie shell action 
> ---------------------------------------------------
>
>                 Key: OOZIE-1955
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1955
>             Project: Oozie
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>         Environment: Hive .12,Oozie 4.0
>            Reporter: Anuroopa George
>             Fix For: 4.0.0
>
>
> While trying to execute Hive script from shell script(shell action of Oozie) 
> using hive -f command,Hive script fails.
> The problem is that the shell script is submitted from Oozie as mapred 
> user,and the staging area is created with respect to the user who submits the 
> Oozie workflow.So mapred user is unable to 
>  access this staging area and the hive scripts get failed.
> Below is the exception: 
> java.io.IOException: The ownership on the staging directory 
> hdfs://nameservice1/user/user1/.staging is not as expected. 
>  It is owned by user1. The directory must be owned by the submitter mapred or 
> by mapred
>  at 
> org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(JobSubmissionFiles.java:113)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to