Kensu Documentation

⌘K
Getting started with the Kensu Community Edition
Marketing campaign
Financial data report
Getting credentials
Recipe: Observe Your First Pipeline
Agents: getting started
Python
PySpark
Scala Spark
Databricks Notebook
Agent Listing
Docs powered by archbee 
3min

Install the Library

Here we explain what you need to run the Scala Kensu-Spark tutorial.

⚙️ Pre-requisites

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
|
git clone https://github.com/kensuio-oss/kensu-getting-started-with-agents.git
cd kensu-getting-started-with-agents/kensu-spark-example


Download the Kensu Spark collector jar by either:

  • running ./kensu-spark-example/spark_collector_downloader.py (in this case you'd need Python too)
  • or download the jar manually from here and place into into ./kensu-spark-example/ directory



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?
Yes
No
UP NEXT
Configure the Agent
Docs powered by archbee 
TABLE OF CONTENTS
⚙️ Pre-requisites