ERROR: Missing logging config file at /usr/share/elasticsearch/config/log4j2.propertie
时间: 2023-10-30 22:06:32 浏览: 526
这个错误通常是由于 Elasticsearch 日志配置文件缺失或路径不正确导致的。你可以检查一下 `/usr/share/elasticsearch/config/` 目录下是否存在 `log4j2.properties` 文件,如果不存在,可以从 Elasticsearch 官网下载一个适合你当前版本的文件并放置到该目录下。如果该文件已经存在,你可以检查一下文件路径是否正确,或者尝试重启 Elasticsearch 服务。
相关问题
127.0.0.1: running zookeeper, logging to /usr/local/hbase/bin/../logs/hbase-atguigu-zookeeper-node11.out 127.0.0.1: SLF4J: Class path contains multiple SLF4J bindings. 127.0.0.1: SLF4J: Found binding in [jar:file:/opt/module/hadoop-3.1.3/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] 127.0.0.1: SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/client-facing-thirdparty/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.class] 127.0.0.1: SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 127.0.0.1: SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] running master, logging to /usr/local/hbase/bin/../logs/hbase-atguigu-master-node11.out SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/module/hadoop-3.1.3/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/local/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. : running regionserver, logging to /usr/local/hbase/bin/../logs/hbase-atguigu-regionserver-node11.out怎么办
这段日志提示了多个 SLF4J 绑定的问题,可能会导致日志输出异常。建议按照以下步骤进行处理:
1. 找到项目中引入的 SLF4J 相关的依赖,检查是否存在多个版本的 SLF4J 绑定。
2. 如果存在多个版本的绑定,考虑将其中一个版本的依赖排除掉,或者使用 Maven 或 Gradle 等构建工具的 Dependency Management 功能,将所有依赖的 SLF4J 版本统一。
3. 如果无法解决问题,可以参考 SLF4J 的官方文档,进行进一步的调试和处理。
[atguigu@node11 hbase]$ ./bin/start-hbase.sh SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/module/hadoop-3.1.3/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/local/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] SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/module/hadoop-3.1.3/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/local/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] zk2: ssh: Could not resolve hostname zk2: Name or service not known zk3: ssh: Could not resolve hostname zk3: Name or service not known zk1: ssh: Could not resolve hostname zk1: Name or service not known running master, logging to /usr/local/hbase/bin/../logs/hbase-atguigu-master-node11.out : running regionserver, logging to /usr/local/hbase/bin/../logs/hbase-atguigu-regionserver-node11.out有问题吗
根据输出信息,看起来您的HBase集群无法解析ZooKeeper的主机名。请确保您在HBase配置文件中正确设置了ZooKeeper的主机名和端口号,并且所有节点都可以通过主机名或IP地址解析并访问ZooKeeper。您可以尝试使用`ping`命令测试节点之间的网络连接性。另外,多个SLF4J绑定可能会导致日志记录问题,但通常不会影响HBase的正常运行。
阅读全文