After running it by the command
curator --config C:\Users\user\Desktop\config.yml --dry-run C:\Users\user\Desktop\file.yml
It shows the message
2017-03-08 18:02:58,316 INFO Preparing Action ID: 1, "create_index"
2017-03-08 18:02:58,363 INFO Trying Action ID: 1, "create_index": Create index as named
2017-03-08 18:02:58,363 INFO DRY-RUN MODE. No changes will be made.
2017-03-08 18:02:58,363 INFO DRY-RUN: create_index "new_index" with arguments: {'settings': {'number_of_shards': 1, 'number_of_replicas': 0}}
2017-03-08 18:02:58,363 INFO Action ID: 1, "create_index" completed.
2017-03-08 18:02:58,379 INFO Job completed.
But after running curl localhost:9200/_cat/indices , I don't see any new index created.
I feel like there is a problem in the config file most probably. Please help me out.
P.S :- I have also used 127.0.0.1 and local machine IP in the host
If you continue to run with the --dry-run flag, no changes will ever be made. That flag is used to test what the actions should do without actually doing them.
Thank You . It did work. Looking at the guide in the curator I thought --dry-run parameter works with making no deviation from your action file.
Continuing working with curator, I am facing one more problem. Below is my action file
actions:
1:
action: delete_indices
description: "Delete Selected Indices"
options:
timeout_override:
continue_if_exception: false
disable_action: false
filters:
- filtertype: age
source: name
direction: younger
timestring: '%Y.%m.%d'
unit: days
unit_count: 2
When I run this, I get the following message :-
No actionable items in list: <class 'curator.exceptions.NoIndices'>
I think the curator is not getting my filter, is there some problem with the syntax?
I have a final query, a help required for our production environment.
If I use document routing and allocate one doctype to be in 1 or 2 shards and other doctypes in other shards. Is it possible for us to route the doctype into the warm nodes while the other shards of the index stays in the hot nodes.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.