-
-
Save MiraLak/b213be868d61f29d227d to your computer and use it in GitHub Desktop.
Actitacker Spark Cassandra
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
public static void main(String[] args) { | |
SparkConf sparkConf = new SparkConf() | |
.setAppName("User's physical activity recognition") | |
.set("spark.cassandra.connection.host", "127.0.0.1") | |
.setMaster("local[*]"); | |
JavaSparkContext sc = new JavaSparkContext(sparkConf); | |
System.out.println("Predicted activity = " + predict(sc)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment