<?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: ERROR running sqoop action from oozie in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-running-sqoop-action-from-oozie/m-p/150760#M44565</link>
    <description>&lt;P&gt;Issue was solved by my self. The solutin was:&lt;/P&gt;&lt;P&gt;1) under folder in which workflow.xml is create folder lib and put there all hive jar files from sharedlibDir(/user/oozie/share/lib/lib_20160928171540)/hive;&lt;/P&gt;&lt;P&gt;2) Create hive-site.xml with contents:&lt;/P&gt;&lt;P&gt;  &amp;lt;configuration&amp;gt;
    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;ambari.hive.db.schema.name&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;hive&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;

    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;hive.metastore.uris&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;thrift://xxxxx:9083&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;hive.zookeeper.quorum&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;xxxx:2181,yyyyy:2181,zzzzzz:2181&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;

&amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;hive.metastore.warehouse.dir&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;/smartdata/hive/&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;javax.jdo.option.ConnectionDriverName&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;org.postgresql.Driver&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;javax.jdo.option.ConnectionURL&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;jdbc:postgresql://xxxxx:5432/hive&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;javax.jdo.option.ConnectionUserName&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;hive&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
  &amp;lt;/configuration&amp;gt;
&lt;/P&gt;&lt;P&gt;and put it on hdfs for example in /tmp/hive-site.xml&lt;/P&gt;&lt;P&gt;3) Add following line in workflow.xml:&lt;/P&gt;&lt;P&gt;&amp;lt;file&amp;gt;/tmp/hive-site.xml&amp;lt;/file&amp;gt;&lt;/P&gt;&lt;P&gt;This solved my issue.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2016 16:38:49 GMT</pubDate>
    <dc:creator>RAkhmadeev</dc:creator>
    <dc:date>2016-10-28T16:38:49Z</dc:date>
    <item>
      <title>ERROR running sqoop action from oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-running-sqoop-action-from-oozie/m-p/150756#M44561</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/8930-resource-manager-ui.txt"&gt;resource-manager-ui.txt&lt;/A&gt;Hello,&lt;/P&gt;&lt;P&gt;Our HDP version 2.5&lt;/P&gt;&lt;P&gt;When we trying to run sqoop action(to load data from oracle to hive) from oozie we get folowing error in /var/log/oozie/oozie-error.log:&lt;/P&gt;&lt;P&gt;JOB[0000004-161024200820785-oozie-oozi-W] ACTION[0000004-161024200820785-oozie-oozi-W@sqoop] Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.SqoopMain], exit code [1]&lt;/P&gt;&lt;P&gt;And there is nothing more usefull for diagnostic.&lt;/P&gt;&lt;P&gt;Job.properties file listed below:&lt;/P&gt;&lt;P&gt;# properties &lt;/P&gt;&lt;P&gt;nameNode = hdfs://xxxxx:8020 &lt;/P&gt;&lt;P&gt;resourceManager = xxxx:8050 &lt;/P&gt;&lt;P&gt;queueName=default &lt;/P&gt;&lt;P&gt;oozie.use.system.libpath=true &lt;/P&gt;&lt;P&gt;oozie.wf.application.path = hdfs://xxxxxx:8020/smartdata/oozie/hive_test.xml &lt;/P&gt;&lt;P&gt;mapreduce.framework.name = yarn&lt;/P&gt;&lt;P&gt;When we running this job from command line with "sqoop ..... " as command all working fine.&lt;/P&gt;&lt;P&gt;Please some one tell me how to solve or troubleshoot this.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 19:47:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-running-sqoop-action-from-oozie/m-p/150756#M44561</guid>
      <dc:creator>RAkhmadeev</dc:creator>
      <dc:date>2016-10-26T19:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR running sqoop action from oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-running-sqoop-action-from-oozie/m-p/150757#M44562</link>
      <description>&lt;P&gt;Have you tried looking at the job output in the ResourceManager UI or using $ yarn logs -applicationId &amp;lt;application ID&amp;gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 22:44:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-running-sqoop-action-from-oozie/m-p/150757#M44562</guid>
      <dc:creator>twilson</dc:creator>
      <dc:date>2016-10-26T22:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR running sqoop action from oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-running-sqoop-action-from-oozie/m-p/150758#M44563</link>
      <description>&lt;P&gt;I believe ShareLib for Sqoop is not registered or missing from Oozie. Check the ooize sharelib by:&lt;/P&gt;&lt;PRE&gt;$ oozie admin -oozie &lt;A href="http://localhost:11000/oozie" target="_blank"&gt;http://localhost:11000/oozie&lt;/A&gt; -shareliblist&lt;/PRE&gt;&lt;P&gt;if sqoop is missing from the list, copy jars into /user/ooize/share/lib directory and run:&lt;/P&gt;&lt;PRE&gt;$ oozie admin -oozie &lt;A href="http://localhost:11000/oozie" target="_blank"&gt;http://localhost:11000/oozie&lt;/A&gt; -sharelibupdate&lt;/PRE&gt;&lt;P&gt;ref:http://oozie.apache.org/docs/4.1.0/DG_CommandLineTool.html#Getting_list_of_available_sharelib&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 00:37:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-running-sqoop-action-from-oozie/m-p/150758#M44563</guid>
      <dc:creator>umair_khan</dc:creator>
      <dc:date>2016-10-27T00:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR running sqoop action from oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-running-sqoop-action-from-oozie/m-p/150759#M44564</link>
      <description>&lt;P&gt;Hello thanks for advice but all fine with shared libraries:&lt;/P&gt;&lt;P&gt;$ oozie admin -oozie &lt;A href="http://localhost:11000/oozie"&gt;http://localhost:11000/oozie&lt;/A&gt; -shareliblist
[Available ShareLib]
hive
distcp
mapreduce-streaming
spark
oozie
hcatalog
hive2
sqoop
pig
spark_orig&lt;/P&gt;&lt;P&gt;$ oozie admin -oozie &lt;A href="http://localhost:11000/oozie"&gt;http://localhost:11000/oozie&lt;/A&gt; -sharelibupdate
[ShareLib update status]
        sharelibDirOld = hdfs://os-2471.homecredit.ru:8020/user/oozie/share/lib/lib_20160928171540
        host = &lt;A href="http://os-2471.homecredit.ru:11000/oozie"&gt;http://localhost:11000/oozie&lt;/A&gt;
        sharelibDirNew = hdfs://os-2471.homecredit.ru:8020/user/oozie/share/lib/lib_20160928171540
        status = Successful &lt;/P&gt;&lt;P&gt;$ oozie admin -oozie &lt;A href="http://localhost:11000/oozie"&gt;http://localhost:11000/oozie&lt;/A&gt; -shareliblist
[Available ShareLib]
hive
distcp
mapreduce-streaming
spark
oozie
hcatalog
hive2
sqoop
pig
spark_orig&lt;/P&gt;&lt;P&gt;On Resource manager UI all fine, see attached logs.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 16:25:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-running-sqoop-action-from-oozie/m-p/150759#M44564</guid>
      <dc:creator>RAkhmadeev</dc:creator>
      <dc:date>2016-10-27T16:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR running sqoop action from oozie</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-running-sqoop-action-from-oozie/m-p/150760#M44565</link>
      <description>&lt;P&gt;Issue was solved by my self. The solutin was:&lt;/P&gt;&lt;P&gt;1) under folder in which workflow.xml is create folder lib and put there all hive jar files from sharedlibDir(/user/oozie/share/lib/lib_20160928171540)/hive;&lt;/P&gt;&lt;P&gt;2) Create hive-site.xml with contents:&lt;/P&gt;&lt;P&gt;  &amp;lt;configuration&amp;gt;
    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;ambari.hive.db.schema.name&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;hive&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;

    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;hive.metastore.uris&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;thrift://xxxxx:9083&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;hive.zookeeper.quorum&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;xxxx:2181,yyyyy:2181,zzzzzz:2181&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;

&amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;hive.metastore.warehouse.dir&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;/smartdata/hive/&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;javax.jdo.option.ConnectionDriverName&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;org.postgresql.Driver&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;javax.jdo.option.ConnectionURL&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;jdbc:postgresql://xxxxx:5432/hive&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;javax.jdo.option.ConnectionUserName&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;hive&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
  &amp;lt;/configuration&amp;gt;
&lt;/P&gt;&lt;P&gt;and put it on hdfs for example in /tmp/hive-site.xml&lt;/P&gt;&lt;P&gt;3) Add following line in workflow.xml:&lt;/P&gt;&lt;P&gt;&amp;lt;file&amp;gt;/tmp/hive-site.xml&amp;lt;/file&amp;gt;&lt;/P&gt;&lt;P&gt;This solved my issue.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 16:38:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-running-sqoop-action-from-oozie/m-p/150760#M44565</guid>
      <dc:creator>RAkhmadeev</dc:creator>
      <dc:date>2016-10-28T16:38:49Z</dc:date>
    </item>
  </channel>
</rss>

