BookmarkSubscribeRSS Feed
DrBigAl
Fluorite | Level 6

I have an issue with exporting a SAS dataset into an Hadoop file location. All of the documentation that I have seen is exporting a file from local computer that is already in txt format.

 

The file I am trying to export to Hadoop is in my 'work' library and the hdfs path is /Data/direct/abs/

 

libname out hadoop "/Data/direct/abs/" dir user="&user";

 

proc sql;
 create table out.results_set (COLUMN_DELIMITER = '|') as
 select * from work.custlist;
quit;

 

 

3 REPLIES 3
LinusH
Tourmaline | Level 20
If you want to copy data and store it as a table in Hive you need output to a SAS/ACCESS libref for Hadoop/Impala.
Filename is for files, if that's what you want use a data step with a FILE statement, or PROC EXPORT.
Data never sleeps
DrBigAl
Fluorite | Level 6

Thank you. I changed to libname and it is still now working. Says "Engine does not accept a physical name". Could it be my path that it is not accepting?

LinusH
Tourmaline | Level 20

With SAS/ACCESS engines, you usually do not refer to physical (file system) paths. For Hive, you need torefer to a Hive data base.

I think I could be wise ti visit SAS documentation page for SAS/ACCESS to Hadoop, so you can pick up the correct syntax and per-requisites.

Data never sleeps

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1627 views
  • 0 likes
  • 2 in conversation