Elasticsearch 2.0可以从浏览器标签

时间:2015-11-20 18:21:17

标签: elasticsearch elasticsearch-plugin elastic-stack

我在Windows 7本地机器上运行Elasticsearch 2.0,连接到等待新条目的Mysql DB,一切正常。我正在使用一个包含3个节点的集群。 Cluster Health是绿色的。

Elasticsearch

enter image description here

当我点击浏览器标签然后在指数上我想看它似乎是空的,即使它说有2个文件?

enter image description here

当我打开任意请求标签并搜索索引"audit-2015.11.20"时,它会返回数据吗?我可以配置其他东西吗?

enter image description here

Windows上的Elasticsearch位置为C:\elasticsearch-2.0.0

enter image description here

我从cmd单独启动每个Elasticsearch,如下所示:C:\elasticsearch-2.0.0\elasticsearch-2.0.0-Master\bin>elasticsearch更改每个名称。

我忘了做某事。我elasticsearch-2.0.0-Master的配置文件如下。

# ======================== Elasticsearch Configuration     =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
#       Before you set out to tweak and tune the configuration, make sure you
#       understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please see the documentation for further information on configuration options:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
  cluster.name: AppTransport
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
  node.name: node-1
#
# Add custom attributes to the node:
#
# node.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
# path.data: /path/to/data
#
# Path to log files:
#
# path.logs: /path/to/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
# bootstrap.mlockall: true
#
# Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory
# available on the system and that the owner of the process is allowed to use this limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind adress to a specific IP (IPv4 or IPv6):
#
# network.host: 192.168.0.1
#
# Set a custom port for HTTP:
#
  http.port: 9200
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
# gateway.recover_after_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>
#
# --------------------------------- Discovery ----------------------------------
#
# Elasticsearch nodes will find each other via unicast, by default.
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
  discovery.zen.ping.unicast.hosts: ["127.0.0.1", "127.0.0.1:9201", "127.0.0.1:9202"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
#
# discovery.zen.minimum_master_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html>
#
# ---------------------------------- Various -----------------------------------
#
# Disable starting multiple nodes on a single system:
#
# node.max_local_storage_nodes: 1
#
# Require explicit names when deleting indices:
#
# action.destructive_requires_name: true

在另一个Elasticsearch yaml配置文件中,我刚刚更改了Node node.name 网络 http.port 号码和Discovery discovery.zen.ping。 unicast.hosts

所以节点2是http.port: 9201,发现是discovery.zen.ping.unicast.hosts:["127.0.0.1", "127.0.0.1:9201", "127.0.0.1:9202"],节点3是http.port: 9202,发现是discovery.zen.ping.unicast。主持人:["127.0.0.1", "127.0.0.1:9201", "127.0.0.1:9202"]

提前致谢

1 个答案:

答案 0 :(得分:0)

elasticsearch-head存在一个未解决的问题。它暂时不能与当前的2.x版本完全兼容。

其中一个问题如下:https://github.com/mobz/elasticsearch-head/issues/217