Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

milvus-sdk-java 2.3.5版本后,引入了hadoop-client依赖,其中slf4j-reload4j-1.7.36.jar与logback-classic-1.2.12.jar存在冲突,有好的解决方案吗? #935

Open
yu-you opened this issue Jun 18, 2024 · 3 comments

Comments

@yu-you
Copy link

yu-you commented Jun 18, 2024

存在相同的org/slf4j/impl/StaticLoggerBinder.class
是否可以排除hadoop-client依赖?

@yu-you yu-you changed the title milvus-sdk-java 2.3.5版本后,引入了hadoop-client依赖,其中slf4j-rerload4j-1.7.36.jar与logback-classic-1.2.12.jar存在冲突,有好的解决方案吗? milvus-sdk-java 2.3.5版本后,引入了hadoop-client依赖,其中slf4j-reload4j-1.7.36.jar与logback-classic-1.2.12.jar存在冲突,有好的解决方案吗? Jun 18, 2024
@yhmo
Copy link
Contributor

yhmo commented Jun 19, 2024

是不是这样的warning?

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/yhmo/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.17.1/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/yhmo/.m2/repository/org/slf4j/slf4j-reload4j/1.7.36/slf4j-reload4j-1.7.36.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.apache.logging.slf4j.Log4jLoggerFactory]

我暂时也没有好的解决方法。hadoop引入是因为那个BulkWriter工具需要用到

@yu-you
Copy link
Author

yu-you commented Jun 19, 2024

是不是这样的warning?

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/yhmo/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.17.1/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/yhmo/.m2/repository/org/slf4j/slf4j-reload4j/1.7.36/slf4j-reload4j-1.7.36.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.apache.logging.slf4j.Log4jLoggerFactory]

我暂时也没有好的解决方法。hadoop引入是因为那个BulkWriter工具需要用到

log4j-slf4j-impl-2.17.1.jar与slf4j-reload4j-1.7.36.jar都是milvus-sdk-java引入进来的,项目的日志记录是用的logback。目前是排除了log4j-slf4j-impl和hadoop-client依赖,不清楚排除hadoop-client依赖后会影响到哪些功能?

@yhmo
Copy link
Contributor

yhmo commented Jun 20, 2024

#937
这个pr应该能解决这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants