Example 1 - Read Custom-Formatted Data from HDFS
The sample code makes the following assumptions.
- The data is contained in HDFS directory /demo/data/temp and the name node is running on port 8081.
- This code writes the data in Greenplum Database format to /demo/data/MRTest1 on HDFS.
- The data contains the following columns, in order.
- A long integer
- A Boolean
- A text string