[ 
https://issues.apache.org/jira/browse/HBASE-28759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Longping Jie updated HBASE-28759:
---------------------------------
    Description: 
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in 
[jar:file:/data/app/hadoop-3.3.6/share/hadoop/common/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in 
[jar:file:/data/app/hbase-2.5.10/lib/client-facing-thirdparty/log4j-slf4j-impl-2.17.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See [http://www.slf4j.org/codes.html#multiple_bindings] for an 
explanation.
 
The above log dependency conflict causes the regionserver to be unable to 
output logs after it is started.

By default, in the hbase script file in the bin directory, the value of 
HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP is true, which will append the hadoop lib 
to the classpath. In this way, after the hbase process is started, the hadoop 
jar will be loaded, which may cause dependency conflicts.

Is it possible to set the variable HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP in the 
hbase-env.sh file, set the default value to true, and only modify this value to 
false when necessary?

  was:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in 
[jar:file:/data/app/hadoop-3.3.6/share/hadoop/common/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in 
[jar:file:/data/app/hbase-2.5.10/lib/client-facing-thirdparty/log4j-slf4j-impl-2.17.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
 
The above log dependency conflict causes the regionserver to be unable to 
output logs after it is started.


> SLF4J: Class path contains multiple SLF4J bindings.
> ---------------------------------------------------
>
>                 Key: HBASE-28759
>                 URL: https://issues.apache.org/jira/browse/HBASE-28759
>             Project: HBase
>          Issue Type: Bug
>          Components: logging
>    Affects Versions: 2.6.0, 2.5.10
>         Environment: hbase2.5.x 2.6.x
> hadoop3.3.6
>            Reporter: Longping Jie
>            Priority: Major
>
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in 
> [jar:file:/data/app/hadoop-3.3.6/share/hadoop/common/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in 
> [jar:file:/data/app/hbase-2.5.10/lib/client-facing-thirdparty/log4j-slf4j-impl-2.17.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See [http://www.slf4j.org/codes.html#multiple_bindings] for an 
> explanation.
>  
> The above log dependency conflict causes the regionserver to be unable to 
> output logs after it is started.
> By default, in the hbase script file in the bin directory, the value of 
> HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP is true, which will append the hadoop 
> lib to the classpath. In this way, after the hbase process is started, the 
> hadoop jar will be loaded, which may cause dependency conflicts.
> Is it possible to set the variable HBASE_DISABLE_HADOOP_CLASSPATH_LOOKUP in 
> the hbase-env.sh file, set the default value to true, and only modify this 
> value to false when necessary?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to