hadoop - Run pig in oozie shell action -
i have created simple pigscript loads 10 records , stores in table.
when invoke pig(stored in hdfs) file using oozie shell action,i , error follows:
>>> invoking shell command line >> exit code of shell command 5 <<< invocation of shell command completed <<< <<< invocation of main class completed <<< failing oozie launcher, main class [org.apache.oozie.action.hadoop.shellmain], exit code [1] oozie launcher failed, finishing hadoop job gracefully
i have put shell file in lib folder in workspace , added required jar files in same lib folder. please me solve issue.
i solved this issue following steps:
1)created workflow in hue placing pig action invoke pigscript. 2)generated workflow.xml file clicking run button. 3)ran workflow.xml through commandline adding shell wrapper class iterates , gives dates input parameters.
job.properties file:
oozie.use.system.libpath=true security_enabled=false dryrun=false jobtracker=<jobtracker> namenode=<namenode> oozie.wf.application.path = /user/hue/oozie/workspaces/hue-oozie-1470122057.79/workflow.xml
shell file:
date in 20160101 20160102 20160103 oozie job -oozie http://<serverip>:11000/oozie -config job.properties run
Comments
Post a Comment