<?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: oozie execute sqoop falls in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149307#M111833</link>
    <description>&lt;P&gt;No,          &lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2016 08:22:23 GMT</pubDate>
    <dc:creator>fengyeyouni</dc:creator>
    <dc:date>2016-03-31T08:22:23Z</dc:date>
    <item>
      <title>oozie execute sqoop falls</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149304#M111830</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;    I used oozie to execute sqoop which import data from mysql to hive.&lt;/P&gt;&lt;P&gt;   But the job was killed.&lt;/P&gt;&lt;P&gt;    The error log said:&lt;/P&gt;&lt;P&gt;  ----------------------------------------------      &lt;/P&gt;&lt;PRE&gt;16313 [main] INFO  org.apache.sqoop.mapreduce.ImportJobBase  - Transferred 1.0645 KB in 13.3807 seconds (81.4604 bytes/sec)
2016-03-30 10:54:21,743 INFO  [main] mapreduce.ImportJobBase (ImportJobBase.java:runJob(184)) - Transferred 1.0645 KB in 13.3807 seconds (81.4604 bytes/sec)
16315 [main] INFO  org.apache.sqoop.mapreduce.ImportJobBase  - Retrieved 51 records.
2016-03-30 10:54:21,745 INFO  [main] mapreduce.ImportJobBase (ImportJobBase.java:runJob(186)) - Retrieved 51 records.
16323 [main] INFO  org.apache.sqoop.manager.SqlManager  - Executing SQL statement: SELECT t.* FROM `area` AS t LIMIT 1
2016-03-30 10:54:21,753 INFO  [main] manager.SqlManager (SqlManager.java:execute(757)) - Executing SQL statement: SELECT t.* FROM `area` AS t LIMIT 1
16328 [main] INFO  org.apache.sqoop.hive.HiveImport  - Loading uploaded data into Hive
2016-03-30 10:54:21,758 INFO  [main] hive.HiveImport (HiveImport.java:importTable(195)) - Loading uploaded data into Hive
Intercepting System.exit(1)&lt;/PRE&gt;&lt;P&gt;-----------------------------------------------&lt;/P&gt;&lt;P&gt;     I searched the error from the internet, someone said "the hive-site.xml is missing, not in workflow.xml, or not correctly configured."&lt;/P&gt;&lt;P&gt;    I have uploaded hive-site.xml in HDFS /tmp/&lt;/P&gt;&lt;P&gt;    and added &amp;lt;file&amp;gt;/tmp/hive-site.xml#hive-site.xml&amp;lt;/file&amp;gt;  &lt;/P&gt;&lt;P&gt;   but the error is still exist.&lt;/P&gt;&lt;P&gt; So what can I do next ?&lt;/P&gt;&lt;P&gt;Need someone can help me!!!&lt;/P&gt;&lt;P&gt;---------------------------------------&lt;/P&gt;&lt;P&gt;&amp;lt;workflow-app xmlns="uri:oozie:workflow:0.2" name="sqoop-wf"&amp;gt;
  &amp;lt;start to="sqoop-node"/&amp;gt;
  &amp;lt;action name="sqoop-node"&amp;gt;
  &amp;lt;sqoop xmlns="uri:oozie:sqoop-action:0.2"&amp;gt;
  &amp;lt;job-tracker&amp;gt;${jobTracker}&amp;lt;/job-tracker&amp;gt;
  &amp;lt;name-node&amp;gt;${nameNode}&amp;lt;/name-node&amp;gt;
  &amp;lt;prepare&amp;gt;
  &amp;lt;delete path="${nameNode}/user/${wf:user()}/area"/&amp;gt;
  &amp;lt;/prepare&amp;gt;
  &amp;lt;configuration&amp;gt;
  &amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;mapred.job.queue.name&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;${queueName}&amp;lt;/value&amp;gt;
  &amp;lt;/property&amp;gt;
  &amp;lt;/configuration&amp;gt;
  &amp;lt;command&amp;gt;import --connect jdbc:mysql://cluster1.new:3306/crmdemo --username root --password xxxxx --table area --hive-import --hive-table default.area&amp;lt;/command&amp;gt;
  &amp;lt;file&amp;gt;/tmp/hive-site.xml#hive-site.xml&amp;lt;/file&amp;gt;
  &amp;lt;/sqoop&amp;gt;
  &amp;lt;ok to="end"/&amp;gt;
  &amp;lt;error to="fail"/&amp;gt;
  &amp;lt;/action&amp;gt;
  &amp;lt;kill name="fail"&amp;gt;
  &amp;lt;message&amp;gt;Sqoop failed, error message[${wf:errorMessage(wf:lastErrorNode())}]&amp;lt;/message&amp;gt;
  &amp;lt;/kill&amp;gt;
  &amp;lt;end name="end"/&amp;gt;
&amp;lt;/workflow-app&amp;gt;&lt;/P&gt;&lt;P&gt;---------------------------------------&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/3084-hive-site.xml"&gt;hive-site.xml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 13:04:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149304#M111830</guid>
      <dc:creator>fengyeyouni</dc:creator>
      <dc:date>2016-03-30T13:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: oozie execute sqoop falls</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149305#M111831</link>
      <description>&lt;P&gt;Is your cluster kerberized?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 16:02:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149305#M111831</guid>
      <dc:creator>sluangsay</dc:creator>
      <dc:date>2016-03-30T16:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: oozie execute sqoop falls</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149306#M111832</link>
      <description>&lt;P&gt;have you verified that the sqoop command works by itself? run it manually on the command line outside of oozie.&lt;/P&gt;&lt;P&gt;are you running your workflow through hue or via the oozie command line? if through hue, try running it on the oozie command line to verify it works as well.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 22:06:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149306#M111832</guid>
      <dc:creator>agillan</dc:creator>
      <dc:date>2016-03-30T22:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: oozie execute sqoop falls</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149307#M111833</link>
      <description>&lt;P&gt;No,          &lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 08:22:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149307#M111833</guid>
      <dc:creator>fengyeyouni</dc:creator>
      <dc:date>2016-03-31T08:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: oozie execute sqoop falls</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149308#M111834</link>
      <description>&lt;P&gt;I can run successful through the sqoop.&lt;/P&gt;&lt;P&gt;I ran oozie on the command line.&lt;/P&gt;&lt;P&gt;"oozie job -oozie &lt;A href="http://xxxxxx:11000:oozie"&gt;http://xxxxxx:11000:oozie&lt;/A&gt; -config ./job.properties -run"&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 08:25:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149308#M111834</guid>
      <dc:creator>fengyeyouni</dc:creator>
      <dc:date>2016-03-31T08:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: oozie execute sqoop falls</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149309#M111835</link>
      <description>&lt;P&gt;Hi, I got the right result!!!!&lt;/P&gt;&lt;P&gt;    The reason is hive-site.xml contained dirty config that can not be contained in the workflow.xml.&lt;/P&gt;&lt;P&gt;    So we only need the basic config:&lt;/P&gt;&lt;P&gt;------------------------------------------&lt;/P&gt;&lt;P&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://cluster2.new:9083&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;/apps/hive/warehouse&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;cluster2.new:2181,cluster3.new:2181,cluster1.new:2181,cluster4.new:2181,cluster5.new:2181&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;com.mysql.jdbc.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:mysql://cluster1.new/hive?createDatabaseIfNotExist=true&amp;lt;/value&amp;gt;
  &amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 09:39:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149309#M111835</guid>
      <dc:creator>fengyeyouni</dc:creator>
      <dc:date>2016-03-31T09:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: oozie execute sqoop falls</title>
      <link>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149310#M111836</link>
      <description>&lt;P&gt;The hive-site.xml, workflow.xml, and job.properties files should all be copied to the same application (deployment) folder in HDFS. Supporting JAR files should be placed in a “lib” sub-directory under that same application folder. Looking at your notes above, it is not clear that this is the case. Can you verify?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 10:01:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/oozie-execute-sqoop-falls/m-p/149310#M111836</guid>
      <dc:creator>tmccuch</dc:creator>
      <dc:date>2016-03-31T10:01:57Z</dc:date>
    </item>
  </channel>
</rss>

