Re: NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-25 Thread abhishek1015
Thanks for detailed instruction. I am able to see traces in zipkin ui. However, I am not sure if I am interpreting the results correctly. I run a get query and a scan query using hbase shell which run 0.02 and 40 sec respectively. As can be seen in the images attached, zipkin shows the repeated e

Re: NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-11 Thread Masatake Iwasaki
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):: hbase.trace.span

Re: NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-11 Thread Masatake Iwasaki
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 y

Re: NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-11 Thread abhishek1015
Thanks for letting me know that it compiles for 0.98.6-hadoop2. However, It does not compile for 0.98.5-hadoop1 version. First of all, HttpServer2 class is missing. While I added hadoop-common 2.4.0 which contain this class, I saw another error: [ERROR] /home/hadoop/git/htrace/htrace-hbase/src/ma

Re: NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-08 Thread Ted Yu
With the following change, I was able to build from the root of htrace workspace: diff --git a/htrace-hbase/pom.xml b/htrace-hbase/pom.xml index f9f81c9..74fb4e6 100644 --- a/htrace-hbase/pom.xml +++ b/htrace-hbase/pom.xml @@ -30,7 +30,7 @@ language governing permissions and limitations under the

Re: NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-08 Thread abhishek1015
I tried with 0.98.5 as you suggested, but htrace-hbase does not compile. Is it possible that it is developed for 2.0.0-SNAPSHOT version? My suspicion is based on the HttpServer2 missing error. I could not find this class in any 0.98.5 jar. ERROR] Failed to execute goal org.apache.maven.plugins:mav

Re: NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-08 Thread Ted Yu
Here is the cause: Type 'org/apache/hadoop/hbase/trace/HBaseHTraceConfiguration' (current frame, stack[1]) is not assignable to 'org/htrace/HTraceConfiguration' Can you try changing the dependency in htrace-hbase/pom.xml to 0.98.5 : 2.0.0-SNAPSHOT Build hbase 0.98.5 locally by using its so

Re: NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-08 Thread abhishek1015
Thanks Ted. Earlier I was not running "mvn install -DskipTests" command under hbase workspace as I am using the 0.98.5 binaries and there is no pom.xml in that directory. So, I cloned the hbase and then run the above command in hbase directory, and then run "mvn package -DskipTests" command unde

Re: NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-07 Thread Ted Yu
This is what I did: under hbase workspace, run: mvn install -DskipTests under htrace/htrace-core : mvn install -DskipTests under htrace/htrace-hbase : mvn package -DskipTests I got: ls target/ apidocs generated-test-sources htrace-hbase-3.0.4-tests.jar maven-archiver classes htrace-hbase-3.0.4

Re: NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-07 Thread abhishek1015
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

Re: NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-07 Thread Ted Yu
Hit Send too soon. >From htrace-zipkin/pom.xml : org.apache.thrift libthrift 0.9.0 Exclusion should be added in above dependency. Cheers On Tue, Oct 7, 2014 at 3:19 PM, Ted Yu wrote: > Dependency on slf4j 1.5.8 comes from: > > [INFO] +- org.htrace:htrace-core:jar:

Re: NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-07 Thread Ted Yu
Dependency on slf4j 1.5.8 comes from: [INFO] +- org.htrace:htrace-core:jar:3.0.4:provided ... [INFO] +- org.apache.thrift:libthrift:jar:0.9.0:compile [INFO] | +- org.slf4j:slf4j-api:jar:1.5.8:compile You can add an exclusion rule for htrace-core dependency so that transitive dependency on slf4j

Re: NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-07 Thread Ted Yu
Adding Masatake who has intimate knowledge on this subject. On Tue, Oct 7, 2014 at 12:37 PM, abhishek1015 wrote: > Also, I see following error in region server: > > ava.lang.RuntimeException: Failed construction of Regionserver: class > org.apache.hadoop.hbase.regionserver.HRegionServer >

Re: NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-07 Thread abhishek1015
Also, I see following error in region server: ava.lang.RuntimeException: Failed construction of Regionserver: class org.apache.hadoop.hbase.regionserver.HRegionServer at org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2407) at org.apache.

NoSuchMethodError using zipkin with hbase 0.98.5

2014-10-07 Thread abhishek1015
Hello everyone, Once I copy the htrace-zipkin jar to hbase/lib/ directory, I see following error in zookeeper log on hbase restart. I am using http://hbase.apache.org/book/tracing.html to create zipkin jar. java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;