SAS Data Management

SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop, SAS Data Preparation and others
BookmarkSubscribeRSS Feed
vorkady
Obsidian | Level 7

 

 

Hi

We are encountering issue in redirecting  HDFS temp Directory using option   hdfs_tempdir in the libname syntax. My id has full privilege on the temp directory path  but getting access error , which is misleading. Please advise if any community members encountered similar issues and workaround used to resolve the issue. I have included below code and SAS logs for your ready reference. Appreciate if you could help.

 

 

libname x3 hadoop AUTHDOMAIN=&auth_domain. server="xxxxt"
uri="jdbc:hive2://xxxx3/;ssl=true;transportMode=http;httpPath=gateway/default/hive2" schema="sbx_cr_mdl__user_xx"
DBMAX_TEXT=255 READ_METHOD=HDFS hdfs_tempdir="/hdp-staging/home/xxx";

 

 

Logs:

! hdfs_tempdir="/hdp-staging/home/svorkad";
ERROR: HDFS_TEMPDIR directory /hdp-staging/home/xxx does
5 The SAS System
14:31 Wednesday, September 5, 2018

not exist or is inaccessible.
ERROR: Error in the LIBNAME statement.
35

3 REPLIES 3
JBailey
Barite | Level 11

Hi @vorkady,

 

If Kerberos is being used I would bet that your Kerberos ticket will not allow writing to that location.

 

Try writing a file to the HDFS_TEMPDIR= location using PROC HADOOP. 

 

PROC HADOOP displays better (more descriptive) error messages because it goes through fewer Hadoop layers when writing the file.

 

There may be an example in my SGF workshop materials.

https://github.com/Jeff-Bailey/SGF2016_SAS3880_Insiders_Guide_Hadoop_HOW

 

If you have something like HUE available it is worth a try too.

 

 Best wishes,
Jeff

vorkady
Obsidian | Level 7
Thanks Jeff,
We also encountering issues displaying migrated Netezza table data in EG , which is visible in non sas applications such as Aginity hadoop work bench but not in EG . Further it is observed that data in table is visible in EG if column attributes set to string. I did open track with SAS support . Appreciate if you could help.


vorkady
Obsidian | Level 7

Hi,

 

I am able to resolve the issue by uploading the required  hive site xml file . We are now able to redirect temp direct in libname and also able to view table data in EG.

 

Note from Jeff and other contributors immensely helped us to resolve our Hadoop SAS config issues. 

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 2552 views
  • 0 likes
  • 2 in conversation