Converting an HDFS file to ORC
In CDP Private Cloud Base, to use Hive to query data in HDFS, you apply a schema to the data and then store data in ORC format.
Name,Miles_per_Gallon,Cylinders,Displacement,Horsepower,Weight_in_lbs, \
Acceleration,Year,Origin
"chevrolet chevelle malibu",18,8,307,130,3504,12,1970-01-01,A
"buick skylark 320",15,8,350,165,3693,11.5,1970-01-01,A
"plymouth satellite",18,8,318,150,3436,11,1970-01-01,A
"amc rebel sst",16,8,304,150,3433,12,1970-01-01,A
"ford torino",17,8,302,140,3449,10.5,1970-01-01,A