Created
September 21, 2018 17:03
-
-
Save ahoy-jon/adb21e68fe0532071acf2e81ff88e76c to your computer and use it in GitHub Desktop.
This file contains 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
package io.univalence | |
import fr.jetoile.hadoopunit.HadoopUtils | |
import org.apache.spark.sql.SparkSession | |
object TestSpark { | |
def main(args: Array[String]): Unit = { | |
HadoopUtils.INSTANCE.loadConfigFile(null) | |
val ss = SparkSession.builder().master("local").appName("toto").getOrCreate() | |
import ss.implicits._ | |
val ds = ss.createDataset(0 to 10) | |
ds.collect().foreach(println) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment