ES启动报错

在尝试启动Elasticsearch时遇到了两个问题。首先,Docker报错提示创建的目录名称包含无效字符,需要避免使用空格并使用绝对路径。其次,OpenJDK警告关于UseConcMarkSweepGC选项已被弃用,但这并非导致启动失败的原因。真正的问题在于`elasticsearch.yml`配置文件中,`http.host:0.0.0.0`配置项的0和冒号之间缺少了一个空格。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

报错:

1:docker: Error response from daemon: create ?/mydata/elasticsearch/data: "\u00a0/mydata/elasticsearch/data" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.
See 'docker run --help'.

是因为在创建的目录的时候加了空格!

 

2:

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020-10-18 04:26:41,837 main ERROR No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2
Exception in thread "main" S

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值