BookmarkSubscribeRSS Feed
dkassis
Calcite | Level 5

I am trying to connect to Hadoop with SAS 9.4 EG 7.1 and am returning the error below, has anyone else ran into this and know a solution?

 

ERROR: Error trying to establish connection: Could not establish connection to jdbc:hive2://xxxxxxxxxx.xxxxx.com:7443/dept_revenue_forecasting;ssl=true;transportMode=http;httpPath=gateway/default/hive;http

       .header.Connection=close?tez.queue.name=analytics: HTTP Response code: 401

 

Here is the syntax I am using:

 

proc sql;

connect to hadoop

     (server="xxxxxxxxxx.xxx.com" subprotocol=hive2 port=7443

uri="jdbc:hive2://xxxxxxxx.xxxxxx.com:7443/dept_revenue_forecasting;ssl=true;transportMode=http;httpPath=gateway/default/hive;http.header.Connection=close?tez.queue.name=analytics"

     schema="dept_revenue_forecasting"

     user="xxxxxxxxxx"

     pw="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");

 

 

This libname is successful:

 

LIBNAME HPW_TAT hadoop  uri='jdbc:hive2://xxxxxxxxxx.xxx.com:7443/dept_revenue_forecasting;ssl=true;transportMode=http;httpPath=gateway/default/hive;http.header.Connection=close?tez.queue.name=analytics'

schema="dept_revenue_forecasting"

USER= ="xxxxxxx" PASSWORD=="{xxxxxxxxxxxxxxxxx""

3 REPLIES 3
Patrick
Opal | Level 21

@dkassis 

Never ever post real credentials (username & password) into a public forum even if encoded! 

I strongly recommend you remove the ones you've posted. Just replace the strings with XXXXXX

dkassis
Calcite | Level 5

Thanks for the heads up, that was inadvertant.

LinusH
Tourmaline | Level 20

Please verify that post install configuration for Haddop connection have been completed.

Second, verify that the libname actually works (sometime the libname statement doesn't work, but no error is issued), by firing a query on it. 

Data never sleeps

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1749 views
  • 0 likes
  • 3 in conversation