How to create parquet files out of orc tables data?


#1

I have an ORC table and I need to convert the data to parquet files to be used by AWS.

How can I do it?

I thought of create parquet file format tables out of my orc tables but I am not sure if this is what would work with AWS?

Can someone please help?

Thanks


#2

Using spark sql u can query the orc table . The result of the query create a dataframe . Using that dataframe write into parquet file DF.write.parquet("/user/root/file").