Question: how to convert csv to parquet file?
Answer: You can use Apache Drill, as described in Convert a CSV File to Apache Parquet With Drill. You can change the dfs. tmp location by going to http://localhost:8047/storage/dfs (source: CSV and Parquet). The following code is an example using spark2.