While the parameters for the batch indexing topology should be modified via Ambari for
persistence, you can start the topologies via the command line on the Metron node and easily
modify parameters for testing. The commands below demonstrate how to create a copy of the
Metron files for making changes quickly during testing.
-
From the user’s home directory, execute the following commands:
sudo cp /usr/hcp/current/metron/bin/start_elasticsearch_topology.sh ~
sudo cp /usr/hcp/current/metron/config/elasticsearch.properties ~
sed -i 's+$METRON_HOME/config/+/home/<user>/+g' ./start_elasticsearch_topology.sh
-
Now, the variables can be edited outside of Ambari via the following command:
vi ~/elasticsearch.properties
-
To start the topology with the new variables, you must execute the following
command:
~/start_elasticsearch_topology.sh