Lỗi không chạy được ES do ghi đè không đúng
tranha31 opened this issue · 0 comments
tranha31 commented
Sau khi cài đặt theo hướng dẫn, mình gặp phải lỗi như sau. Rất mong được mọi người giúp đỡ. Mình gỡ đi cài lại vẫn bị lỗi này:
`java.lang.Error: Unresolved compilation problems:
The method getTokenFilters() of type AnalysisVietnamesePlugin must override a superclass method
Constructor references are allowed only at source level 1.8 or above
at org.elasticsearch.plugin.analysis.vi.AnalysisVietnamesePlugin.getTokenFilters(AnalysisVietnamesePlugin.java:45) ~[?:?]
at org.elasticsearch.common.NamedRegistry.extractAndRegister(NamedRegistry.java:43) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.indices.analysis.AnalysisModule.setupTokenFilters(AnalysisModule.java:139) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.indices.analysis.AnalysisModule.<init>(AnalysisModule.java:72) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.node.Node.<init>(Node.java:442) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.node.Node.<init>(Node.java:288) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:219) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:219) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:399) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:167) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:158) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:114) ~[elasticsearch-cli-7.15.2.jar:7.15.2]
at org.elasticsearch.cli.Command.main(Command.java:79) ~[elasticsearch-cli-7.15.2.jar:7.15.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:123) ~[elasticsearch-7.15.2.jar:7.15.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) ~[elasticsearch-7.15.2.jar:7.15.2]`