Valid in: | Anywhere |
Category: | Data Access |
Restriction: | Access to Hadoop configurations on systems based on UNIX |
hadoop-options can be any of the following values:
acctdata.dat
at site xxx.unx.sas.com
.
The configuration file is accessed from the “cfg” fileref
assignment.filename cfg 'U:/test.cfg'; data _null_; file cfg; input; put _infile_; datalines4; <configuration> <property> <name>fs.default.name</name> <value>hdfs://xxx.unx.sas.com:8020</value> </property> </property> <name>mapred.job.tracker</name> <value>xxx.unx.sas.com:8021</value> </property> </configuration> ;;;; filename foo hadoop '/user/xxxx/acctdata.dat' cfg=cfg user='xxxx' pass='xxxx' debug recfm=s lrecl=65536 bufferlen=65536; data _null_; infile foo truncover; input a $1024.; put a; run;
filename foo hadoop 'file1.dat' cfg='U=/hadoopcfg.xml' user='user' pass='apass' recfm=s lrecl=1024 bufferlen=1000000; data _null_; infile foo truncover; input a $1024.; put a; run;