hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandru Calin <alexandrucali...@gmail.com>
Subject Tracing Hadoop using HTrace with Zipkin
Date Sat, 27 Aug 2016 13:52:57 GMT

I am trying to use HTrace with Hadoop 2.6.0 on Ubuntu 14.04. I have
followed Hadoop's HTrace integration tutorial here

I have added the following configuration properties to core-site.xml on all
nodes ( namenode & datanodes ), as specified in the tutorial:


I have followed the *Setting up ZipkinSpanReceiver* section, compiled,
built & copied the libraries:


I have downloaded Zipkin from here <https://github.com/openzipkin/zipkin> and
started the server running the jar.

I have compiled, the TracingFsShell.java, with some minor modifications to
including dependencies:

import org.apache.hadoop.conf.Configuration;import
org.apache.hadoop.util.ToolRunner;import org.htrace.Sampler;import
org.htrace.Trace;import org.htrace.TraceScope;
public class TracingFsShell {
  public static void main(String argv[]) throws Exception {
    Configuration conf = new Configuration();
    FsShell shell = new FsShell();
    int res = 0;
    TraceScope ts = null;
    try {
      ts = Trace.startSpan("FsShell", Sampler.ALWAYS);
      res = ToolRunner.run(shell, argv);
    } finally {
      if (ts != null) ts.close();

The modifications came after I wasn't able to build the example and have
looked through the classes of the two compiled jars(htrace-core &
htrace-zipkin). When I run the example, I get nothing in zipkin.

java -cp .:`hadoop classpath` TracingFsShell -ls /Found 1 items
drwxr-xr-x   - hduser supergroup          0 2016-07-02 08:28 /user

Am I missing something?

View raw message