Elasticsearch5.0 Installation
Linux环境下---Centos6.5
java -version
echo $JAVA_HOME
curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.0.0.tar.gz
解压:
tar -xvf elasticsearch-5.0.0.tar.gz
cd elasticsearch-5.0.0/bin
启动服务:
./elasticsearch
[yudc@10-10-190-147 bin]$ ./elasticsearch
[2016-11-09T09:31:19,812][INFO ][o.e.n.Node ] [] initializing ...
[2016-11-09T09:31:19,895][INFO ][o.e.e.NodeEnvironment ] [NVxjSLs] using [1] data paths, mounts [[/data (/dev/vdb)]], net usable_space [198.2gb], net total_space [492.1gb], spins? [possibly], types [ext4]
[2016-11-09T09:31:19,895][INFO ][o.e.e.NodeEnvironment ] [NVxjSLs] heap size [1.9gb], compressed ordinary object pointers [true]
[2016-11-09T09:31:19,904][INFO ][o.e.n.Node ] [NVxjSLs] node name [NVxjSLs] derived from node ID; set [node.name] to override
[2016-11-09T09:31:19,906][INFO ][o.e.n.Node ] [NVxjSLs] version[5.0.0], pid[29956], build[253032b/2016-10-26T04:37:51.531Z], OS[Linux/2.6.32-431.11.22.el6.ucloud.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_111/25.111-b14]
[2016-11-09T09:31:20,732][INFO ][o.e.p.PluginsService ] [NVxjSLs] loaded module [aggs-matrix-stats]
[2016-11-09T09:31:20,733][INFO ][o.e.p.PluginsService ] [NVxjSLs] loaded module [ingest-common]
[2016-11-09T09:31:20,733][INFO ][o.e.p.PluginsService ] [NVxjSLs] loaded module [lang-expression]
[2016-11-09T09:31:20,733][INFO ][o.e.p.PluginsService ] [NVxjSLs] loaded module [lang-groovy]
[2016-11-09T09:31:20,733][INFO ][o.e.p.PluginsService ] [NVxjSLs] loaded module [lang-mustache]
[2016-11-09T09:31:20,733][INFO ][o.e.p.PluginsService ] [NVxjSLs] loaded module [lang-painless]
[2016-11-09T09:31:20,733][INFO ][o.e.p.PluginsService ] [NVxjSLs] loaded module [percolator]
[2016-11-09T09:31:20,733][INFO ][o.e.p.PluginsService ] [NVxjSLs] loaded module [reindex]
[2016-11-09T09:31:20,733][INFO ][o.e.p.PluginsService ] [NVxjSLs] loaded module [transport-netty3]
[2016-11-09T09:31:20,734][INFO ][o.e.p.PluginsService ] [NVxjSLs] loaded module [transport-netty4]
[2016-11-09T09:31:20,734][INFO ][o.e.p.PluginsService ] [NVxjSLs] loaded plugin [analysis-icu]
[2016-11-09T09:31:22,874][INFO ][o.e.n.Node ] [NVxjSLs] initialized
[2016-11-09T09:31:22,874][INFO ][o.e.n.Node ] [NVxjSLs] starting ...
[2016-11-09T09:31:23,074][INFO ][o.e.t.TransportService ] [NVxjSLs] publish_address {10.10.190.147:9300}, bound_addresses {10.10.190.147:9300}
[2016-11-09T09:31:23,087][INFO ][o.e.b.BootstrapCheck ] [NVxjSLs] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
[2016-11-09T09:31:23,095][INFO ][o.e.n.Node ] [NVxjSLs] stopping ...
[2016-11-09T09:31:23,132][INFO ][o.e.n.Node ] [NVxjSLs] stopped
[2016-11-09T09:31:23,132][INFO ][o.e.n.Node ] [NVxjSLs] closing ...
[2016-11-09T09:31:23,142][INFO ][o.e.n.Node ] [NVxjSLs] closed
或集群启动
./elasticsearch -Ecluster.name=my_cluster_name -Enode.name=my_node_name