<?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>topic Re: Hive connectivity using Knox in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Hive-connectivity-using-Knox/m-p/478795#M14958</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/6299"&gt;@vorkady&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OK, so the original problem problem is solved and now there is an SSL error. That scares me...;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The sslcalistloc=option is SAS specific, I think. The problem may be that the SAS environment cannot find the certificate for Hortonworks. This usually boils down to a configuration problem with SSL. It may be best to show this to your Hortonworks admin. If they can't help then contact SAS Tech Support. In fact, I would probably start with SAS Tech Support because they are extremely good at this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For those looking for examples of SAS/ACCESS Interface to Hadoop LIBNAME statements that will (should) work with Knox the one on my response may be a good starting point.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best wishes,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2018 19:47:22 GMT</pubDate>
    <dc:creator>JBailey</dc:creator>
    <dc:date>2018-07-17T19:47:22Z</dc:date>
    <item>
      <title>Hive connectivity using Knox</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Hive-connectivity-using-Knox/m-p/478358#M14952</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are trying to connect Hive2&amp;nbsp; &amp;nbsp; using SAS access to Hadoop in&amp;nbsp; our SAS BI environment . I have included the required update on SAS config files and use the below libname syntax to connect Hive server using KNOX method. I am continued to get error below error message. Any suggestion and advise appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;option set=sslcalistloc="/opt/sas/third_party/xx.crt";&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;option set=SAS_HADOOP_RESTFUL='1';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;option &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;set=KNOX_GATEWAY_URL="&lt;A href="https://cvdcmdlhdpadm08.devhcloud.bmogc.net:8443/gateway/default" target="_blank"&gt;https://xx.devhcloud.xxgc.net:8443/gateway/default&lt;/A&gt;";&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;option sastrace=',,,d' sastraceloc=saslog nostsuffix;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;option set=SAS_HADOOP_CONFIG_PATH="/opt/sas/third_party/Hadoop/config";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;option set=SAS_HADOOP_JAR_PATH="/opt/sas/third_party/Hadoop/jars/lib";&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;/*modified code */&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;libname x hadoop server='xxxxx.devhcloud.bmogc.net' user='xxxxx' password="&amp;amp;wpwd"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;uri="jdbc:hive2://xxxxxx.devhcloud.bmogc.net:8443/;ssl=true; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp; &amp;nbsp;transportMode=http;httpPath=gateway/default/hive2" schema="default";&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Logs:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;26 GOPTIONS ACCESSIBLE;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;27 libname x hadoop&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;27 ! server='xxxxx.devhcloud.bmogc.net'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;27 ! user='xxxxx' password="&amp;amp;wpwd"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;28 Xri="jdbc:hive2://xxxxx.devhcloud.xxogc.net&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;28 ! :8443/;ssl=true;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;4 The SAS System&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt; 12:07 Friday, July 13, 2018&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;29 &amp;nbsp; &amp;nbsp;transportMode=http;httpPath=gateway/default/hive2"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;29 ! schema="default";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;NOTE 49-169: The meaning of an identifier after a quoted string &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt; might change in a future SAS release. Inserting &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt; white space between a quoted string and the &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt; succeeding identifier is recommended.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;ERROR: java.lang.IllegalArgumentException: Illegal character in &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt; path at index 34: hive2://dummyhost:00000/;ssl=true; &amp;nbsp; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt; &amp;nbsp;transportMode=http;httpPath=gateway/default/hive2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;ERROR: Error trying to establish connection.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;ERROR: Error in the LIBNAME statement.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 21:05:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Hive-connectivity-using-Knox/m-p/478358#M14952</guid>
      <dc:creator>vorkady</dc:creator>
      <dc:date>2018-07-17T21:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hive connectivity using Knox</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Hive-connectivity-using-Knox/m-p/478742#M14956</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/6299"&gt;@vorkady&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;libname x hadoop&amp;nbsp;uri='jdbc:hive2://cvdcmdlhdpadm08.devhcloud.bmogc.net:8443/default;ssl=true;transportMode=http;httpPath=gateway/default/hive' &lt;BR /&gt;                 server='cvdcmdlhdpadm08.devhcloud.bmogc.net' &lt;BR /&gt;                 user='svorkad' pw="&amp;amp;wpwd" schema="default";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update: this solved the original issue. There is a secondary security/configuration issue at play here. The LIBNAME statement in this reply is a syntactically correct example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;/P&gt;
&lt;P&gt;Jeff&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 15:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Hive-connectivity-using-Knox/m-p/478742#M14956</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2018-08-02T15:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hive connectivity using Knox</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Hive-connectivity-using-Knox/m-p/478761#M14957</link>
      <description>&lt;P&gt;Thanks Jeff,&lt;BR /&gt;&lt;BR /&gt;I am now getting different errors , SSL certificate related (I did include certificate path in set statements), Pl find below logs. Any idea?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; 14:30 Tuesday, July 17, 2018&lt;BR /&gt;&lt;BR /&gt;21 GPATH=&amp;amp;sasworklocation&lt;BR /&gt;22 ENCODING=UTF8&lt;BR /&gt;23 options(rolap="on")&lt;BR /&gt;24 ;&lt;BR /&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;BR /&gt;25&lt;BR /&gt;26 GOPTIONS ACCESSIBLE;&lt;BR /&gt;27 libname x hadoop&lt;BR /&gt;27 ! uri='jdbc:hive2://xxxxxx.xxxloud.bmogc.net&lt;BR /&gt;27 ! :8443/default;&lt;BR /&gt;28 ssl=true;transportMode=http;&lt;BR /&gt;28 ! httpPath=gateway/default/hive'&lt;BR /&gt;4 The SAS System&lt;BR /&gt; 14:30 Tuesday, July 17, 2018&lt;BR /&gt;&lt;BR /&gt;28 ! server='xxxx.devhcloud.bmogc.net'&lt;BR /&gt;29 user='xxxx' pw="&amp;amp;wpwd" schema="default";&lt;BR /&gt;NOTE 49-169: The meaning of an identifier after a quoted string&lt;BR /&gt; might change in a future SAS release. Inserting&lt;BR /&gt; white space between a quoted string and the&lt;BR /&gt; succeeding identifier is recommended.&lt;BR /&gt;ERROR: java.sql.SQLException: Could not establish connection to&lt;BR /&gt; jdbc:hive2://cvdcmdlhdpadm08.devhcloud.bmogc.net:8443/def&lt;BR /&gt; ault;ssl=true;transportMode=http;httpPath=gateway/default&lt;BR /&gt; /hive: javax.net.ssl.SSLHandshakeException:&lt;BR /&gt; sun.security.validator.ValidatorException: PKIX path&lt;BR /&gt; building failed:&lt;BR /&gt;5 The SAS System&lt;BR /&gt; 14:30 Tuesday, July 17, 2018&lt;BR /&gt;&lt;BR /&gt; sun.security.provider.certpath.SunCertPathBuilderExceptio&lt;BR /&gt; n: unable to find valid certification path to requested&lt;BR /&gt; target&lt;BR /&gt;ERROR: Error trying to establish connection.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 21:07:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Hive-connectivity-using-Knox/m-p/478761#M14957</guid>
      <dc:creator>vorkady</dc:creator>
      <dc:date>2018-07-17T21:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hive connectivity using Knox</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Hive-connectivity-using-Knox/m-p/478795#M14958</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/6299"&gt;@vorkady&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OK, so the original problem problem is solved and now there is an SSL error. That scares me...;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The sslcalistloc=option is SAS specific, I think. The problem may be that the SAS environment cannot find the certificate for Hortonworks. This usually boils down to a configuration problem with SSL. It may be best to show this to your Hortonworks admin. If they can't help then contact SAS Tech Support. In fact, I would probably start with SAS Tech Support because they are extremely good at this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For those looking for examples of SAS/ACCESS Interface to Hadoop LIBNAME statements that will (should) work with Knox the one on my response may be a good starting point.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best wishes,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 19:47:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Hive-connectivity-using-Knox/m-p/478795#M14958</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2018-07-17T19:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hive connectivity using Knox</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Hive-connectivity-using-Knox/m-p/478801#M14959</link>
      <description>Thanks Jeff. I have already opened SAS track and will contact with the additional details provided by you. Again thanks for your help.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jul 2018 19:52:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Hive-connectivity-using-Knox/m-p/478801#M14959</guid>
      <dc:creator>vorkady</dc:creator>
      <dc:date>2018-07-17T19:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hive connectivity using Knox</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Hive-connectivity-using-Knox/m-p/478817#M14960</link>
      <description>&lt;P&gt;My pleasure. I think you are close.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 20:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Hive-connectivity-using-Knox/m-p/478817#M14960</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2018-07-17T20:27:20Z</dc:date>
    </item>
  </channel>
</rss>

