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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

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