##Update:
Please refer to: https://github.com/KonradIT/goprowifihack
| /* | |
| This example uses Scala. Please see the MLlib documentation for a Java example. | |
| Try running this code in the Spark shell. It may produce different topics each time (since LDA includes some randomization), but it should give topics similar to those listed above. | |
| This example is paired with a blog post on LDA in Spark: http://databricks.com/blog | |
| Spark: http://spark.apache.org/ | |
| */ | |
| import scala.collection.mutable |
##Update:
Please refer to: https://github.com/KonradIT/goprowifihack
| #!/public/spark-0.9.1/bin/pyspark | |
| import os | |
| import sys | |
| # Set the path for spark installation | |
| # this is the path where you have built spark using sbt/sbt assembly | |
| os.environ['SPARK_HOME'] = "/public/spark-0.9.1" | |
| # os.environ['SPARK_HOME'] = "/home/jie/d2/spark-0.9.1" | |
| # Append to PYTHONPATH so that pyspark could be found |
| 1,2012-01-02,New Year Day | |
| 2,2012-01-16,Martin Luther King Jr. Day | |
| 3,2012-02-20,Presidents Day (Washingtons Birthday) | |
| 4,2012-05-28,Memorial Day | |
| 5,2012-07-04,Independence Day | |
| 6,2012-09-03,Labor Day | |
| 7,2012-10-08,Columbus Day | |
| 8,2012-11-12,Veterans Day | |
| 9,2012-11-22,Thanksgiving Day | |
| 10,2012-12-25,Christmas Day |