Skip to content

7. Install Kaspacoresystem

Fadhil Yori Hibatullah edited this page Apr 20, 2021 · 1 revision

Back

  1. 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

  2. Clone the KaspaCoreSystem repository, then navigate the terminal to that directory.

    $ git clone https://github.com/mata-elang-pens/KaspaCoreSystem.git && cd KaspaCoreSystem
    
  3. Change the value in src/main/resources/application.conf to match your environment.

  4. Also change the MongoDB IP from 127.0.0.1 to your IP in src/main/scala/me/mamotis/kaspacore/jobs/DataStream.scala.

  5. Run these command from the KaspaCoreSystem directory:

    $ sbt assembly
    
  6. Copy the target/scala-2.11/KaspaCore-assembly-0.1.jar file to the defense center server.

  7. 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

Back