当前位置:   article > 正文

java.nio.file.FileSystemException: /plugins/.DS_Store/plugin-descriptor.properties: Not a directory

plugin-descriptor.properties: not a directory

1. Elasticsearch 安装分词器后启动出现问题:
Caused by: java.nio.file.FileSystemException:  elasticsearch/plugins/.DS_Store/plugin-descriptor.properties: Not a directory
  • 1
2. 详细问题:
localhost:elasticsearch-5.6.1 zhangjingyi$ bin/elasticsearch
[2020-08-09T10:11:03,425][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: org.elasticsearch.bootstrap.BootstrapException: java.nio.file.FileSystemException: elasticsearch-5.6.1/plugins/.DS_Store/plugin-descriptor.properties: Not a directory
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-5.6.1.jar:5.6.1]
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:123) ~[elasticsearch-5.6.1.jar:5.6.1]
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67) ~[elasticsearch-5.6.1.jar:5.6.1]
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:134) ~[elasticsearch-5.6.1.jar:5.6.1]
	at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-5.6.1.jar:5.6.1]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[elasticsearch-5.6.1.jar:5.6.1]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[elasticsearch-5.6.1.jar:5.6.1]
Caused by: org.elasticsearch.bootstrap.BootstrapException: java.nio.file.FileSystemException: elasticsearch-5.6.1/plugins/.DS_Store/plugin-descriptor.properties: Not a directory
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:170) ~[elasticsearch-5.6.1.jar:5.6.1]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) ~[elasticsearch-5.6.1.jar:5.6.1]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) ~[elasticsearch-5.6.1.jar:5.6.1]
	... 6 more
Caused by: java.nio.file.FileSystemException: /TOOLS/elasticsearch-5.6.1/plugins/.DS_Store/plugin-descriptor.properties: Not a directory
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91) ~[?:1.8.0_191]
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_191]
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_191]
	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) ~[?:1.8.0_191]
	at java.nio.file.Files.newByteChannel(Files.java:361) ~[?:1.8.0_191]
	at java.nio.file.Files.newByteChannel(Files.java:407) ~[?:1.8.0_191]
	at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384) ~[?:1.8.0_191]
	at java.nio.file.Files.newInputStream(Files.java:152) ~[?:1.8.0_191]
	at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:114) ~[elasticsearch-5.6.1.jar:5.6.1]
	at org.elasticsearch.bootstrap.Spawner.spawnNativePluginControllers(Spawner.java:76) ~[elasticsearch-5.6.1.jar:5.6.1]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:168) ~[elasticsearch-5.6.1.jar:5.6.1]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:342) ~[elasticsearch-5.6.1.jar:5.6.1]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:132) ~[elasticsearch-5.6.1.jar:5.6.1]
	... 6 more
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
3. 解决方式: 找到这个文件删除(ls -a 显示隐藏文件)
localhost:elasticsearch-5.6.1 zhangjingyi$ cd plugins/
localhost:plugins zhangjingyi$ ls -a
.		..		.DS_Store	analysis-ik
localhost:plugins zhangjingyi$ rm .DS_Store 
  • 1
  • 2
  • 3
  • 4
4. 重新启动es即可
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/615381
推荐阅读
相关标签
  

闽ICP备14008679号