<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: run oozie job error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/run-oozie-job-error/m-p/118951#M38777</link>
    <description>&lt;P&gt;Oozie share lib was supposed to be created during installation and start-up of the Oozie server, and the default location in HDFS is set by:&lt;/P&gt;&lt;PRE&gt;oozie.service.WorkflowAppService.system.libpath=/user/${user.name}/share/lib&lt;/PRE&gt;&lt;P&gt;In your case it's /user/oozie/share/lib. Check do you have anything there. If yes, use "oozie admin ... -sharelibupdate, if not, restart Oozie server, it's supposed to recreate it. Check logs (output in Ambari) after server restart for any errors, and try to fix them. Finally, if there is a need to run "oozie-setup.sh sharelib create" use /usr/hdp/current/oozie-server/oozie-sharelib.tar.gz as the argument to "-locallib". Or you can just untar the tar-ball, "-put share" to /user/oozie/, and run sharelibupdate.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2016 10:41:45 GMT</pubDate>
    <dc:creator>pminovic</dc:creator>
    <dc:date>2016-08-25T10:41:45Z</dc:date>
    <item>
      <title>run oozie job error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/run-oozie-job-error/m-p/118950#M38776</link>
      <description>&lt;P&gt;When I run the job,I got a error:&lt;/P&gt;&lt;PRE&gt;2016-08-25 10:34:31,351  WARN ActionStartXCommand:523 - SERVER[hdp-m2] USER[oozie] GROUP[-] TOKEN[] APP[sqoop-wf] JOB[0000002-160825102604568-oozie-root-W] ACTION[0000002-160825102604568-oozie-root-W@sqoop-node] Error starting action [sqoop-node]. ErrorType [FAILED], ErrorCode [EJ001], Message [Could not locate Oozie sharelib]
org.apache.oozie.action.ActionExecutorException: Could not locate Oozie sharelib
	at org.apache.oozie.action.hadoop.JavaActionExecutor.addSystemShareLibForAction(JavaActionExecutor.java:730)
	at org.apache.oozie.action.hadoop.JavaActionExecutor.addAllShareLibs(JavaActionExecutor.java:825)
	at org.apache.oozie.action.hadoop.JavaActionExecutor.setLibFilesArchives(JavaActionExecutor.java:816)
	at org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:1044)
	at org.apache.oozie.action.hadoop.JavaActionExecutor.start(JavaActionExecutor.java:1293)
	at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:250)
	at org.apache.oozie.command.wf.ActionStartXCommand.execute(ActionStartXCommand.java:64)
	at org.apache.oozie.command.XCommand.call(XCommand.java:286)
	at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:321)
	at org.apache.oozie.service.CallableQueueService$CompositeCallable.call(CallableQueueService.java:250)
	at org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:175)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
&lt;/PRE&gt;&lt;P&gt;then, I check the sharelib  like this&lt;/P&gt;&lt;PRE&gt;[root@hdp-m2 bin]# oozie admin -oozie &lt;A href="http://hdp-m2:11000/oozie" target="_blank"&gt;http://hdp-m2:11000/oozie&lt;/A&gt; -shareliblist
[Available ShareLib]
&lt;/PRE&gt;&lt;P&gt;so, I create sharelib like this &lt;/P&gt;&lt;PRE&gt;./oozie-setup.sh sharelib create -fs &lt;A href="http://hdp-m2:8020" target="_blank"&gt;http://hdp-m2:8020&lt;/A&gt; -locallib /usr/hdp/2.4.0.0-169/oozie/lib/*
&lt;/PRE&gt;&lt;P&gt;then, I got the other error&lt;/P&gt;&lt;PRE&gt;log4j:WARN See &lt;A href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" target="_blank"&gt;http://logging.apache.org/log4j/1.2/faq.html#noconfig&lt;/A&gt; for more info.
Error: tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors

Stack trace for the error was (for debug purposes):
--------------------------------------
ExitCodeException exitCode=2: tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
 at org.apache.hadoop.util.Shell.runCommand(Shell.java:576)
 at org.apache.hadoop.util.Shell.run(Shell.java:487)
 at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:753)
 at org.apache.hadoop.fs.FileUtil.unTarUsingTar(FileUtil.java:675)
 at org.apache.hadoop.fs.FileUtil.unTar(FileUtil.java:651)
 at org.apache.oozie.tools.OozieSharelibCLI.run(OozieSharelibCLI.java:131)
 at org.apache.oozie.tools.OozieSharelibCLI.main(OozieSharelibCLI.java:57)
--------------------------------------&lt;/PRE&gt;&lt;P&gt; I don't konw why, Can somebody help me please. &lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 09:56:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/run-oozie-job-error/m-p/118950#M38776</guid>
      <dc:creator>lida_java</dc:creator>
      <dc:date>2016-08-25T09:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: run oozie job error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/run-oozie-job-error/m-p/118951#M38777</link>
      <description>&lt;P&gt;Oozie share lib was supposed to be created during installation and start-up of the Oozie server, and the default location in HDFS is set by:&lt;/P&gt;&lt;PRE&gt;oozie.service.WorkflowAppService.system.libpath=/user/${user.name}/share/lib&lt;/PRE&gt;&lt;P&gt;In your case it's /user/oozie/share/lib. Check do you have anything there. If yes, use "oozie admin ... -sharelibupdate, if not, restart Oozie server, it's supposed to recreate it. Check logs (output in Ambari) after server restart for any errors, and try to fix them. Finally, if there is a need to run "oozie-setup.sh sharelib create" use /usr/hdp/current/oozie-server/oozie-sharelib.tar.gz as the argument to "-locallib". Or you can just untar the tar-ball, "-put share" to /user/oozie/, and run sharelibupdate.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 10:41:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/run-oozie-job-error/m-p/118951#M38777</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-08-25T10:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: run oozie job error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/run-oozie-job-error/m-p/118952#M38778</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10704/lida-java.html" nodeid="10704"&gt;@da li &lt;/A&gt; &lt;/P&gt;&lt;P&gt;As &lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt; mentioned for sharelib setup create, use following Oozie sharelib setup create command through 'oozie' user.&lt;/P&gt;&lt;PRE&gt;/usr/hdp/current/oozie-server/bin/oozie-setup.sh sharelib create -fs hdfs://&amp;lt;hdfs hostname&amp;gt;:&amp;lt;hdfs port&amp;gt; -locallib /usr/hdp/current/oozie-server/oozie-sharelib.tar.gz&lt;/PRE&gt;&lt;P&gt;Above command will create timestamp based oozie share lib directory to HDFS directory /user/oozie/share/lib .&lt;/P&gt;&lt;P&gt;Hope this help you.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 21:27:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/run-oozie-job-error/m-p/118952#M38778</guid>
      <dc:creator>pbishnoi</dc:creator>
      <dc:date>2016-08-25T21:27:52Z</dc:date>
    </item>
  </channel>
</rss>

