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""
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
Thanks for the heads up, that was inadvertant.
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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: