Starting elasticsearch: Exception in thread "main" java.lang.IllegalStateException: Could not load p
来源:互联网 发布:java hadoop开发实例 编辑:程序博客网 时间:2024/05/02 08:55
启动elasticsearch的时候报了如下错误:
Starting elasticsearch: Exception in thread "main" java.lang.IllegalStateException: Could not load plugin descriptor for existing plugin [ik.tgz]. Was the plugin built before 2.0?
Likely root cause: java.nio.file.FileSystemException: /data/esplugins/ik.tgz/plugin-descriptor.properties: Not a directory
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.newByteChannel(Files.java:407)
at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
at java.nio.file.Files.newInputStream(Files.java:152)
at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:87)
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:378)
at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:128)
at org.elasticsearch.node.Node.<init>(Node.java:158)
at org.elasticsearch.node.Node.<init>(Node.java:140)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Refer to the log for complete error details.
[FAILED]
解决方法:
从报错信息第二行可以看出data/esplugins/ik.tgz/plugin-descriptor.properties: Not a directory,说明没找到这个文件。cd到data/esplugins/下,看到有两个文件,一个是之前下载的ik.tgz,一个是解压完的ik,系统将ik.tgz当成了需要的文件了,但这并不是一个目录,所以把ik.tgz删掉,让系统能够找到ik就可以了。
- Starting elasticsearch: Exception in thread "main" java.lang.IllegalStateException: Could not load p
- elasticsearch 报出 Exception in thread "main" java.lang.NoSuchFieldError: LUCENE_3_6
- Android错误:项目导入时,出现Exception in thread "main" java.lang.NoClassDef、Could not write file 。。。.classpath
- Exception in thread "main" java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver availab
- Httpclient中 Exception in thread "main" java.lang.IllegalStateException: Response content has been al
- Exception in thread "main" java.lang.IllegalStateException: Cannot get a text value from a numeric c
- Exception in thread "main" java.lang.IllegalStateException: Logback configuration error detected: E
- Exception in thread "main" java.lang.NoClassDefFoundError
- Exception in thread "main" java.lang.NoClassDefFoundError
- Exception in thread "main" java.lang.NoClassDefFoundError
- Exception in thread "main" java.lang.NoClassDefFoundError
- Exception in thread "main" java.lang.NoClassDefFoundError:
- Exception in thread "main" java.lang.NoClassDefFoundError
- Exception in thread "main" java.lang.NoClassDefFoundError
- Exception in thread "main" java.lang.NoClassDefFoundError
- Exception in thread "main" java.lang.NoClassDefFoundError
- Exception in Thread main java.lang.NoClassDefFoundError
- Exception in thread "main" java.lang.NoClassDefFoundError
- linux生产者消费者(1)
- 如何接触Linux
- 使用sizeof计算类的大小
- JDBC简单介绍
- Eclipse Java注释模板设置详解/版权声明及编码风格的注释
- Starting elasticsearch: Exception in thread "main" java.lang.IllegalStateException: Could not load p
- innobackupex 升级mysql5.5到mysql5.7对系统性能不支持问题
- 提高项目6.3-判断一个数是否是素数
- supercell被腾讯收购之感
- Appium移动自动化测试(四)——Appium中文文档列表
- 为什么我们要使用html5
- PAT L2-002
- [源码]OKHttp及Http协议笔记
- 算法导论第六章堆排序6-2