Getting started


Installing Jetprobe

Jetprobe is a validation framework for building tests for big data pipelines. To install Jetprobe just download the latest version .

Once downloaded, run the following commands to configure jetprobe to run from the command line.

On Linux

$ tar -xvf /path/to/jetprobe-<version>.tgz
$ cd jetprobe-<version>
$ make install
$ export PATH=$PATH:~/local/bin

This would add the jetprobe located at /home/<user>/local/bin/jetprobe to the PATH variable.

On Windows

Assuming that java is installed and available in the PATH use the below commands to add the jetprobe executable to the current PATH.

C:\Users\Me>jar xf jetprobe-<version>.zip
C:\Users\Me>SET PATH=%PATH%;%cd%\jetprobe-0.2.0-SNAPSHOT\bin

Verify the Installation

After installing JetProbe, verify the installation worked by opening a new terminal session and checking that jetprobe is available. By executing jetprobe you should see error output similar to this:

$ jetprobe -v
jetprobe 0.2.0-SNAPSHOT
build : 9bd6cacff213741ffdeb87813e66418859675da0

For getting the list of supported options just type jetprobe --help. Here’s the expected output.

Usage: jetprobe [options]

  -j, --jar <file>     Testable jar is required
  -c, --config <config>    Test config file path
  --help                   prints this usage text

Create and Run tests

Add the library

If you are using SBT, then add the following as the library dependencies. Currently the libraries are available for Scala 2.11 and 2.12.

//Currently the project is in early development. Expect to get few nasty errors.
resolvers +=
  "Sonatype OSS Snapshots" at ""

libraryDependencies ++= Seq(
    "com.jetprobe" %% "jetprobe-core" % "0.2.0-SNAPSHOT",
    "com.jetprobe" %% "jetprobe-rabbitmq" % "0.2.0-SNAPSHOT",
    "com.jetprobe" %% "jetprobe-mongo" % "0.2.0-SNAPSHOT",
    "com.jetprobe" %% "jetprobe-hadoop" % "0.2.0-SNAPSHOT"

If you are using maven as the build tool, then you can add the following dependencies

<!-- Add the snapshots repository -->



Once you have added the required libraries, start by creating a Scala class to define the scenario that needs to be validated. In this case, we are trying to validate the creation of exchange, once a http request is executed.

Currently all the tests need to be written in Scala, a language offering functional programming paradigm for JVM. Every test class unlike a Junit test must extend the TestScenario trait. A trait in Scala is similar to interfaces in Java, which consists of a single method buildScenario. This method needs to be overridden by the Custom test class. Here is an example of Hello Test Suite in JetProbe.

import com.jetprobe.core.TestPipeline
import com.jetprobe.core.annotation.PipelineMeta
import com.jetprobe.core.http.Http
import com.jetprobe.core.http.validation.HttpValidationSupport
import com.jetprobe.core.structure.PipelineBuilder

  * @author Me.
@PipelineMeta(name = "Fast Http Testing")
class HttpTestSuite extends TestPipeline with HttpValidationSupport{

  val getPosts = Http("Sample request")

  override def tasks: PipelineBuilder = {


      validateGiven("Testing Janet user",getPosts) { res =>

        given[String]("$.data.first_name") { resp =>


    validateGiven("Testing a failed test",getPosts) { res =>

      given[String]("$.data.first_name") { resp =>




The above test once executed will just pause the test pipeline for 5 seconds and then end the test. Once done, create a packaged jar and use the jetprobe CLI to run the test jar as below. jetprobe --jar /path/to/packaged-test.jar

Currently the framework supports testing of RabbitMQ, MongoDB, HDFS and HBase component properties. Head over to the next section to know more about writing tests.