Skip to content

wojciech-zurek/kotlin-apache-spark-example

Repository files navigation

kotlin-apache-spark-example

kotlin apache spark example

Download

    git clone https://github.com/wojciech-zurek/kotlin-apache-spark-example.git

Build shadow/fat jar

    cd kotlin-apache-spark-example/
    ./gradlew shadowJar

Run reduce example

    java -cp build/libs/kotlin-apache-spark-example-1.0-SNAPSHOT-all.jar eu.wojciechzurek.spark.ReduceExampleKt

Run SQL Reflection example

    java -cp build/libs/kotlin-apache-spark-example-1.0-SNAPSHOT-all.jar eu.wojciechzurek.spark.SQLReflectionExampleKt

Run SQL Schema example

    java -cp build/libs/kotlin-apache-spark-example-1.0-SNAPSHOT-all.jar eu.wojciechzurek.spark.SQLSchemaExampleKt

Run ML Correlation example

    java -cp build/libs/kotlin-apache-spark-example-1.0-SNAPSHOT-all.jar eu.wojciechzurek.spark.CorrelationExampleKt

Run ML Hypothesis(ChiSquareTest) example

    java -cp build/libs/kotlin-apache-spark-example-1.0-SNAPSHOT-all.jar eu.wojciechzurek.spark.HypothesisExampleKt

Run ML ALS example

    java -cp build/libs/kotlin-apache-spark-example-1.0-SNAPSHOT-all.jar eu.wojciechzurek.spark.ALSExampleKt