Agents: getting started
Scala Spark
Install the Library
3min
Here we explain what you need to run the Scala Kensu-Spark tutorial.
1️⃣ Credentials
You need an Ingestion Token. Follow Getting Credentials .
2️⃣ Install Spark
Look on the internet for instructions on how to install Spark. The instructions here were tested with Spark 3.0.1 and Scala 2.12. The provided jar will only work with Spark 3.0.1
3️⃣ Download Kensu Spark samples & collector
Download Kensu Scala Spark sample code, data, and jar files from:
Shell
|
Download the Kensu Spark collector jar by either:
- running ./kensu-spark-example/spark_collector_downloader.py (in this case you'd need Python too)
After this the ./kensu-spark-example folder should contain:
- script.scala
- script_with_kensu.py
- data/business-data.csv
- data/contact-data.csv
- data/customers-data.csv
- script_with_kensu.scala
- kensu-spark-collector-1.0.0_spark-3.0.1.jar
- conf.ini
- sdk_2.12.jar


Updated 14 Feb 2023
Did this page help you?