标签:
cd sparkapp/
ls
find .
/usr/local/sbt/sbt package
package完成:
hadoop@Athena:~/sparkapp$ ls
project
simple.sbt src
target
打包位置:
我们就可以将生成的 jar 包通过 spark-submit 提交到 Spark 中运行:
/usr/local/spark/bin/spark-submit --class "SimpleApp" ~/sparkapp/target/scala-2.10/simple-project_2.10-1.0.jar
/usr/local/spark/bin/spark-submit --class "SimpleApp" ~/sparkapp/target/scala-2.10/simple-project_2.10-1.0.jar 2>&1 | grep "Lines with a:"
//精简信息查看运行结果。
参考/转载:http://www.powerxing.com/spark-quick-start-guide/
标签:
原文地址:http://www.cnblogs.com/iathena/p/5615746.html