Last active
October 24, 2016 06:24
-
-
Save dotneet/c8f39836bc9fd87dc742 to your computer and use it in GitHub Desktop.
Revisions
-
dotneet revised this gist
Oct 24, 2016 . No changes.There are no files selected for viewing
-
dotneet revised this gist
Jun 27, 2015 . No changes.There are no files selected for viewing
-
dotneet revised this gist
Jun 27, 2015 . No changes.There are no files selected for viewing
-
dotneet revised this gist
Jun 27, 2015 . No changes.There are no files selected for viewing
-
dotneet revised this gist
Jun 27, 2015 . No changes.There are no files selected for viewing
-
dotneet created this gist
Jun 27, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ sqlContext.setConf("spark.sql.parquet.compression.codec", "snappy") val jsonDataFrame = sqlContext.read.json(jsonFilePath) val jsonDataFrame.select("id","type","arg1","arg2","arg3","time").write.format("parquet").save(parquetPath) This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ spark.serializer org.apache.spark.serializer.KryoSerializer spark.executor.memory 6g spark.driver.memory 2g