You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by abhishek1015 <ab...@gmail.com> on 2014/10/07 21:23:21 UTC

NoSuchMethodError using zipkin with hbase 0.98.5

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;Ljava/lang/Object;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
        at
org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:346)
        at
org.apache.zookeeper.server.persistence.FileTxnSnapLog.save(FileTxnSnapLog.java:240)
        at
org.apache.zookeeper.server.ZooKeeperServer.takeSnapshot(ZooKeeperServer.java:292)
        at
org.apache.zookeeper.server.quorum.Learner.syncWithLeader(Learner.java:437)
        at
org.apache.zookeeper.server.quorum.Follower.followLeader(Follower.java:82)
        at
org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:786)

This is most likely the version conflict.

I see slf4j-log4j12-1.6.4.jar jar in my hbase/lib/ directory and zipkin jar
also have some classes of slf4j package of 1.5.8 version.

Do any one know how to resolve such  conflict? 

Thanks
Abhishek



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

Re: NoSuchMethodError using zipkin with hbase 0.98.5

Posted by abhishek1015 <ab...@gmail.com>.
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/main/java/org/htrace/impl/HBaseSpanReceiver.java:[341,12]
error: method configure in class HBaseSpanReceiver cannot be applied to
given types;

On further investigation, I see that HBaseSpanReceiver.config() method
expects a parameter of type org.htrace.HTraceConfiguration, while the object
of typeorg.apache.hadoop.hbase.trace.HBaseHTraceConfiguration which extends 
org.cloudera.htrace.HTraceConfiguration.

Thanks
Abhishek 




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

Re: NoSuchMethodError using zipkin with hbase 0.98.5

Posted by Ted Yu <yu...@gmail.com>.
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
License. -->

   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <hbase.version>2.0.0-SNAPSHOT</hbase.version>
+    <hbase.version>0.98.6.1-hadoop2</hbase.version>
     <!-- <hbase.version>0.99.0-SNAPSHOT</hbase.version> -->
     <hadoop.version>2.4.0</hadoop.version>
     <!-- <hadoop.version>3.0.0-SNAPSHOT</hadoop.version> -->

I got:

$ ls -l htrace-hbase/target/htrace-hbase-3.0.4.jar
-rw-r--r--  1 tyu  staff  126760 Oct  8 19:54
htrace-hbase/target/htrace-hbase-3.0.4.jar

Cheers

On Wed, Oct 8, 2014 at 7:44 PM, abhishek1015 <ab...@gmail.com> wrote:

> 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:maven-compiler-plugin:2.5.1:compile
> (default-compile) on project htrace-hbase: Compilation failure: Compilation
> failure:
> [ERROR]
>
> /home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/viewer/HBaseSpanViewerServer.java:[28,29]
> error: cannot find symbol
> [ERROR] symbol:   class HttpServer2
> [ERROR] location: package org.apache.hadoop.http
> [ERROR]
>
> /home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/viewer/HBaseSpanViewerServer.java:[43,10]
> error: cannot find symbol
> [ERROR] symbol:   class HttpServer2
> [ERROR] location: class HBaseSpanViewerServer
> [ERROR]
>
> /home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/impl/HBaseSpanReceiver.java:[341,12]
> error: method configure in class HBaseSpanReceiver cannot be applied to gi
> ven types;
> [ERROR] required: HTraceConfiguration
> [ERROR] found: HBaseHTraceConfiguration
> ERROR] reason: actual argument HBaseHTraceConfiguration cannot be converted
> to HTraceConfiguration by method invocation conversion
> [7/48439]
> [ERROR]
>
> /home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/viewer/HBaseSpanViewerSpansServlet.java:[50,32]
> error: cannot find symbol
> [ERROR] symbol:   method getDecodedPath(HttpServletRequest,String)
> [ERROR] location: class ServletUtil
> [ERROR]
>
> /home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/viewer/HBaseSpanViewerServer.java:[57,53]
> error: cannot find symbol
> [ERROR] symbol:   method getHostPortString(InetSocketAddress)
> [ERROR] location: class NetUtils
> [ERROR]
>
> /home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/viewer/HBaseSpanViewerServer.java:[58,15]
> error: package HttpServer2 does not exist
> [ERROR]
>
> /home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/viewer/HBaseSpanViewerServer.java:[58,49]
> error: package HttpServer2 does not exist
> [ERROR]
>
> /home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/viewer/HBaseSpanViewerServer.java:[63,45]
> error: cannot find symbol
> [ERROR] -> [Help 1]
>
>
> For some reason, I do not see any "reply all" option. I see only "reply"
> and
> "reply to author" option. I will look for "reply all" option in future
> posts.
>
> Thanks
> Abhishek
>
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/NoSuchMethodError-using-zipkin-with-hbase-0-98-5-tp4064831p4064890.html
> Sent from the HBase User mailing list archive at Nabble.com.
>

Re: NoSuchMethodError using zipkin with hbase 0.98.5

Posted by abhishek1015 <ab...@gmail.com>.
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:maven-compiler-plugin:2.5.1:compile
(default-compile) on project htrace-hbase: Compilation failure: Compilation
failure:
[ERROR]
/home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/viewer/HBaseSpanViewerServer.java:[28,29]
error: cannot find symbol
[ERROR] symbol:   class HttpServer2
[ERROR] location: package org.apache.hadoop.http
[ERROR]
/home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/viewer/HBaseSpanViewerServer.java:[43,10]
error: cannot find symbol
[ERROR] symbol:   class HttpServer2
[ERROR] location: class HBaseSpanViewerServer
[ERROR]
/home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/impl/HBaseSpanReceiver.java:[341,12]
error: method configure in class HBaseSpanReceiver cannot be applied to gi
ven types;
[ERROR] required: HTraceConfiguration
[ERROR] found: HBaseHTraceConfiguration
ERROR] reason: actual argument HBaseHTraceConfiguration cannot be converted
to HTraceConfiguration by method invocation conversion                                        
[7/48439]
[ERROR]
/home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/viewer/HBaseSpanViewerSpansServlet.java:[50,32]
error: cannot find symbol
[ERROR] symbol:   method getDecodedPath(HttpServletRequest,String)
[ERROR] location: class ServletUtil
[ERROR]
/home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/viewer/HBaseSpanViewerServer.java:[57,53]
error: cannot find symbol
[ERROR] symbol:   method getHostPortString(InetSocketAddress)
[ERROR] location: class NetUtils
[ERROR]
/home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/viewer/HBaseSpanViewerServer.java:[58,15]
error: package HttpServer2 does not exist
[ERROR]
/home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/viewer/HBaseSpanViewerServer.java:[58,49]
error: package HttpServer2 does not exist
[ERROR]
/home/hadoop/git/htrace/htrace-hbase/src/main/java/org/htrace/viewer/HBaseSpanViewerServer.java:[63,45]
error: cannot find symbol
[ERROR] -> [Help 1]


For some reason, I do not see any "reply all" option. I see only "reply" and
"reply to author" option. I will look for "reply all" option in future
posts.

Thanks
Abhishek




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

Re: NoSuchMethodError using zipkin with hbase 0.98.5

Posted by Ted Yu <yu...@gmail.com>.
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 :

    <hbase.version>2.0.0-SNAPSHOT</hbase.version>
Build hbase 0.98.5 locally by using its source tar ball.

In the future, please use Reply All.

Cheers

On Wed, Oct 8, 2014 at 2:40 PM, abhishek1015 <ab...@gmail.com> wrote:

> 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 under htrace-hbase. I was
> able to create jar. However, I am able not able to start hbase after
> placing
> placing jar in hbase/lib. I see following error:
>
> I have also added this property in hbase-site.xml as per the instruction in
> htrace-hbase readme.
>
> <property>
>     <name>hbase.trace.spanreceiver.classes</name>
>     <value>org.htrace.impl.HBaseSpanReceiver</value>
>  </property>
>
> java.lang.VerifyError: Bad type on operand stack
> Exception Details:
>   Location:
>     org/htrace/impl/HBaseSpanReceiver.main([Ljava/lang/String;)V @19:
> invokevirtual
>   Reason:
>     Type 'org/apache/hadoop/hbase/trace/HBaseHTraceConfiguration' (current
> frame, stack[1]) is not assignable to 'org/htrace/HTraceConfiguration'
>   Current Frame:
>     bci: @19
>     flags: { }
> locals: { '[Ljava/lang/String;', 'org/htrace/impl/HBaseSpanReceiver' }
>     stack: { 'org/htrace/impl/HBaseSpanReceiver',
> 'org/apache/hadoop/hbase/trace/HBaseHTraceConfiguration' }
>   Bytecode:
>     0000000: bb00 4959 b700 4a4c 2bbb 004b 59b8 0016
>     0000010: b700 4cb6 004d 2bb8 004e 124f b200 50b8
>     0000020: 0051 4d14 0052 b800 542c b600 55b9 0056
>     0000030: 0100 4212 57b8 0058 3a05 1400 52b8 0054
>     0000040: 1259 2cb6 0055 b800 5a3a 0614 0052 b800
>     0000050: 5412 5bb8 0058 3a07 125c b800 5d14 0052
>     0000060: b800 5412 5eb8 005d 1907 b600 5f14 0052
>     0000070: b800 5419 06b6 005f 1400 52b8 0054 1905
>     00000a0: 3eb6 0064 b1
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:190)
>         at
>
> org.apache.hadoop.hbase.trace.SpanReceiverHost.loadSpanReceivers(SpanReceiverHost.java:87)
>         at
>
> org.apache.hadoop.hbase.trace.SpanReceiverHost.getInstance(SpanReceiverHost.java:59)
>         at
>
> org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:820)
>         at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:603)
>         at java.lang.Thread.run(Thread.java:745)
>
> Thanks
> Abhishek
>
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/NoSuchMethodError-using-zipkin-with-hbase-0-98-5-tp4064831p4064880.html
> Sent from the HBase User mailing list archive at Nabble.com.
>

Re: NoSuchMethodError using zipkin with hbase 0.98.5

Posted by abhishek1015 <ab...@gmail.com>.
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 under htrace-hbase. I was
able to create jar. However, I am able not able to start hbase after placing
placing jar in hbase/lib. I see following error:

I have also added this property in hbase-site.xml as per the instruction in
htrace-hbase readme.

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

java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    org/htrace/impl/HBaseSpanReceiver.main([Ljava/lang/String;)V @19:
invokevirtual
  Reason:
    Type 'org/apache/hadoop/hbase/trace/HBaseHTraceConfiguration' (current
frame, stack[1]) is not assignable to 'org/htrace/HTraceConfiguration'
  Current Frame:
    bci: @19
    flags: { }
locals: { '[Ljava/lang/String;', 'org/htrace/impl/HBaseSpanReceiver' }
    stack: { 'org/htrace/impl/HBaseSpanReceiver',
'org/apache/hadoop/hbase/trace/HBaseHTraceConfiguration' }
  Bytecode:
    0000000: bb00 4959 b700 4a4c 2bbb 004b 59b8 0016
    0000010: b700 4cb6 004d 2bb8 004e 124f b200 50b8
    0000020: 0051 4d14 0052 b800 542c b600 55b9 0056
    0000030: 0100 4212 57b8 0058 3a05 1400 52b8 0054
    0000040: 1259 2cb6 0055 b800 5a3a 0614 0052 b800
    0000050: 5412 5bb8 0058 3a07 125c b800 5d14 0052
    0000060: b800 5412 5eb8 005d 1907 b600 5f14 0052
    0000070: b800 5419 06b6 005f 1400 52b8 0054 1905
    00000a0: 3eb6 0064 b1
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:190)
        at
org.apache.hadoop.hbase.trace.SpanReceiverHost.loadSpanReceivers(SpanReceiverHost.java:87)
        at
org.apache.hadoop.hbase.trace.SpanReceiverHost.getInstance(SpanReceiverHost.java:59)
        at
org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:820)
        at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:603)
        at java.lang.Thread.run(Thread.java:745)

Thanks
Abhishek




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

Re: NoSuchMethodError using zipkin with hbase 0.98.5

Posted by Ted Yu <yu...@gmail.com>.
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-javadoc.jar htrace-hbase-3.0.4.jar rat.txt
generated-sources htrace-hbase-3.0.4-sources.jar javadoc-bundle-options
test-classes

Cheers

On Tue, Oct 7, 2014 at 7:13 PM, abhishek1015 <ab...@gmail.com> 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.
>

Re: NoSuchMethodError using zipkin with hbase 0.98.5

Posted by abhishek1015 <ab...@gmail.com>.
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 entry of
23min 44sec request. On drilling down, I see single get request, but
multiple small scan requests. 

Can anyone tell me how to get nice hierarchical tree structure like shown in
zipkin page: https://twitter.github.io/zipkin/index.html 

 
<http://apache-hbase.679495.n3.nabble.com/file/n4065345/Screen_Shot_2014-10-25_at_4.png> 

Abhishek



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

Re: NoSuchMethodError using zipkin with hbase 0.98.5

Posted by Masatake Iwasaki <iw...@oss.nttdata.co.jp>.
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.
>>
>


Re: NoSuchMethodError using zipkin with hbase 0.98.5

Posted by Masatake Iwasaki <iw...@oss.nttdata.co.jp>.
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.
>


Re: NoSuchMethodError using zipkin with hbase 0.98.5

Posted by abhishek1015 <ab...@gmail.com>.
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.

Re: NoSuchMethodError using zipkin with hbase 0.98.5

Posted by Ted Yu <yu...@gmail.com>.
Hit Send too soon.

>From htrace-zipkin/pom.xml :

    <dependency>
      <groupId>org.apache.thrift</groupId>
      <artifactId>libthrift</artifactId>
      <version>0.9.0</version>
    </dependency>

Exclusion should be added in above dependency.

Cheers

On Tue, Oct 7, 2014 at 3:19 PM, Ted Yu <yu...@gmail.com> wrote:

> 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 is skipped.
>
> Cheers
>
> On Tue, Oct 7, 2014 at 1:31 PM, Ted Yu <yu...@gmail.com> wrote:
>
>> Adding Masatake who has intimate knowledge on this subject.
>>
>> On Tue, Oct 7, 2014 at 12:37 PM, abhishek1015 <ab...@gmail.com>
>> wrote:
>>
>>> 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.hadoop.hbase.regionserver.HRegionServerCommandLine.start(HRegionServerCommandLine.java:61)
>>>         at
>>>
>>> org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.run(HRegionServerCommandLine.java:85)
>>>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>>>         at
>>>
>>> org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
>>>         at
>>>
>>> org.apache.hadoop.hbase.regionserver.HRegionServer.main(HRegionServer.java:2422)
>>> Caused by: java.lang.reflect.InvocationTargetException
>>>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>> Method)
>>>         at
>>>
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>>  at
>>>
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>>         at
>>>
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>         at
>>> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>>>         at
>>>
>>> org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2405)
>>>         ... 5 more
>>> Caused by: java.lang.NoSuchMethodError:
>>>
>>> org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
>>>         at
>>> org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:346)
>>>         at org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67)
>>>         at org.mortbay.log.Log.<clinit>(Log.java:79)
>>>         at org.mortbay.component.Container.add(Container.java:200)
>>>         at org.mortbay.component.Container.update(Container.java:164)
>>>         at org.mortbay.component.Container.update(Container.java:106)
>>>         at org.mortbay.jetty.Server.setConnectors(Server.java:160)
>>>         at org.mortbay.jetty.Server.addConnector(Server.java:134)
>>>         at org.apache.hadoop.http.HttpServer.<init>(HttpServer.java:161)
>>>         at org.apache.hadoop.http.HttpServer.<init>(HttpServer.java:119)
>>>         at
>>> org.apache.hadoop.hbase.util.InfoServer.<init>(InfoServer.java:59)
>>>         at
>>>
>>> org.apache.hadoop.hbase.regionserver.HRegionServer.putUpWebUI(HRegionServer.java:1684)
>>>         at
>>>
>>> org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:631)
>>>
>>> Thanks
>>> Abhishek
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://apache-hbase.679495.n3.nabble.com/NoSuchMethodError-using-zipkin-with-hbase-0-98-5-tp4064831p4064832.html
>>> Sent from the HBase User mailing list archive at Nabble.com.
>>>
>>
>>
>

Re: NoSuchMethodError using zipkin with hbase 0.98.5

Posted by Ted Yu <yu...@gmail.com>.
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 is skipped.

Cheers

On Tue, Oct 7, 2014 at 1:31 PM, Ted Yu <yu...@gmail.com> wrote:

> Adding Masatake who has intimate knowledge on this subject.
>
> On Tue, Oct 7, 2014 at 12:37 PM, abhishek1015 <ab...@gmail.com>
> wrote:
>
>> 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.hadoop.hbase.regionserver.HRegionServerCommandLine.start(HRegionServerCommandLine.java:61)
>>         at
>>
>> org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.run(HRegionServerCommandLine.java:85)
>>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>>         at
>>
>> org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
>>         at
>>
>> org.apache.hadoop.hbase.regionserver.HRegionServer.main(HRegionServer.java:2422)
>> Caused by: java.lang.reflect.InvocationTargetException
>>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>>         at
>>
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>  at
>>
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>         at
>>
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>>         at
>>
>> org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2405)
>>         ... 5 more
>> Caused by: java.lang.NoSuchMethodError:
>>
>> org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
>>         at
>> org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:346)
>>         at org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67)
>>         at org.mortbay.log.Log.<clinit>(Log.java:79)
>>         at org.mortbay.component.Container.add(Container.java:200)
>>         at org.mortbay.component.Container.update(Container.java:164)
>>         at org.mortbay.component.Container.update(Container.java:106)
>>         at org.mortbay.jetty.Server.setConnectors(Server.java:160)
>>         at org.mortbay.jetty.Server.addConnector(Server.java:134)
>>         at org.apache.hadoop.http.HttpServer.<init>(HttpServer.java:161)
>>         at org.apache.hadoop.http.HttpServer.<init>(HttpServer.java:119)
>>         at
>> org.apache.hadoop.hbase.util.InfoServer.<init>(InfoServer.java:59)
>>         at
>>
>> org.apache.hadoop.hbase.regionserver.HRegionServer.putUpWebUI(HRegionServer.java:1684)
>>         at
>>
>> org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:631)
>>
>> Thanks
>> Abhishek
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-hbase.679495.n3.nabble.com/NoSuchMethodError-using-zipkin-with-hbase-0-98-5-tp4064831p4064832.html
>> Sent from the HBase User mailing list archive at Nabble.com.
>>
>
>

Re: NoSuchMethodError using zipkin with hbase 0.98.5

Posted by Ted Yu <yu...@gmail.com>.
Adding Masatake who has intimate knowledge on this subject.

On Tue, Oct 7, 2014 at 12:37 PM, abhishek1015 <ab...@gmail.com>
wrote:

> 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.hadoop.hbase.regionserver.HRegionServerCommandLine.start(HRegionServerCommandLine.java:61)
>         at
>
> org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.run(HRegionServerCommandLine.java:85)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>         at
>
> org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
>         at
>
> org.apache.hadoop.hbase.regionserver.HRegionServer.main(HRegionServer.java:2422)
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>  at
>
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>         at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>         at
>
> org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2405)
>         ... 5 more
> Caused by: java.lang.NoSuchMethodError:
>
> org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
>         at
> org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:346)
>         at org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67)
>         at org.mortbay.log.Log.<clinit>(Log.java:79)
>         at org.mortbay.component.Container.add(Container.java:200)
>         at org.mortbay.component.Container.update(Container.java:164)
>         at org.mortbay.component.Container.update(Container.java:106)
>         at org.mortbay.jetty.Server.setConnectors(Server.java:160)
>         at org.mortbay.jetty.Server.addConnector(Server.java:134)
>         at org.apache.hadoop.http.HttpServer.<init>(HttpServer.java:161)
>         at org.apache.hadoop.http.HttpServer.<init>(HttpServer.java:119)
>         at
> org.apache.hadoop.hbase.util.InfoServer.<init>(InfoServer.java:59)
>         at
>
> org.apache.hadoop.hbase.regionserver.HRegionServer.putUpWebUI(HRegionServer.java:1684)
>         at
>
> org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:631)
>
> Thanks
> Abhishek
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/NoSuchMethodError-using-zipkin-with-hbase-0-98-5-tp4064831p4064832.html
> Sent from the HBase User mailing list archive at Nabble.com.
>

Re: NoSuchMethodError using zipkin with hbase 0.98.5

Posted by abhishek1015 <ab...@gmail.com>.
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.hadoop.hbase.regionserver.HRegionServerCommandLine.start(HRegionServerCommandLine.java:61)
        at
org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.run(HRegionServerCommandLine.java:85)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at
org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
        at
org.apache.hadoop.hbase.regionserver.HRegionServer.main(HRegionServer.java:2422)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at
org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2405)
        ... 5 more
Caused by: java.lang.NoSuchMethodError:
org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
        at
org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:346)
        at org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67)
        at org.mortbay.log.Log.<clinit>(Log.java:79)
        at org.mortbay.component.Container.add(Container.java:200)
        at org.mortbay.component.Container.update(Container.java:164)
        at org.mortbay.component.Container.update(Container.java:106)
        at org.mortbay.jetty.Server.setConnectors(Server.java:160)
        at org.mortbay.jetty.Server.addConnector(Server.java:134)
        at org.apache.hadoop.http.HttpServer.<init>(HttpServer.java:161)
        at org.apache.hadoop.http.HttpServer.<init>(HttpServer.java:119)
        at
org.apache.hadoop.hbase.util.InfoServer.<init>(InfoServer.java:59)
        at
org.apache.hadoop.hbase.regionserver.HRegionServer.putUpWebUI(HRegionServer.java:1684)
        at
org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:631)

Thanks
Abhishek



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