<?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: Sqoop logging when invoked via CLI in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98627#M12010</link>
    <description>&lt;P&gt;if you also want your sqoop command included you can expend the command like this (with set -x and set +x:
&lt;/P&gt;&lt;PRE&gt;{
echo $(date) 
set -x
beeline -u ${hive2jdbcZooKeeperUrl} -f "file.hql"
set +x
echo $(date)
} 2&amp;gt;&amp;amp;1 | tee /tmp/sqoop.log

&lt;/PRE&gt;</description>
    <pubDate>Tue, 18 Jul 2017 16:57:37 GMT</pubDate>
    <dc:creator>rene_sluiter</dc:creator>
    <dc:date>2017-07-18T16:57:37Z</dc:date>
    <item>
      <title>Sqoop logging when invoked via CLI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98621#M12004</link>
      <description>&lt;P&gt;Sqoop today does not seem to provide any option to specify location to save the logs when invokes from the CLI: it always prints details on the console.&lt;/P&gt;&lt;P&gt;Is there a way to capture Sqoop output in a file? If not any plans for this?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 03:21:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98621#M12004</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2015-12-11T03:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop logging when invoked via CLI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98622#M12005</link>
      <description>&lt;P&gt;you can try something like this&lt;/P&gt;&lt;P&gt;sqoop command 2&amp;gt;&amp;amp;1| tee -a log&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 04:03:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98622#M12005</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2015-12-11T04:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop logging when invoked via CLI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98623#M12006</link>
      <description>&lt;P&gt;I tried this once and didn't work. let me know it works for you.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2015 02:09:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98623#M12006</guid>
      <dc:creator>gbraccialli3</dc:creator>
      <dc:date>2015-12-12T02:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop logging when invoked via CLI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98624#M12007</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/238/gbraccialli.html" nodeid="238"&gt;@Guilherme Braccialli&lt;/A&gt; I tried this ..I do see log&lt;/P&gt;&lt;P&gt;-rw-r--r--.  1 root      root          4573 Dec 12 05:13 log&lt;/P&gt;&lt;P&gt;[root@phdns01 ~]# sqoop import --connect jdbc:mysql://localhost:3306/test --username root --password root --table t1 --hive-import --direct  --hive-table t1 2&amp;gt;&amp;amp;1| tee -a log&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2015 21:14:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98624#M12007</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-12T21:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop logging when invoked via CLI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98625#M12008</link>
      <description>&lt;P&gt;I use the same trick with mapreduce jobs, hive -f commands, etc, it's proven to work guys. &lt;A rel="user" href="https://community.cloudera.com/users/132/abajwa.html" nodeid="132"&gt;@Ali Bajwa&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/238/gbraccialli.html" nodeid="238"&gt;@Guilherme Braccialli&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2015 23:35:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98625#M12008</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2015-12-12T23:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop logging when invoked via CLI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98626#M12009</link>
      <description>&lt;P&gt;Yes. you just need suffix this "2&amp;gt;&amp;amp;1| tee -a sqooptest.log" along with your SQOOP EXPORT/IMPORT command&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 14:57:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98626#M12009</guid>
      <dc:creator>kuppusamy_sella</dc:creator>
      <dc:date>2017-07-18T14:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop logging when invoked via CLI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98627#M12010</link>
      <description>&lt;P&gt;if you also want your sqoop command included you can expend the command like this (with set -x and set +x:
&lt;/P&gt;&lt;PRE&gt;{
echo $(date) 
set -x
beeline -u ${hive2jdbcZooKeeperUrl} -f "file.hql"
set +x
echo $(date)
} 2&amp;gt;&amp;amp;1 | tee /tmp/sqoop.log

&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Jul 2017 16:57:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-logging-when-invoked-via-CLI/m-p/98627#M12010</guid>
      <dc:creator>rene_sluiter</dc:creator>
      <dc:date>2017-07-18T16:57:37Z</dc:date>
    </item>
  </channel>
</rss>

