dlmarion commented on pull request #2259:
URL: https://github.com/apache/accumulo/pull/2259#issuecomment-915464034


   For anyone that wants to try this, here are the latest instructions:
   
   ### Trace Mechanism
   Determine which trace tool you want to use: `logging`, `jaeger`, or 
`zipkin`. I have tested with all three and will say that Jaeger seems to be the 
most user friendly. There is a `prometheus` option, but Prometheus has to be 
configured to pull/scrape metrics from an endpoint whereas the others use a 
push mechanism. I didn't bother configuring Prometheus to test it out.
   
     To log the traces to the log file, do the following:
     ```
     export OTEL_TRACES_EXPORTER=logging
     ```
     
     To send the traces to Jaeger, do the following:
     ```
     docker run -d --name jaeger -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 -p 
5775:5775/udp -p 6831:6831/udp -p 6832:6832/udp -p 5778:5778 -p 16686:16686 -p 
14268:14268 -p 14250:14250 -p 9411:9411 jaegertracing/all-in-one:1.25
     export OTEL_TRACES_EXPORTER=jaeger
     ```
   
     To send the traces to Zipkin, do the following:
     ```
     docker run --name zipkin -d -p 9411:9411 openzipkin/zipkin
     export OTEL_TRACES_EXPORTER=zipkin
     ```
     
   ### Trace UI
   The Jaeger and Zipkin docker containers have a user interface for 
visualizing the traces.
   
      Jaeger - http://localhost:16686/
      Zipkin - http://localhost:9411/
      
   ### Start Accumulo
   I built the binary tarball, extracted in somewhere and started it locally. 
Like:
   ```
   $ZOOKEEPER_HOME/bin/zkServer.sh start &
   $HADOOP_HOME/sbin/start-dfs.sh &
   cp 
/home/dlmari2/workspace/accumulo/assemble/target/accumulo-2.1.0-SNAPSHOT-bin.tar.gz
 .
   tar zxf accumulo-2.1.0-SNAPSHOT-bin.tar.gz 
   cd accumulo-2.1.0-SNAPSHOT
   # initialize Accumulo or configure it to point to an existing instance
   cp 
~/workspace/accumulo/server/tracer/target/accumulo-tracer-2.1.0-SNAPSHOT-shaded.jar
 lib/.
   bin/accumulo-cluster create-config
   bin/accumulo-cluster start
   ```
   
   NOTE: The `accumulo-tracer-2.1.0-SNAPSHOT-shaded.jar` is optional. If you 
don't copy it into the `lib` directory, no trace information will be generated. 
Be sure to start Accumulo from the same shell (or set the 
`OTEL_TRACES_EXPORTER` env variable first)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to