Skip to content

Instantly share code, notes, and snippets.

@MiraLak
Created May 31, 2015 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MiraLak/b213be868d61f29d227d to your computer and use it in GitHub Desktop.
Save MiraLak/b213be868d61f29d227d to your computer and use it in GitHub Desktop.
Actitacker Spark Cassandra
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