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.
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!
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.
Ready to level-up your skills? Choose your own adventure.