<?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 Connect to DB with Truststore in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125374#M31044</link>
    <description>&lt;P&gt;So is that the same exception you got initally? &lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2016 17:15:11 GMT</pubDate>
    <dc:creator>jyadav</dc:creator>
    <dc:date>2016-06-09T17:15:11Z</dc:date>
    <item>
      <title>Sqoop Connect to DB with Truststore</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125369#M31039</link>
      <description>&lt;P&gt;
	Hello,&lt;/P&gt;&lt;P&gt;
	I am trying to access a VIrtual Database from JBoss Data Virtualization using Sqoop. This database is defined to connect using a Truststore (JKS format), using another application like Squirrel i can connect using the following argument:&lt;/P&gt;&lt;PRE&gt;	-Djavax.net.ssl.trustStore=/home/user/truststore-xxxxx.jks&lt;/PRE&gt;&lt;P&gt;Does anyone knows how can I use this argument with Sqoop? &lt;/P&gt;&lt;P&gt;Ps.: I already deploy my .jar file on $SQOOP_HOME/lib.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 21:38:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125369#M31039</guid>
      <dc:creator>wnascimento</dc:creator>
      <dc:date>2016-06-07T21:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Connect to DB with Truststore</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125370#M31040</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/856/wnascimento.html" nodeid="856"&gt;@Washington Nascimento&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Try with below two commands.&lt;/P&gt;&lt;PRE&gt;export HADOOP_OPTS=" -Djavax.net.ssl.trustStore=/home/user/truststore-xxxxx.jks"&lt;/PRE&gt;&lt;P&gt;OR&lt;/P&gt;&lt;PRE&gt;sqoop import -Dmapred.child.java.opts=" -Djavax.net.ssl.trustStore=/home/user/truststore-xxxxx.jks"&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jun 2016 22:08:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125370#M31040</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-06-07T22:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Connect to DB with Truststore</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125371#M31041</link>
      <description>&lt;P&gt;Hello &lt;A href="https://community.hortonworks.com/users/2528/jyadav.html"&gt;Jitendra Yadav&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The solution was great, the first one (export... HADOOP_OPTS...) worked for me!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 20:13:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125371#M31041</guid>
      <dc:creator>wnascimento</dc:creator>
      <dc:date>2016-06-08T20:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Connect to DB with Truststore</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125372#M31042</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/856/wnascimento.html" nodeid="856"&gt;@Washington Nascimento&lt;/A&gt; Thanks for confirming. Please accept the answer to close this thread.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 20:18:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125372#M31042</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-06-08T20:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Connect to DB with Truststore</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125373#M31043</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Now the problem is the following error:&lt;/P&gt;&lt;PRE&gt;Error: java.lang.RuntimeException: java.lang.RuntimeException: org.teiid.jdbc.TeiidSQLException: TEIID20020 Error establishing socket to host and port: xxxx.hostname:port. Reason: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at org.apache.sqoop.mapreduce.db.DBInputFormat.setConf(DBInputFormat.java:167)
        at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:76)
        at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:136)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:749)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
        at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:415)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
        at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
&lt;/PRE&gt;&lt;P&gt;We tried to put the enviroment variable on all slave/master nodes like the following commando on /etc/profile ... /etc/bashrc&lt;/P&gt;&lt;PRE&gt;export HADOOP_OPTS="-Djavax.net.ssl.trustStore=/home/user/truststore.jks"&lt;/PRE&gt;&lt;P&gt;But unfortunately the error persists.&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 01:45:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125373#M31043</guid>
      <dc:creator>wnascimento</dc:creator>
      <dc:date>2016-06-09T01:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Connect to DB with Truststore</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125374#M31044</link>
      <description>&lt;P&gt;So is that the same exception you got initally? &lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:15:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125374#M31044</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-06-09T17:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Connect to DB with Truststore</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125375#M31045</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It worked fine now, the first solution worked connected to the database, but when Sqoop was running Map Reduce, the same error occurred. This way all Map Reduce agents have this configuration.&lt;/P&gt;&lt;P&gt;So the solution is configure the TrustStore parameter on Map Reduce Configuration inside Ambari&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4902-ambari-erietp-google-chrome-4.png" style="width: 705px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22685iDBE8A597EBAE5009/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4902-ambari-erietp-google-chrome-4.png" alt="4902-ambari-erietp-google-chrome-4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The value:&lt;/P&gt;&lt;PRE&gt;-Djavax.net.ssl.trustStore=/home/user/truststore.jks&lt;/PRE&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:10:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-Connect-to-DB-with-Truststore/m-p/125375#M31045</guid>
      <dc:creator>wnascimento</dc:creator>
      <dc:date>2019-08-19T10:10:08Z</dc:date>
    </item>
  </channel>
</rss>

