Support Questions
Find answers, ask questions, and share your expertise

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
Highlighted

Re: csv to orc conversion

@Sachin Chhokar

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

Highlighted

Re: csv to orc conversion

New Contributor

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

Don't have an account?