[2018-12-19T10:41:16,081][WARN ][o.e.b.Natives ] [unknown] unable to load JNA native support library, native methods will be disabled. java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-x86/libjnidispatch.so) not found in resource path ([file:/home/zxx/elasticsearch-6.5.3/lib/lucene-misc-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/elasticsearch-secure-sm-6.5.3.jar, file:/home/zxx/elasticsearch-6.5.3/lib/elasticsearch-6.5.3.jar, file:/home/zxx/elasticsearch-6.5.3/lib/jna-4.5.1.jar, file:/home/zxx/elasticsearch-6.5.3/lib/lucene-core-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/lucene-backward-codecs-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/joda-time-2.10.1.jar, file:/home/zxx/elasticsearch-6.5.3/lib/jts-core-1.15.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/lucene-queries-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/t-digest-3.2.jar, file:/home/zxx/elasticsearch-6.5.3/lib/lucene-spatial-extras-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/lucene-suggest-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/plugin-classloader-6.5.3.jar, file:/home/zxx/elasticsearch-6.5.3/lib/java-version-checker-6.5.3.jar, file:/home/zxx/elasticsearch-6.5.3/lib/lucene-spatial-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/jackson-dataformat-smile-2.8.11.jar, file:/home/zxx/elasticsearch-6.5.3/lib/log4j-1.2-api-2.11.1.jar, file:/home/zxx/elasticsearch-6.5.3/lib/jackson-dataformat-cbor-2.8.11.jar, file:/home/zxx/elasticsearch-6.5.3/lib/log4j-core-2.11.1.jar, file:/home/zxx/elasticsearch-6.5.3/lib/jopt-simple-5.0.2.jar, file:/home/zxx/elasticsearch-6.5.3/lib/elasticsearch-cli-6.5.3.jar, file:/home/zxx/elasticsearch-6.5.3/lib/log4j-api-2.11.1.jar, file:/home/zxx/elasticsearch-6.5.3/lib/jackson-dataformat-yaml-2.8.11.jar, file:/home/zxx/elasticsearch-6.5.3/lib/lucene-grouping-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/HdrHistogram-2.1.9.jar, file:/home/zxx/elasticsearch-6.5.3/lib/hppc-0.7.1.jar, file:/home/zxx/elasticsearch-6.5.3/lib/lucene-sandbox-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/lucene-queryparser-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/lucene-analyzers-common-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/jackson-core-2.8.11.jar, file:/home/zxx/elasticsearch-6.5.3/lib/lucene-memory-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/lucene-highlighter-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/elasticsearch-x-content-6.5.3.jar, file:/home/zxx/elasticsearch-6.5.3/lib/lucene-join-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/snakeyaml-1.17.jar, file:/home/zxx/elasticsearch-6.5.3/lib/elasticsearch-launchers-6.5.3.jar, file:/home/zxx/elasticsearch-6.5.3/lib/spatial4j-0.7.jar, file:/home/zxx/elasticsearch-6.5.3/lib/lucene-spatial3d-7.5.0.jar, file:/home/zxx/elasticsearch-6.5.3/lib/elasticsearch-core-6.5.3.jar]) at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:962) ~[jna-4.5.1.jar:4.5.1 (b0)] at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922) ~[jna-4.5.1.jar:4.5.1 (b0)] at com.sun.jna.Native.<clinit>(Native.java:190) ~[jna-4.5.1.jar:4.5.1 (b0)] at java.lang.Class.forName0(Native Method) ~[?:1.8.0_191] at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_191] at org.elasticsearch.bootstrap.Natives.<clinit>(Natives.java:45) [elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:102) [elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:170) [elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) [elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) [elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) [elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.5.3.jar:6.5.3] at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.5.3.jar:6.5.3] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) [elasticsearch-6.5.3.jar:6.5.3] [2018-12-19T10:41:16,092][WARN ][o.e.b.Natives ] [unknown] cannot check if running as root because JNA is not available [2018-12-19T10:41:16,092][WARN ][o.e.b.Natives ] [unknown] cannot install system call filter because JNA is not available [2018-12-19T10:41:16,093][WARN ][o.e.b.Natives ] [unknown] cannot register console handler because JNA is not available [2018-12-19T10:41:16,098][WARN ][o.e.b.Natives ] [unknown] cannot getrlimit RLIMIT_NPROC because JNA is not available [2018-12-19T10:41:16,098][WARN ][o.e.b.Natives ] [unknown] cannot getrlimit RLIMIT_AS because JNA is not available [2018-12-19T10:41:16,098][WARN ][o.e.b.Natives ] [unknown] cannot getrlimit RLIMIT_FSIZE because JNA is not available [2018-12-19T10:41:16,780][INFO ][o.e.e.NodeEnvironment ] [_rOFuGc] using [1] data paths, mounts [[/ (/dev/vda1)]], net usable_space [29.4gb], net total_space [39.2gb], types [ext4] [2018-12-19T10:41:16,781][INFO ][o.e.e.NodeEnvironment ] [_rOFuGc] heap size [1017.6mb], compressed ordinary object pointers [unknown] [2018-12-19T10:41:16,782][INFO ][o.e.n.Node ] [_rOFuGc] node name derived from node ID [_rOFuGcLR_eKoCkEkLL34A]; set [node.name] to override [2018-12-19T10:41:16,783][INFO ][o.e.n.Node ] [_rOFuGc] version[6.5.3], pid[857], build[default/tar/159a78a/2018-12-06T20:11:28.826501Z], OS[Linux/4.4.0-117-generic/i386], JVM[Oracle Corporation/Java HotSpot(TM) Client VM/1.8.0_191/25.191-b12] [2018-12-19T10:41:16,784][INFO ][o.e.n.Node ] [_rOFuGc] 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=/tmp/elasticsearch.yid5KOeC, -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, -Des.path.home=/home/zxx/elasticsearch-6.5.3, -Des.path.conf=/home/zxx/elasticsearch-6.5.3/config, -Des.distribution.flavor=default, -Des.distribution.type=tar] [2018-12-19T10:41:19,992][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [aggs-matrix-stats] [2018-12-19T10:41:19,993][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [analysis-common] [2018-12-19T10:41:19,993][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [ingest-common] [2018-12-19T10:41:19,993][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [lang-expression] [2018-12-19T10:41:19,993][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [lang-mustache] [2018-12-19T10:41:19,993][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [lang-painless] [2018-12-19T10:41:19,994][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [mapper-extras] [2018-12-19T10:41:19,994][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [parent-join] [2018-12-19T10:41:19,994][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [percolator] [2018-12-19T10:41:19,995][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [rank-eval] [2018-12-19T10:41:19,995][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [reindex] [2018-12-19T10:41:19,996][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [repository-url] [2018-12-19T10:41:19,996][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [transport-netty4] [2018-12-19T10:41:19,996][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [tribe] [2018-12-19T10:41:19,996][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [x-pack-ccr] [2018-12-19T10:41:19,996][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [x-pack-core] [2018-12-19T10:41:19,996][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [x-pack-deprecation] [2018-12-19T10:41:19,996][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [x-pack-graph] [2018-12-19T10:41:19,996][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [x-pack-logstash] [2018-12-19T10:41:19,997][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [x-pack-ml] [2018-12-19T10:41:19,997][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [x-pack-monitoring] [2018-12-19T10:41:19,997][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [x-pack-rollup] [2018-12-19T10:41:19,997][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [x-pack-security] [2018-12-19T10:41:19,997][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [x-pack-sql] [2018-12-19T10:41:19,997][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [x-pack-upgrade] [2018-12-19T10:41:19,997][INFO ][o.e.p.PluginsService ] [_rOFuGc] loaded module [x-pack-watcher] [2018-12-19T10:41:19,998][INFO ][o.e.p.PluginsService ] [_rOFuGc] no plugins loaded [2018-12-19T10:41:28,905][INFO ][o.e.x.s.a.s.FileRolesStore] [_rOFuGc] parsed [0] roles from file [/home/zxx/elasticsearch-6.5.3/config/roles.yml] [2018-12-19T10:41:29,838][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [_rOFuGc] uncaught exception in thread [main] org.elasticsearch.bootstrap.StartupException: ElasticsearchException[X-Pack is not supported and Machine Learning is not available for [linux-x86]; you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch.yml] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.5.3.jar:6.5.3] at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.5.3.jar:6.5.3] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.5.3.jar:6.5.3] Caused by: org.elasticsearch.ElasticsearchException: X-Pack is not supported and Machine Learning is not available for [linux-x86]; you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch.yml at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:104) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:95) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:382) ~[?:?] at org.elasticsearch.node.Node.lambda$new$11(Node.java:472) ~[elasticsearch-6.5.3.jar:6.5.3] at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267) ~[?:1.8.0_191] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0_191] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_191] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_191] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_191] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_191] at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0_191] at org.elasticsearch.node.Node.<init>(Node.java:475) ~[elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.node.Node.<init>(Node.java:265) ~[elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.5.3.jar:6.5.3] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.5.3.jar:6.5.3] ... 6 more
由于服务器ubuntu系统是32位的,安装的elasticsearch是64位的
解决方式:使用命令安装
sudo apt-get install elasticsearch