<?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 Running Sqoop via Oozie only gives error: &amp;quot;[org.apache.oozie.action.hadoop.SqoopMain], exit code [1]&amp;quot;, empty stdout in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Running-Sqoop-via-Oozie-only-gives-error-quot-org-apache/m-p/212026#M77059</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to run Sqoop via Oozie as a first test workflow (from the Workflow Manager view in HDP). I've setup my own installation of the current HDP version. However, my workflow always fails to execute, Oozie tells me:&lt;/P&gt;&lt;P&gt;Main class [org.apache.oozie.action.hadoop.SqoopMain], exit code [1], External status: FAILED/KILLED&lt;/P&gt;&lt;P&gt;I've looked at the instructions at &lt;A href="https://community.hortonworks.com/articles/9148/troubleshooting-an-oozie-flow.html" target="_blank"&gt;https://community.hortonworks.com/articles/9148/troubleshooting-an-oozie-flow.html&lt;/A&gt; to find the real error message, but the stdout log is empty:&lt;/P&gt;&lt;PRE&gt;Log Type: stdout
Log Upload Time: Tue Apr 10 16:29:39 +0200 2018
Log Length: 0 &lt;/PRE&gt;&lt;P&gt; and stderr does not give me any useful information as far as I see this:&lt;/P&gt;&lt;PRE&gt;Apr 10, 2018 4:30:04 PM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.mapreduce.v2.app.webapp.JAXBContextResolver as a provider class
Apr 10, 2018 4:30:04 PM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.yarn.webapp.GenericExceptionHandler as a provider class
Apr 10, 2018 4:30:04 PM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.mapreduce.v2.app.webapp.AMWebServices as a root resource class
Apr 10, 2018 4:30:04 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'
Apr 10, 2018 4:30:04 PM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding org.apache.hadoop.mapreduce.v2.app.webapp.JAXBContextResolver to GuiceManagedComponentProvider with the scope "Singleton"
Apr 10, 2018 4:30:06 PM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding org.apache.hadoop.yarn.webapp.GenericExceptionHandler to GuiceManagedComponentProvider with the scope "Singleton"
Apr 10, 2018 4:30:09 PM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding org.apache.hadoop.mapreduce.v2.app.webapp.AMWebServices to GuiceManagedComponentProvider with the scope "PerRequest"
log4j:WARN No appenders could be found for logger (org.apache.hadoop.mapreduce.v2.app.MRAppMaster).
log4j:WARN Please initialize the log4j system properly.
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.&lt;/PRE&gt;&lt;P&gt;Does someone have a good idea what else I could try to get Sqoop running via Oozie? I've looked at quite a few entries here in the community, but found nothing promising so far. Executing Sqoop locally in the shell works fine after fixing the JDBC drivers.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 21:44:01 GMT</pubDate>
    <dc:creator>frank_wein</dc:creator>
    <dc:date>2018-04-10T21:44:01Z</dc:date>
    <item>
      <title>Running Sqoop via Oozie only gives error: "[org.apache.oozie.action.hadoop.SqoopMain], exit code [1]", empty stdout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Running-Sqoop-via-Oozie-only-gives-error-quot-org-apache/m-p/212026#M77059</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to run Sqoop via Oozie as a first test workflow (from the Workflow Manager view in HDP). I've setup my own installation of the current HDP version. However, my workflow always fails to execute, Oozie tells me:&lt;/P&gt;&lt;P&gt;Main class [org.apache.oozie.action.hadoop.SqoopMain], exit code [1], External status: FAILED/KILLED&lt;/P&gt;&lt;P&gt;I've looked at the instructions at &lt;A href="https://community.hortonworks.com/articles/9148/troubleshooting-an-oozie-flow.html" target="_blank"&gt;https://community.hortonworks.com/articles/9148/troubleshooting-an-oozie-flow.html&lt;/A&gt; to find the real error message, but the stdout log is empty:&lt;/P&gt;&lt;PRE&gt;Log Type: stdout
Log Upload Time: Tue Apr 10 16:29:39 +0200 2018
Log Length: 0 &lt;/PRE&gt;&lt;P&gt; and stderr does not give me any useful information as far as I see this:&lt;/P&gt;&lt;PRE&gt;Apr 10, 2018 4:30:04 PM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.mapreduce.v2.app.webapp.JAXBContextResolver as a provider class
Apr 10, 2018 4:30:04 PM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.yarn.webapp.GenericExceptionHandler as a provider class
Apr 10, 2018 4:30:04 PM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.mapreduce.v2.app.webapp.AMWebServices as a root resource class
Apr 10, 2018 4:30:04 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'
Apr 10, 2018 4:30:04 PM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding org.apache.hadoop.mapreduce.v2.app.webapp.JAXBContextResolver to GuiceManagedComponentProvider with the scope "Singleton"
Apr 10, 2018 4:30:06 PM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding org.apache.hadoop.yarn.webapp.GenericExceptionHandler to GuiceManagedComponentProvider with the scope "Singleton"
Apr 10, 2018 4:30:09 PM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory getComponentProvider
INFO: Binding org.apache.hadoop.mapreduce.v2.app.webapp.AMWebServices to GuiceManagedComponentProvider with the scope "PerRequest"
log4j:WARN No appenders could be found for logger (org.apache.hadoop.mapreduce.v2.app.MRAppMaster).
log4j:WARN Please initialize the log4j system properly.
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.&lt;/PRE&gt;&lt;P&gt;Does someone have a good idea what else I could try to get Sqoop running via Oozie? I've looked at quite a few entries here in the community, but found nothing promising so far. Executing Sqoop locally in the shell works fine after fixing the JDBC drivers.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 21:44:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Running-Sqoop-via-Oozie-only-gives-error-quot-org-apache/m-p/212026#M77059</guid>
      <dc:creator>frank_wein</dc:creator>
      <dc:date>2018-04-10T21:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Running Sqoop via Oozie only gives error: "[org.apache.oozie.action.hadoop.SqoopMain], exit code [1]", empty stdout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Running-Sqoop-via-Oozie-only-gives-error-quot-org-apache/m-p/212027#M77060</link>
      <description>&lt;P&gt;Actually I think I manually found the logs for stdout now: I copied the application id from the Hadoop management website and executed the command&lt;/P&gt;&lt;P&gt;yarn logs -applicationId [applicationId]&lt;/P&gt;&lt;P&gt;on command line and there I found what I was looking for (a better log :). For the part I was looking for it said below the log:&lt;/P&gt;&lt;PRE&gt;End of LogType:stdout
***********************************************************************

Container: container_e03_1523366722691_0006_01_000002 on ubuntu_45454
LogAggregationType: AGGREGATED

&lt;/PRE&gt;&lt;P&gt;Can I find this type of log not in the web interface then? Or do I need to check in a different web interface?&lt;/P&gt;&lt;P&gt;Edit: Looks like Hadoop Web interface only knew about attempt Nr. 1 in the job history for the MapReduce job (see the 000002 in the excerpt above). When I manually change the URL of the container ID to 00002 (e.g. ... container_e03_1523366722691_0006_01_000002/job_1523366722691_0006/admin), I can also see the log in the web interface. Confusing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; anyway, it looks like I used the wrong arguments somehow for Sqoop, even though I'm quite sure it worked this way in the console. Problem solved (for now).&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 22:09:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Running-Sqoop-via-Oozie-only-gives-error-quot-org-apache/m-p/212027#M77060</guid>
      <dc:creator>frank_wein</dc:creator>
      <dc:date>2018-04-10T22:09:16Z</dc:date>
    </item>
  </channel>
</rss>

