gongwanyi
2020-03-21 13:53
D:\Elk\elasticsearch\elasticsearch-6.3.2\bin>elasticsearch
[2020-03-21T13:51:05,226][INFO ][o.e.n.Node ] [] initializing ...
[2020-03-21T13:51:05,273][INFO ][o.e.e.NodeEnvironment ] [FMNYcLt] using [1] data paths, mounts [[(D:)]], net usable_space [182.2gb], net total_space [237.9gb], types [NTFS]
[2020-03-21T13:51:05,274][INFO ][o.e.e.NodeEnvironment ] [FMNYcLt] heap size [989.8mb], compressed ordinary object pointers [true]
[2020-03-21T13:51:05,390][INFO ][o.e.n.Node ] [FMNYcLt] node name derived from node ID [FMNYcLtATjGkY2GVQUczMw]; set [node.name] to override
[2020-03-21T13:51:05,391][INFO ][o.e.n.Node ] [FMNYcLt] version[6.3.2], pid[15180], build[default/zip/053779d/2018-07-20T05:20:23.451332Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_231/25.231-b11]
[2020-03-21T13:51:05,391][INFO ][o.e.n.Node ] [FMNYcLt] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=C:\Users\Tyrion\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Delasticsearch, -Des.path.home=D:\Elk\elasticsearch\elasticsearch-6.3.2, -Des.path.conf=D:\Elk\elasticsearch\elasticsearch-6.3.2\config, -Des.distribution.flavor=default, -Des.distribution.type=zip]
[2020-03-21T13:51:05,454][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Could not load plugin descriptor for plugin directory [ik]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.3.2.jar:6.3.2]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.3.2.jar:6.3.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.3.2.jar:6.3.2]
Caused by: java.lang.IllegalStateException: Could not load plugin descriptor for plugin directory [ik]
at org.elasticsearch.plugins.PluginsService.readPluginBundle(PluginsService.java:487) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.plugins.PluginsService.findBundles(PluginsService.java:463) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:147) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.node.Node.<init>(Node.java:311) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.node.Node.<init>(Node.java:252) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.3.2.jar:6.3.2]
... 6 more
Caused by: java.nio.file.NoSuchFileException: D:\Elk\elasticsearch\elasticsearch-6.3.2\plugins\ik\plugin-descriptor.properties
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79) ~[?:?]
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) ~[?:?]
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102) ~[?:?]
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230) ~[?:?]
at java.nio.file.Files.newByteChannel(Files.java:361) ~[?:1.8.0_231]
at java.nio.file.Files.newByteChannel(Files.java:407) ~[?:1.8.0_231]
at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384) ~[?:1.8.0_231]
at java.nio.file.Files.newInputStream(Files.java:152) ~[?:1.8.0_231]
at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:163) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.plugins.PluginsService.readPluginBundle(PluginsService.java:484) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.plugins.PluginsService.findBundles(PluginsService.java:463) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:147) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.node.Node.<init>(Node.java:311) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.node.Node.<init>(Node.java:252) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.3.2.jar:6.3.2]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.3.2.jar:6.3.2]
然后如果遇到这个问题:java.security.AccessControlException: access denied ("java.io.FilePermission" "/home/soikit/Downloads/ES全家桶/elasticsearch-6.5.4/plugins/elasticsearch-analysis-ik-6.5.4/config/IKAnalyzer.cfg.xml"
直接用进去这个IKAnalyzer.cfg.xml文件的所在目录,设置权限:sudo chmod 777 IKAnalyzer.cfg.xml.
重新启动elasticsearch。不出意外的话就可以启动了
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Could not load plugin descriptor for plugin directory [ik]
你可以试着直接把下载好的
elasticsearch-analysis-ik-版本号.zip直接解压到plugin包中。
看报错应该是你仅仅只是解压了zip包中的jar包到对应到plugins的ik文件夹下 但是对应的比如plugin-descriptor.properties文件压根就找不到
老师视频中举的例子是按照ik作者的optional 1去讲的
你可以尝试按照这个工具的作者的optional 2去安装 也就是在你安装es的根目录下执行这个命令
./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.3.2/elasticsearch-analysis-ik-6.3.2.zip
注意将上面的版本号6.3.2替换成你对应的es版本号
包括评论中有小伙伴问其他的五个jar包哪来的 也可以通过optional 2的命令自动生成
P.S.: 这里还没有涉及到和springboot集成的部分 所以应该和mvn clean package暂时没有关系
但愿能对你和其他类似小伙伴有所帮助^_^
你检查你的这个是不是和下面这个问题一样!版本不一致导致的问题
Springboot + ElasticSearch 构建博客检索系统
22961 学习 · 112 问题
相似问题