Spark Configuration (6)-Standalone application

Source: Internet
Author: User

 
   
  
  1. cd sparkapp/
  2. ls
  3. find .
  4. /usr/local/sbt/sbt package


Package Complete:


 
   
  
  1. [email protected]:~/sparkapp$ ls
  2. project  simple.sbt  src  target

Packing location:

We can then submit the generated jar package to spark through Spark-submit:

  
 
  1. / usr / Span class= "KWD" >local / spark / bin / spark - submit -- class "Simpleapp" ~/ sparkapp / target / scala - 2.10 / simple - project_2 10 - 1.0 jar


  
 
  1. /usr/Local/Spark/bin/Spark-Submit--class"Simpleapp" ~/Sparkapp/Target/Scala-2.10/ Simple-project_2.Ten-1.0.Jar2>&1 |grep"Lines with a:"
  2. //精简信息查看运行结果。

    • For a more in-depth understanding of the spark API, see the Spark Programming Guide (Spark programming Guides);
    • If you want to know more about the use of Spark SQL, you can view the spark SQL, Dataframes, and Datasets guides;
    • If you want to know more about the use of spark streaming, you can view the Spark streaming programming guide;
    • If you need to run spark programs in a clustered environment, you can view the Spark cluster deployment on your website



Ref/reprint: http://www.powerxing.com/spark-quick-start-guide/




From for notes (Wiz)

Spark Configuration (6)-Standalone application

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.