forked from ferryastika/MataElang-Platform
-
Notifications
You must be signed in to change notification settings - Fork 1
7. Install Kaspacoresystem
Fadhil Yori Hibatullah edited this page Apr 20, 2021
·
1 revision
-
Make sure you have already installed JDK 8/openJDK 8, Scala-SBT, and Apache Spark. See this tutorial for spark : https://medium.com/ymedialabs-innovation/apache-spark-on-a-multi-node-cluster-b75967c8cb2b
-
Clone the KaspaCoreSystem repository, then navigate the terminal to that directory.
$ git clone https://github.com/mata-elang-pens/KaspaCoreSystem.git && cd KaspaCoreSystem
-
Change the value in
src/main/resources/application.conf
to match your environment. -
Also change the MongoDB IP from 127.0.0.1 to your IP in
src/main/scala/me/mamotis/kaspacore/jobs/DataStream.scala
. -
Run these command from the KaspaCoreSystem directory:
$ sbt assembly
-
Copy the
target/scala-2.11/KaspaCore-assembly-0.1.jar
file to the defense center server. -
Run the application on Apache Spark with this example command :
spark-submit --master spark://SPARK_MASTER_HOST:SPARK_MASTER_PORT --class me.mamotis.kaspacore.jobs.DataStream --total-executor-cores 4 --conf spark.submit.deployMode=client --conf spark.executor.cores=1 --conf spark.executor.memory=4g file:///opt/KaspaCore-assembly-0.1.jar