Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

csv to orc conversion

csv to orc conversion

New Contributor

Hi,

I want to convert csv file to orc file. I have the below code working when input file is linux local. However its not working when its hdfs. Please help

java -jar /home/test/hadoop/orc/csv-to-orc.jar -i /home/test/InputFile.csv -o /home/test/orc -s 'struct<CvObject:string,Id:string,MessageId:string>' -sep '|' -skipcount 1

2 REPLIES 2

Re: csv to orc conversion

@Sachin Chhokar

What is the error you get while passing hdfs file? Try passing hdfs://<path>

Re: csv to orc conversion

New Contributor

Yes I tried with hdfs://<path>. However getting error as file doesnt exists.