Build Jar (SBT)

Source: Internet
Author: User

Encountered in Project

Log File & Project file

Build.sbt

startup.sh

> SH startup.sh

Example

. SBT

Name: ="Simple Project"//project nameversion:="1.0"//project versionscalaversion:="2.11.8"//scala versionlibrarydependencies+="Org.apache.spark"%%"Spark-core"%"2.1.0"librarydependencies+="Org.apache.spark"%"spark-streaming_2.11"%"2.1.0"librarydependencies+="Org.apache.spark"%"spark-streaming-kafka-0-8_2.11"%"2.1.0"librarydependencies+="org.json4s"%%"Json4s-jackson"%"3.2.11"
AllDependencies should be aware of the versioncompatibility

Sh

" Org.apache.spark.examples.streaming.KafkaWordCount " /usr/local/spark/mycode/kafka/target/scala-2.11/simple-project_2.11-1.0.jar 127.0.0.1:2181 1 Sex 1

Parameters:
--driver-class-path all jars in spark and all jars in Kafka

--class project file main where class + generated jar is located
127.0.0.1:2181:zookeeper-server Kafka-server Ip+port

1 sex 1:consumer group;topics; number of consumers

REFERENCE:
http://dblab.xmu.edu.cn

 

Build Jar (SBT)

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.