Buenas
Estoy tratando de configurar el Node.Roles [master] debido a que es una configuracion obsoleta en la version que tengo 7.17.6 y he configurado mi .YML pero a la hora de correrlo mi elastic no arranca.
Wave
(Andrew Sullivan)
March 6, 2023, 5:55pm
2
Podemos ver el archivo elasticsearch.yml? Pero aseguarte de no mostrar informacion confidencial. Tambien si es la primera vez de impezar tiene que poner "cluster.initial_master_nodes". Aqui es mas informacion .
======================== 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 consult the documentation for further information on configuration options:
---------------------------------- Cluster -----------------------------------
Use a descriptive name for your cluster:
cluster.name: elasticsearch-prueba
------------------------------------ Node ------------------------------------
Use a descriptive name for the node:
node.name: node-prueba-72
Add custom attributes to the node:
#node .attr.rack: r1
#node .roles: true
#roles:
master: true
ingest: true
ml: true
node.master: true
#node .voting_only: true
#node .data: false
#node .ingest: true
#node .ml: true
----------------------------------- Paths ------------------------------------
Path to directory where to store the data (separate multiple locations by comma):
path.data: E:/Elastic/Elasticsearch/data
#"E:\Elastic\Elasticsearch\data"
Path to log files:
path.logs: E:/Elastic/Elasticsearch/logs
#"E:\Elastic\Elasticsearch\logs"
----------------------------------- Memory -----------------------------------
Lock the memory on startup:
#bootstrap .memory_lock: true
bootstrap.memory_lock: false
Make sure that the heap size 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 address to a specific IP (IPv4 or IPv6):
network.host: localhost
Set a custom port for HTTP:
#http .port: 9200
For more information, consult the network module documentation.
--------------------------------- Discovery ----------------------------------
Pass an initial list of hosts to perform discovery when this node is started:
The default list of hosts is ["127.0.0.1", "[::1]"]
#discovery .seed_hosts: ["host1", "host2"]
Bootstrap the cluster using an initial set of master-eligible nodes:
#cluster .initial_master_nodes: ["node-1", "node-2"]
For more information, consult the discovery and cluster formation module documentation.
cluster.initial_master_nodes: localhost
---------------------------------- Gateway -----------------------------------
Block initial recovery after a full cluster restart until N nodes are started:
#gateway .recover_after_nodes: 3
For more information, consult the gateway module documentation.
---------------------------------- Snapshots -----------------------------------
Configuracion para toma y gestion de snapshots
path.repo: ["E:\Elastic\Backups"]
---------------------------------- Various -----------------------------------
Require explicit names when deleting indices:
#action .destructive_requires_name: true
xpack.ml.enabled: true
#xpack .monitoring.enabled: true
xpack.watcher.enabled: true
This turns on SSL for the HTTP (Rest) interface
xpack.security.http.ssl.enabled: true
This configures the keystore to use for SSL on HTTP
xpack.security.http.ssl.keystore.path: http.p12
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
cluster.max_shards_per_node: 100000
Wave
(Andrew Sullivan)
March 6, 2023, 7:08pm
4
Ese archivo de configuratión me confundió un poco, pero, eliminé todo lo extaño y obtuve esto:
cluster.name: elasticsearch-prueba
node.name: node-prueba-72
path.data: "E:\\Elastic\\Elasticsearch\\data"
path.logs: "E:\\Elastic\\Elasticsearch\\logs"
Eso debería funcionar para un clúster de prueba simple de un nodo.
Es que en la version 8x las configuraciones de nodo.master, ingest y ml ya son obsoletas y entonces la sugerencia es que configure el node.roles [master, ingest, ml] y ps asi la estoy incluyendo en mi .yml pero no arranca.
Wave
(Andrew Sullivan)
March 7, 2023, 9:33pm
6
Esta bien. Los valores predeterminados deberían functionar bien.