Created
January 18, 2017 03:08
-
-
Save josep2/d06928850554ac74c376d844436418cb to your computer and use it in GitHub Desktop.
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 characters
import org.apache.spark.h2o.H2OContext | |
import org.apache.spark.sql.SparkSession | |
object PartyStarted extends App { | |
val sparkSession = SparkSession.builder | |
.master("local[*]") | |
.appName("Try H2o") | |
.config("spark.sql.crossJoin.enabled", "true") | |
.config("spark.serializer", "org.apache.spark.serializer.KryoSerializer") | |
.config("spark.driver.memory", "15g") | |
.getOrCreate() | |
val h2oContext = H2OContext.getOrCreate(sparkSession.sparkContext) | |
val dataForPost = sparkSession.read.format("").option("header", value = true).csv("Split.csv") | |
val h2oData = h2oContext.asH2OFrame(dataForPost) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment