Skip to content
This repository has been archived by the owner on May 30, 2018. It is now read-only.

Example of how to make a custom adjuster for zipkin-sparkstreaming

License

Notifications You must be signed in to change notification settings

openzipkin-attic/zipkin-sparkstreaming-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zipkin-sparkstreaming custom adjuster example

Adjusters are used to clean or change data that goes into zipkin, such that it is more usable. For the sake of example, we assume you have an application adding very large tags in trace data. These slow down the UI and eat up more storage. This is an example adjuster for the spark streaming job, which truncates tags to a configured length.

Building example

mvn clean package

Running adjuster jar with the job

Download spark-streaming jar

wget -O zipkin-sparkstreaming-job.jar 'https://search.maven.org/remote_content?g=io.zipkin.sparkstreaming&a=zipkin-sparkstreaming-job&v=LATEST'

Run the job by adding adjuster jar to the classpath.

Note We can't run the job with -jar flag. If we use this flag, -cp option is ignored.

java -cp "zipkin-sparkstreaming-job.jar:zipkin-sparkstreaming-example-*.jar" \
  zipkin.sparkstreaming.job.ZipkinSparkStreamingJob \
  --zipkin.storage.type=elasticsearch \
  --zipkin.storage.elasticsearch.hosts=http://127.0.0.1:9200 \
  --zipkin.sparkstreaming.stream.kafka.bootstrap-servers=127.0.0.1:9092

About

Example of how to make a custom adjuster for zipkin-sparkstreaming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages