<?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: How do you pass on Hiveserver2 URL in Sqoop command in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-do-you-pass-on-Hiveserver2-URL-in-Sqoop-command/m-p/328820#M230345</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/57620"&gt;@pauljoshiva&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Sqoop uses local hive which does automatic connect so you would need to modify the information in beeline-site.xml as referenced in below article:&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-Usingbeeline-site.xmltoautomaticallyconnecttoHiveServer2" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-Usingbeeline-site.xmltoautomaticallyconnecttoHiveServer2&lt;/A&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Hence please go to /usr/hdp/&amp;lt;VERSION&amp;gt;/hive/conf then open the beeline-site.xml and modify there.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Regards,&lt;/P&gt;&lt;P class="p1"&gt;Chethan YM&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 06:11:44 GMT</pubDate>
    <dc:creator>ChethanYM</dc:creator>
    <dc:date>2021-10-26T06:11:44Z</dc:date>
    <item>
      <title>How do you pass on Hiveserver2 URL in Sqoop command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-do-you-pass-on-Hiveserver2-URL-in-Sqoop-command/m-p/326051#M229772</link>
      <description>&lt;P&gt;I've enabled Hive Ssl, Sqoop tries to connect to hive without the ssl information.&lt;/P&gt;&lt;P&gt;How do I specify or set the right jdbc URL for Hiveserver2 in Sqoop.&lt;/P&gt;&lt;P&gt;I tried using --hs2-url but got 'Unrecognized argument'.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 19:24:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-do-you-pass-on-Hiveserver2-URL-in-Sqoop-command/m-p/326051#M229772</guid>
      <dc:creator>pauljoshiva</dc:creator>
      <dc:date>2021-10-01T19:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do you pass on Hiveserver2 URL in Sqoop command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-do-you-pass-on-Hiveserver2-URL-in-Sqoop-command/m-p/326163#M229793</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you used the hs2-url something like below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;sqoop import --connect &lt;I&gt;$MYCONN&lt;/I&gt; --username &lt;I&gt;$MYUSER&lt;/I&gt; --password &lt;I&gt;$MYPSWD&lt;/I&gt; --table &lt;I&gt;"employees_test"&lt;/I&gt; --target-dir &lt;I&gt;"/user/username/importdir/employees_test"&lt;/I&gt; --delete-target-dir --hive-import --hs2-url &lt;I&gt;"jdbc:hive2://hs2host:10000/default;principal=hive/hs2host@DOMAIN.COM;ssl=true;sslTrustStore=/etc/cdep-ssl-conf/CA_STANDARD/truststore.jks;trustStorePassword=password"&lt;/I&gt; --hs2-user &lt;I&gt;username&lt;/I&gt; --hs2-keytab &lt;I&gt;"/path/to/sqooptestkeytab"&lt;/I&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Can you provide your sqoop command along with its error output?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 03:50:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-do-you-pass-on-Hiveserver2-URL-in-Sqoop-command/m-p/326163#M229793</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2021-10-04T03:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do you pass on Hiveserver2 URL in Sqoop command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-do-you-pass-on-Hiveserver2-URL-in-Sqoop-command/m-p/326203#M229814</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Please use the either of the methods and let us know if it helps:-&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Step 1:- Pass the --hs2-url correctly&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;sqoop import --connect&amp;nbsp;&lt;I&gt;&amp;lt;&amp;lt;Connection string&amp;gt;&amp;gt;&lt;/I&gt;&amp;nbsp;--username&amp;nbsp;&lt;I&gt;&amp;lt;&amp;lt;username&amp;gt;&amp;gt;&lt;/I&gt;&amp;nbsp;--password&amp;nbsp;&lt;I&gt;&amp;lt;&amp;lt;password&amp;gt;&amp;gt;&lt;/I&gt;&amp;nbsp;--table&amp;nbsp;&lt;I&gt;“ta”ble_name&lt;/I&gt;&amp;nbsp;--target-dir&amp;nbsp;&lt;I&gt;“&amp;lt;&amp;lt;“directory path&amp;gt;&amp;gt;&lt;/I&gt;&amp;nbsp;--delete-target-dir --hive-import --hs2-url&amp;nbsp;&lt;I&gt;"jdbc:hive2://hs2host:10000/default;principal=hive/hs2host@DOMAIN.COM;ssl=true;sslTrustStore=/etc/cdep-ssl-conf/CA_STANDARD/truststore.jks;trustStorePassword=password"&lt;/I&gt;&amp;nbsp;--hs2-user&amp;nbsp;&lt;I&gt;username&lt;/I&gt;&amp;nbsp;--hs2-keytab&amp;nbsp;&lt;I&gt;"/path/to/sqooptestkeytab"&lt;/I&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;If you are launching the sqoop job from CLI, you don’t need to pass the hs2-user and hs2 key tab. You can remove the parameters and run the sqoop command after doing the kinit from CLI or you can pass in the sqoop command itself like above.&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Step 2:-&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;If you don’t want to add the hs2_url&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Add the following 2 properties in the sqoop configuration and restart sqoop&lt;/P&gt;&lt;P class="p1"&gt;1. Sqoop Client Advanced Configuration Snippet (Safety Valve) for sqoop-conf/sqoop-site.xml :&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Name: sqoop.beeline.env.preserve&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Value: HADOOP_CLIENT_OPTS&lt;/P&gt;&lt;P class="p1"&gt;2. Sqoop Client Advanced Configuration Snippet (Safety Valve) for sqoop-conf/sqoop-env.sh:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;export HADOOP_CLIENT_OPTS="-Djline.terminal=jline.UnsupportedTerminal"&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 08:49:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-do-you-pass-on-Hiveserver2-URL-in-Sqoop-command/m-p/326203#M229814</guid>
      <dc:creator>ShankerSharma</dc:creator>
      <dc:date>2021-10-04T08:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do you pass on Hiveserver2 URL in Sqoop command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-do-you-pass-on-Hiveserver2-URL-in-Sqoop-command/m-p/326291#M229856</link>
      <description>&lt;P&gt;I tried using --hs2-url but got the below error&lt;/P&gt;&lt;P&gt;'ERROR tool.BaseSqoopTool: Error parsing arguments for import:&lt;BR /&gt;&amp;nbsp;ERROR tool.BaseSqoopTool: Unrecognized argument: --hs2-url'&lt;/P&gt;&lt;P&gt;Sqoop command:&lt;/P&gt;&lt;P&gt;sqoop import \&lt;BR /&gt;--connect $MYCONN \&lt;BR /&gt;--username $MYUSER \&lt;BR /&gt;--password $MYPSWD \&lt;BR /&gt;--table "employees_test" \&lt;BR /&gt;--target-dir "/user/username/importdir/employees_test" \&lt;BR /&gt;--delete-target-dir \&lt;BR /&gt;--hive-import \&lt;BR /&gt;--hs2-url "jdbc:hive2://hs2host1:2181,hs2host2:2181,hs2host3:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;ssl=true;sslTrustStore=/etc/cdep-ssl-conf/CA_STANDARD/truststore.jks;trustStorePassword=password" \&lt;BR /&gt;--hive-database 'test' \&lt;BR /&gt;--hive-table 'batch'&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 15:15:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-do-you-pass-on-Hiveserver2-URL-in-Sqoop-command/m-p/326291#M229856</guid>
      <dc:creator>pauljoshiva</dc:creator>
      <dc:date>2021-10-04T15:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do you pass on Hiveserver2 URL in Sqoop command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-do-you-pass-on-Hiveserver2-URL-in-Sqoop-command/m-p/328820#M230345</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/57620"&gt;@pauljoshiva&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Sqoop uses local hive which does automatic connect so you would need to modify the information in beeline-site.xml as referenced in below article:&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-Usingbeeline-site.xmltoautomaticallyconnecttoHiveServer2" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-Usingbeeline-site.xmltoautomaticallyconnecttoHiveServer2&lt;/A&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Hence please go to /usr/hdp/&amp;lt;VERSION&amp;gt;/hive/conf then open the beeline-site.xml and modify there.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Regards,&lt;/P&gt;&lt;P class="p1"&gt;Chethan YM&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 06:11:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-do-you-pass-on-Hiveserver2-URL-in-Sqoop-command/m-p/328820#M230345</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2021-10-26T06:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do you pass on Hiveserver2 URL in Sqoop command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-do-you-pass-on-Hiveserver2-URL-in-Sqoop-command/m-p/329085#M230389</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/57620"&gt;@pauljoshiva&lt;/a&gt;,&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 12:23:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-do-you-pass-on-Hiveserver2-URL-in-Sqoop-command/m-p/329085#M230389</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2021-10-28T12:23:24Z</dc:date>
    </item>
  </channel>
</rss>

