java插件无法安装路径_ElasticSearch插件:“无法解析配置路径”错误

我在debian jessie上安装了elasticsearch 1.7.3。它使用默认配置文件,并且可以正常工作。但是当我打电话给sudo

/usr/share/elasticsearch/bin/plugin它返回一个错误:

Exception in thread "main" org.elasticsearch.env.FailedToResolveConfigException: Failed to resolve config path ["/usr/share/elasticsearch/config/elasticsearch.yml"], tried file path ["/usr/share/elasticsearch/config/elasticsearch.yml"], path file ["/usr/share/elasticsearch/config"/"/usr/share/elasticsearch/config/elasticsearch.yml"], and classpath

at org.elasticsearch.env.Environment.resolveConfig(Environment.java:291)

at org.elasticsearch.node.internal.InternalSettingsPreparer.prepareSettings(InternalSettingsPreparer.java:95)

at org.elasticsearch.plugins.PluginManager.main(PluginManager.java:396)

文件/usr/share/elasticsearch/config/elasticsearch.yml存在,我可以在nano中打开他。

有/ etc / default / elasticsearch文件:

# Start Elasticsearch automatically

START_DAEMON=true

# Run Elasticsearch as this user ID and group ID

#ES_USER=elasticsearch

#ES_GROUP=elasticsearch

# Heap Size (defaults to 256m min, 1g max)

#ES_HEAP_SIZE=2g

# Heap new generation

#ES_HEAP_NEWSIZE=

# max direct memory

#ES_DIRECT_SIZE=

# Maximum number of open files, defaults to 65535.

#MAX_OPEN_FILES=65535

# Maximum locked memory size. Set to "unlimited" if you use the

# bootstrap.mlockall option in elasticsearch.yml. You must also set

# ES_HEAP_SIZE.

#MAX_LOCKED_MEMORY=unlimited

# Maximum number of VMA (Virtual Memory Areas) a process can own

#MAX_MAP_COUNT=262144

# Elasticsearch log directory

#LOG_DIR=/var/log/elasticsearch

# Elasticsearch data directory

#DATA_DIR=/var/lib/elasticsearch

# Elasticsearch work directory

#WORK_DIR=/tmp/elasticsearch

# Elasticsearch configuration directory

#CONF_DIR=/etc/elasticsearch

# Elasticsearch configuration file (elasticsearch.yml)

#CONF_FILE=/etc/elasticsearch/elasticsearch.yml

# Additional Java OPTS

#ES_JAVA_OPTS=

# Configure restart on package upgrade (true, every other setting will lead to not restarting)

#RESTART_ON_UPGRADE=true

/var/log/elasticsearch/elasticsearch.log和/var/log/elasticsearch/elasticsearch.error文件中没有记录。

有人知道为什么会失败吗?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值