To write some csv data into parquet i can use Spark SQL. I write simple code like this:
org.apache.spark.sql.types.StructType schema = getSchema(); List