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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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