LASR Procedure

Example 10: Saving a Table to HDFS

Details

The server can save in-memory tables to HDFS. Use the SAVE statement to provide a table specification and the save options.
option set=GRIDHOST="grid001.example.com";
option set=GRIDINSTALLLOC="/opt/TKGrid";

proc lasr port=10010;
    save sales.sales2012 / path="/dept/grp1/" copies=1 blocksize=32m; 1
    save sales.avg2012 / fullpath path="/dept/grp1/avg/y2012" copies=1; 2
run;

Program Description

  1. The table that is named sales2012 is saved to HDFS as /dept/grp1/sales2012.sashdat.
  2. The table that is named avg2012 is saved to HDFS as /dept/grp1/avg/y2012.sashdat. The FULLPATH option is used to rename the file.