Hi Abhishek,

hbase-0.98.5 is built against htrace-2.04.
Because htrace-2.04 is not compatible with 3.0.4,
you shold use htrace htrace-2.04 in this case.

The configuration property is slightly different for htrace-2.04.
(not org.htrace.impl but org.cloudera.htrace.impl)::

  <property>
    <name>hbase.trace.spanreceiver.classes</name>
    <value>org.cloudera.htrace.impl.ZipkinSpanReceiver</value>
  </property>

You also need to fix pom.xml of htrace-zipkin
in order to build jar-with-dependency by maven-assembly-plugin.
I show you the build procedure and diff of pom.xml below.
It worked for me with newest zipkin and hbase-0.98.5.

git clone https://github.com/cloudera/htrace
cd htrace
git checkout htrace-2.04
cd htrace-zipkin/
vim pom.xml
mvn compile assembly:single
cp target/htrace-zipkin-2.04-jar-with-dependencies.jar 
/path/to/hbase-0.98.5-hadoop2/lib/

git diff
diff --git a/htrace-zipkin/pom.xml b/htrace-zipkin/pom.xml
index fbdb64e..3231ccc 100644
--- a/htrace-zipkin/pom.xml
+++ b/htrace-zipkin/pom.xml
@@ -52,6 +52,14 @@ language governing permissions and limitations under the 
License. -->
         <!-- explicitly define maven-deploy-plugin after other to force exec 
order -->
         <artifactId>maven-deploy-plugin</artifactId>
       </plugin>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <configuration>
+          <descriptorRefs>
+            <descriptorRef>jar-with-dependencies</descriptorRef>
+          </descriptorRefs>
+        </configuration>
+      </plugin>
     </plugins>
   </build>

@@ -61,15 +69,18 @@ language governing permissions and limitations under the 
License. -->
       <groupId>org.cloudera.htrace</groupId>
       <artifactId>htrace-core</artifactId>
       <version>${project.version}</version>
+      <scope>provided</scope>
     </dependency>
     <!-- Global deps. -->
     <dependency>
       <groupId>commons-logging</groupId>
       <artifactId>commons-logging</artifactId>
+      <scope>provided</scope>
     </dependency>
     <dependency>
       <groupId>com.google.guava</groupId>
       <artifactId>guava</artifactId>
+      <scope>provided</scope>
     </dependency>
     <dependency>
       <groupId>junit</groupId>
@@ -81,6 +92,7 @@ language governing permissions and limitations under the 
License. -->
       <groupId>org.apache.thrift</groupId>
       <artifactId>libthrift</artifactId>
       <version>0.9.0</version>
+      <scope>provided</scope>
     </dependency>
     <dependency>
       <groupId>commons-codec</groupId>



(10/12/14, 13:20), Masatake Iwasaki wrote:
Hi Abhishek,

I am sorry to be late to respond.
Thanks for reporting this.

 > However, I am not able to compile htrace-hbase which has the zipkin viewer.
 > Is there any other way to see the zipkin traces?

You need to download Zipkin from https://github.com/twitter/zipkin
and run its services if you use ZipkinSpanReceiver.
Zipkin has its own UI.
The viewer in htrace-hbase is just for HBaseSpanReceiver.


(10/8/14, 11:13), abhishek1015 wrote:
Thanks Ted.

I excluded slf4j from thrift as you suggested and then I had to also add
slf4j 1.6.4 as dependency to avoid package org.slf4j missing error.

I also required to compile htrace-core and add htrace-core-3.0.4.jar, which
is not documented in http://hbase.apache.org/book/tracing.html

I am now able to start my hbase services.

However, I am not able to compile htrace-hbase which has the zipkin viewer.
Is there any other way to see the zipkin traces?

Thanks
Abhishek







--
View this message in context: 
http://apache-hbase.679495.n3.nabble.com/NoSuchMethodError-using-zipkin-with-hbase-0-98-5-tp4064831p4064853.html
Sent from the HBase User mailing list archive at Nabble.com.



Reply via email to