I need to Add/Edit/Delete a file in all nodes in a cluster, lets say 50 nodes. Assume the file path is same in all nodes. What is the best and simple approach to perform this task?
Mahesh RameshBabu Assuming that all the resultant files will be identical, I'd first make the changes to one file on one of the 50 nodes and then do a,
clush -a --copy /path/to/file.txt
And to ensure that all the files are identical/have the same changes, you could do an md5sum and verify that the hash is the same for all the files displayed,
clush -a md5sum /path/to/file.txt
Hope that helps.
Retrieving data ...