[Java] Download and launch Zipkin

1 minute read

last updated

July 8, 2020

The tested OS/JDK version is as follows.

  • macOS Catalina 10.15.5 -Unverified, but the procedure should be the same on Windows (If you use curl and bash, you need to install Git Bash or WSL in advance)
  • AdoptOpenJDK 11.0.7 -Installation method is introduced in another article (For WindowsFormacOS)

The version of the one to be installed is as follows.

  • Zipkin 2.21.5

If this article is out of date, the instructions below may differ from the latest installation instructions. In that case, please check Official Document.

How to download JAR

(1) Access https://search.maven.org with a browser and enter “zipkin-server” in [Search]. Click [2.21.5] in zipkin-server of io.zipkin.

This part shows the latest version at that time. You can use the version shown, even if it is different from 2.21.5.

![Screenshot 2020-07-10 9.42.46.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/58650/47ec57b8-e7e0-5a57-d271-(8a3da3fbdaab.png)

(2) Click [Download] and then [exec.jar].

![Screenshot 2020-07-10 9.44.57.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/58650/4aa7cadd-b287-88c8-290a-(b54f6f7f429c.png)

(2) Move to the folder where you downloaded the JAR in the terminal (or command prompt), and execute java -jar zipkin-server-2.21.5-exec.jar.

$ java -jar zipkin-server-2.21.5-exec.jar

                  oo
                 oooo
                oooooo
               oooooooo
              oooooooooo
             oooooooooooo
           ooooooo ooooooo
          oooooo ooooooo
         oooooo ooooooo
        oooooo o o oooooo
       oooooo oo oo oooooo
     ooooooo oooo oooo ooooooo
    oooooo ooooo ooooo ooooooo
   oooooo oooooo oooooo ooooooo
  oooooooo oo oo oooooooo
  ooooooooooooo oo oo ooooooooooooo
      oooooooooooo oooooooooooo
          oooooooo oooooooo
              oooo oooo

     ________ ____ _ _____ _ _
    |__ /_ _| _ \| |/ /_ _| \ | |
      / / | || |_) |'/ | || \| |
     / /_ | || __/|. \ | || |\ |
    |____|___|_| |_|\_\___|_| \_|

:: version 2.21.5 :: commit 7f4f274 ::

2020-07-10 09:47:26.743 INFO 1588 --- [main] zsZipkinServer :Starting ZipkinServer on tadanoMacBook-Pro.local with PID 1588 (/Users/tada/Downloads/zipkin-server-2.21.5-exec. jar started by tada in /Users/tada/Downloads)
2020-07-10 09:47:26.746 INFO 1588 --- [main] z.s.ZipkinServer: The following profiles are active: shared
2020-07-10 09:47:27.795 INFO 1588 --- [main] c.l.a.c.u.SystemInfo :hostname: tadanomacbook-pro.local (from'hostname' command)
2020-07-10 09:47:28.191 INFO 1588 --- [oss-http-*:9411] clasServer: Serving HTTP at /0:0:0:0:0:0:0:0:9411-http ://127.0.0.1:9411/
2020-07-10 09:47:28.193 INFO 1588 --- [main] clasArmeriaAutoConfiguration :Armeria server started at ports: {/0:0:0:0:0:0:0:0:9411=ServerPort(/ 0:0:0:0:0:0:0:0:9411, [http])}
2020-07-10 09:47:28.211 INFO 1588 --- [main] z.s.ZipkinServer: Started ZipkinServer in 2.428 seconds (JVM running for 3.746)

Press Ctrl + C to stop.

How to use Docker

$ docker run -d -p 9411:9411 openzipkin/zipkin

How to use # curl + bash

$ curl -sSL https://zipkin.io/quickstart.sh | bash -s
$ java -jar zipkin.jar