0

这是我按照本文档中的说明在我的 HBase 日志中看到的内容:

http://hbase.apache.org/book.html#tracing

2017-03-02 09:47:12,851 ERROR [main] htrace.SpanReceiverBuilder: SpanReceiverBuilder cannot find a constructor for class org.apache.htrace.impl.ZipkinSpanReceiverwhich takes an HTraceConfiguration.  Disabling span receiver.

这是我在 hbase-site.xml 中的条目:

   <property>
      <name>hbase.trace.spanreceiver.classes</name>
      <value>org.apache.htrace.impl.ZipkinSpanReceiver</value>
    </property>
    <property>
      <name>hbase.htrace.zipkin.collector-hostname</name>
      <value>jesaremi-svpc</value>
    </property>
    <property>
      <name>hbase.htrace.zipkin.collector-port</name>
      <value>9410</value>
    </property>

我在 HBase Lib 文件夹中有以下附加 jar 文件:

zipkin-1.20.1.jar
htrace-core-3.1.0-incubating.jar
htrace-zipkin-4.2.0-incubating.jar
4

1 回答 1

0

HTraceConfiguration 包名称不同。

(org.apache.htrace.HTraceConfiguration -> htrace- core -3.1.0-incubating.jar) (org.apache.htrace.core.HTraceConfiguration -> htrace-zipkin-4.2.0-incubating.jar)

我使用 htrace-zipkin 3.1.0 版解决了这个问题。

于 2017-10-13T06:32:11.817 回答