You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Michael Stack (Jira)" <ji...@apache.org> on 2020/06/30 15:44:00 UTC

[jira] [Commented] (HBASE-23994) Add WebUI to Canary

    [ https://issues.apache.org/jira/browse/HBASE-23994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17148787#comment-17148787 ] 

Michael Stack commented on HBASE-23994:
---------------------------------------

Was getting this when trying to run Canary

{code}
$ HBASE_OPTS="-Xmx2G" hbase canary
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/lib/zookeeper/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/lib/hive/lib/log4j-slf4j-impl-2.8.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/lib/hbase/lib/client-facing-thirdparty/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2020-06-30 15:42:06,802 INFO  [main] tool.Canary: Execution thread count=16
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/shaded/org/eclipse/jetty/server/HttpConfiguration$Customizer
	at org.apache.hadoop.hbase.http.InfoServer.<init>(InfoServer.java:60)
	at org.apache.hadoop.hbase.tool.CanaryTool.putUpWebUI(CanaryTool.java:149)
	at org.apache.hadoop.hbase.tool.CanaryTool.run(CanaryTool.java:983)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
	at org.apache.hadoop.hbase.tool.CanaryTool.main(CanaryTool.java:1959)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.shaded.org.eclipse.jetty.server.HttpConfiguration$Customizer
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
	... 5 more
{code}

Doing this made it work for me though...  while trying to figure above:

{code}
$ HBASE_OPTS="-Xmx4G" hbase canary -Dhbase.canary.info.port=-1
{code}

>  Add WebUI to Canary
> --------------------
>
>                 Key: HBASE-23994
>                 URL: https://issues.apache.org/jira/browse/HBASE-23994
>             Project: HBase
>          Issue Type: Improvement
>          Components: canary, UI, Usability
>    Affects Versions: 3.0.0-alpha-1
>            Reporter: Zhuoyue Huang
>            Assignee: Zhuoyue Huang
>            Priority: Trivial
>             Fix For: 3.0.0-alpha-1, 2.3.0
>
>         Attachments: image-2020-03-16-09-12-00-595.png
>
>
> During the running of Canary, the table sniff failure information will be printed through the Log.
> {code:java}
> LOG.error("Read from {} on {}", table, server);
> {code}
>  
> I think we can use WebUI to display these failures to make it easier for us to view this information
>  
> !image-2020-03-16-09-12-00-595.png!
> As shown in the figure above, we can directly see the Table and Regionserver where the error occurred



--
This message was sent by Atlassian Jira
(v8.3.4#803005)