These are the steps I used.
unzip elasticsearch.zip in folder, launch elasticsearch.bat from cmd window
unzip kibana zip in separate folder and launch kibana.bat from cmd window
Launched kibana console from Browser, using localhost:5601
Did I miss anything?
I ask because the health status shows yellow.
GET _cat/health?v
Result
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1586457605 18:40:05 elasticsearch yellow 1 1 12 12 0 0 9 0 - 57.1%
Also the following command shows some problems.
GET /_cluster/allocation/explain?pretty
Result
{
"index" : "website",
"shard" : 0,
"primary" : false,
"current_state" : "unassigned",
"unassigned_info" : {
"reason" : "CLUSTER_RECOVERED",
"at" : "2020-04-09T00:11:11.195Z",
"last_allocation_status" : "no_attempt"
},
"can_allocate" : "no",
"allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes",
"node_allocation_decisions" : [
{
"node_id" : "DxiVy64ySTaq058I5Gef9w",
"node_name" : "HOMEPC",
"transport_address" : "127.0.0.1:9300",
"node_attributes" : {
"ml.machine_memory" : "8454520832",
"xpack.installed" : "true",
"ml.max_open_jobs" : "20"
},
"node_decision" : "no",
"deciders" : [
{
"decider" : "same_shard",
"decision" : "NO",
"explanation" : "the shard cannot be allocated to the same node on which a copy of the shard already exists [[website][0], node[DxiVy64ySTaq058I5Gef9w], [P], s[STARTED], a[id=-9r8SzxTQDqAlpB0gvWJBg]]"
}
]
}
]
}
I could add some data. (Agree that the syntax is now deprecated.)
PUT myindex/mytype/1
{
"body": "here"
}
GET myindex/mytype/1
#! Deprecation: [types removal] Specifying types in document get requests is deprecated, use the /{index}/_doc/{id} endpoint instead.
{
"_index" : "myindex",
"_type" : "mytype",
"_id" : "1",
"_version" : 1,
"_seq_no" : 0,
"_primary_term" : 1,
"found" : true,
"_source" : {
"body" : "here"
}
}
But the cluster health for the index is yellow.
GET _cluster/health/myindex
Result
{
"cluster_name" : "elasticsearch",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 1,
"active_shards" : 1,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 1,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 57.14285714285714
}
Please check and advise if I need to take any corrective measure.
Thank you