2017-02-15 14 views
0

elasticsearchバージョン:elasticsearch-5.2.0elasticsearchヘッド:// localhostを:9200

elasticsearchヘッドバージョン:成功した最新バージョン

スタートサービス:

#### node1 #### 
deMacBook-Pro:bin yyq$ ./elasticsearch 
[2017-02-15T13:08:57,174][INFO ][o.e.n.Node    ] [yml-es-node-1] initializing ... 
[2017-02-15T13:08:57,303][INFO ][o.e.e.NodeEnvironment ] [yml-es-node-1] using [1] data paths, mounts [[/ (/dev/disk1)]], net usable_space [21.4gb], net total_space [232.6gb], spins? [unknown], types [hfs] 
[2017-02-15T13:08:57,304][INFO ][o.e.e.NodeEnvironment ] [yml-es-node-1] heap size [1.9gb], compressed ordinary object pointers [true] 
[2017-02-15T13:08:57,355][INFO ][o.e.n.Node    ] [yml-es-node-1] node name [yml-es-node-1], node ID [hqVAcDOdRu-LXuAgUEX9oQ] 
[2017-02-15T13:08:57,358][INFO ][o.e.n.Node    ] [yml-es-node-1] version[5.2.0], pid[93922], build[24e05b9/2017-01-24T19:52:35.800Z], OS[Mac OS X/10.11.6/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_25/25.25-b02] 
[2017-02-15T13:08:58,802][INFO ][o.e.p.PluginsService  ] [yml-es-node-1] loaded module [aggs-matrix-stats] 
[2017-02-15T13:08:58,803][INFO ][o.e.p.PluginsService  ] [yml-es-node-1] loaded module [ingest-common] 
[2017-02-15T13:08:58,803][INFO ][o.e.p.PluginsService  ] [yml-es-node-1] loaded module [lang-expression] 
[2017-02-15T13:08:58,803][INFO ][o.e.p.PluginsService  ] [yml-es-node-1] loaded module [lang-groovy] 
[2017-02-15T13:08:58,803][INFO ][o.e.p.PluginsService  ] [yml-es-node-1] loaded module [lang-mustache] 
[2017-02-15T13:08:58,803][INFO ][o.e.p.PluginsService  ] [yml-es-node-1] loaded module [lang-painless] 
[2017-02-15T13:08:58,803][INFO ][o.e.p.PluginsService  ] [yml-es-node-1] loaded module [percolator] 
[2017-02-15T13:08:58,804][INFO ][o.e.p.PluginsService  ] [yml-es-node-1] loaded module [reindex] 
[2017-02-15T13:08:58,804][INFO ][o.e.p.PluginsService  ] [yml-es-node-1] loaded module [transport-netty3] 
[2017-02-15T13:08:58,804][INFO ][o.e.p.PluginsService  ] [yml-es-node-1] loaded module [transport-netty4] 
[2017-02-15T13:08:58,805][INFO ][o.e.p.PluginsService  ] [yml-es-node-1] no plugins loaded 
[2017-02-15T13:09:02,610][INFO ][o.e.n.Node    ] [yml-es-node-1] initialized 
[2017-02-15T13:09:02,610][INFO ][o.e.n.Node    ] [yml-es-node-1] starting ... 
[2017-02-15T13:09:02,953][INFO ][o.e.t.TransportService ] [yml-es-node-1] publish_address {127.0.0.1:9300}, bound_addresses {[fe80::1]:9300}, {[::1]:9300}, {127.0.0.1:9300} 
[2017-02-15T13:09:06,125][INFO ][o.e.c.s.ClusterService ] [yml-es-node-1] detected_master {yml-es-node-2}{FWhiCkI7TV6hJOlmT_fgQg}{URIaxsK2T0aP7jRRe6TDfg}{127.0.0.1}{127.0.0.1:9301}, added {{yml-es-node-2}{FWhiCkI7TV6hJOlmT_fgQg}{URIaxsK2T0aP7jRRe6TDfg}{127.0.0.1}{127.0.0.1:9301},}, reason: zen-disco-receive(from master [master {yml-es-node-2}{FWhiCkI7TV6hJOlmT_fgQg}{URIaxsK2T0aP7jRRe6TDfg}{127.0.0.1}{127.0.0.1:9301} committed version [385]]) 
[2017-02-15T13:09:06,175][INFO ][o.e.h.HttpServer   ] [yml-es-node-1] publish_address {127.0.0.1:9200}, bound_addresses {[fe80::1]:9200}, {[::1]:9200}, {127.0.0.1:9200} 
[2017-02-15T13:09:06,175][INFO ][o.e.n.Node    ] [yml-es-node-1] started 

#### node2 #### 
deMacBook-Pro:bin yyq$ ./elasticsearch 
[2017-02-15T10:31:03,936][INFO ][o.e.n.Node    ] [yml-es-node-2] initializing ... 
[2017-02-15T10:31:04,087][INFO ][o.e.e.NodeEnvironment ] [yml-es-node-2] using [1] data paths, mounts [[/ (/dev/disk1)]], net usable_space [19.3gb], net total_space [232.6gb], spins? [unknown], types [hfs] 
[2017-02-15T10:31:04,087][INFO ][o.e.e.NodeEnvironment ] [yml-es-node-2] heap size [1.9gb], compressed ordinary object pointers [true] 
[2017-02-15T10:31:04,104][INFO ][o.e.n.Node    ] [yml-es-node-2] node name [yml-es-node-2], node ID [FWhiCkI7TV6hJOlmT_fgQg] 
[2017-02-15T10:31:04,112][INFO ][o.e.n.Node    ] [yml-es-node-2] version[5.2.0], pid[85158], build[24e05b9/2017-01-24T19:52:35.800Z], OS[Mac OS X/10.11.6/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_25/25.25-b02] 
[2017-02-15T10:31:05,830][INFO ][o.e.p.PluginsService  ] [yml-es-node-2] loaded module [aggs-matrix-stats] 
[2017-02-15T10:31:05,830][INFO ][o.e.p.PluginsService  ] [yml-es-node-2] loaded module [ingest-common] 
[2017-02-15T10:31:05,830][INFO ][o.e.p.PluginsService  ] [yml-es-node-2] loaded module [lang-expression] 
[2017-02-15T10:31:05,830][INFO ][o.e.p.PluginsService  ] [yml-es-node-2] loaded module [lang-groovy] 
[2017-02-15T10:31:05,830][INFO ][o.e.p.PluginsService  ] [yml-es-node-2] loaded module [lang-mustache] 
[2017-02-15T10:31:05,830][INFO ][o.e.p.PluginsService  ] [yml-es-node-2] loaded module [lang-painless] 
[2017-02-15T10:31:05,831][INFO ][o.e.p.PluginsService  ] [yml-es-node-2] loaded module [percolator] 
[2017-02-15T10:31:05,831][INFO ][o.e.p.PluginsService  ] [yml-es-node-2] loaded module [reindex] 
[2017-02-15T10:31:05,831][INFO ][o.e.p.PluginsService  ] [yml-es-node-2] loaded module [transport-netty3] 
[2017-02-15T10:31:05,831][INFO ][o.e.p.PluginsService  ] [yml-es-node-2] loaded module [transport-netty4] 
[2017-02-15T10:31:05,832][INFO ][o.e.p.PluginsService  ] [yml-es-node-2] no plugins loaded 
[2017-02-15T10:31:09,871][INFO ][o.e.n.Node    ] [yml-es-node-2] initialized 
[2017-02-15T10:31:09,871][INFO ][o.e.n.Node    ] [yml-es-node-2] starting ... 
[2017-02-15T10:31:10,171][INFO ][o.e.t.TransportService ] [yml-es-node-2] publish_address {127.0.0.1:9301}, bound_addresses {[fe80::1]:9301}, {[::1]:9301}, {127.0.0.1:9301} 
[2017-02-15T10:31:13,327][INFO ][o.e.c.s.ClusterService ] [yml-es-node-2] detected_master {yml-es-node-1}{hqVAcDOdRu-LXuAgUEX9oQ}{VrY6MUvhQNetUmbzcRnKMg}{127.0.0.1}{127.0.0.1:9300}, added {{yml-es-node-1}{hqVAcDOdRu-LXuAgUEX9oQ}{VrY6MUvhQNetUmbzcRnKMg}{127.0.0.1}{127.0.0.1:9300},}, reason: zen-disco-receive(from master [master {yml-es-node-1}{hqVAcDOdRu-LXuAgUEX9oQ}{VrY6MUvhQNetUmbzcRnKMg}{127.0.0.1}{127.0.0.1:9300} committed version [223]]) 
[2017-02-15T10:31:13,388][INFO ][o.e.h.HttpServer   ] [yml-es-node-2] publish_address {127.0.0.1:9201}, bound_addresses {[fe80::1]:9201}, {[::1]:9201}, {127.0.0.1:9201} 
[2017-02-15T10:31:13,388][INFO ][o.e.n.Node    ] [yml-es-node-2] started 

deMacBook-Pro:elasticsearch-head-master yyq$ grunt server 
Running "connect:server" (connect) task 
Waiting forever... 
Started connect web server on http://localhost:9100 

URL:http://localhost:9100を開いて[接続]ボタンをクリックしましたが、elasticsearchに接続できません。 誰か助けてくれますか? このごelasticsearch.yml構成でscreenshot

答えて

0

である、あなたはおそらく次の設定があります。

http.port: 9201 

をこれはあなたのログにも見える:

[...] publish_address {127.0.0.1:9201}, bound_addresses {[fe80::1]:9201}, {[::1]:9201}, {127.0.0.1:9201} 
           ^
            | 
          your HTTP port 

だからあなたelasticsearch-headインターフェースで、あなたはlocalhost:9201ではなく、localhost:9200に接続する必要があります。また、あなたのelasticsearch.yml構成でhttp.cors.enabled: trueを追加し、私のコンピュータでは、あなたのESサーバー

+0

を再起動する必要が

UPDATE

、2つのインスタンスが存在し、[YML-ES-ノード-1] 'sのポート9200、[yml-es-node-2]のポートは9201です。http:// localhost:9201に変更したときにも接続できません。 – Alex

+0

yml-es-node-1は実行中ですか? – Val

+0

はい、実行中 – Alex

関連する問題