How to create parquet files out of orc tables data?


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?



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").