I am invoking the below Oozie shell action to invoke a shell script which writes an output to a file. I have tried this on Cloudera 5.7 VM ...Whenever I am trying to write to a new file in HDFS the job fails.
I checked the application/job id logs but had no info. Is there any restriction to write to hdfs from a shell script?
In the shell script below, I am trying to query on a table and write the results to a file.
hive -e "create t1(id int); insert into t1 values(1);" hive -e "select * from t1;" > /user/cloudera/test123/t1_data.txt