Follow these steps to
copy a small SAS sample table into Hadoop and execute a transformation
on that data.
-
Open SAS Data Loader
and click the directive Copy Data to Hadoop.
-
In the
Source
Table page, click the SAS Server data source.
-
-
Click the CARS source
table and click
Next.
-
In the
Filter page,
click
Next to filter all SAS source rows
into the Hadoop target table.
-
In the
Columns page,
click
Next to accept the existing number
and arrangement of columns.
-
In the
Target
Table page, click an appropriate location for what will
be a new table.
-
Click
![New Table icon](images/newtableicon.png)
and enter a table name such as SASCars2004.
-
In the Code tab, browse
the generated code, and then click
Next.
-
In the
Result page,
click
Start copying data.
-
Click
View
Results to see your new table in Hadoop.
-
To transform your new
table, click
![back to directives icon](images/backtodirectivesicon.png)
.
-
In the
Directives page,
click
Transform Data in Hadoop.
-
In the
Source
Table page, click the data source that you just used
to store your new table.
-
Click your new table,
and then click
Next.
-
In the
Transformations page,
select
Summarize Rows.
-
Select group-by rows,
summaries and aggregations, and then click
Next.
-
In the
Target
Table page, click the data source that you use for target
data, click
![New table icon](images/newtableicon.png)
, enter a table name, and then click
Next.
-
In the
Result page,
click
Start transforming data. The job will
run for a minute or so. Click View Results to see your first transformation
in Hadoop using SAS Data Loader. Congratulations!