ctubbsii commented on PR #5439:
URL: https://github.com/apache/accumulo/pull/5439#issuecomment-2770615622

   In reply to @dlmarion:
   > 
[Here](https://github.com/apache/accumulo/issues/2138#issuecomment-866979795)
   
   Okay, yeah, it sounds like I was more on the fence back then. `yq` is 
definitely more available in RPM-based distros now than it was back then.
   
   In reply to @keith-turner:
   > ```
   > $ grep org.apache accumulo-cluster 
   >   "$accumulo_cmd" 
org.apache.accumulo.core.conf.cluster.ClusterConfigParser "$conf/cluster.yaml" 
"$CONFIG_FILE" || parse_fail
   >       "$accumulo_cmd" org.apache.accumulo.server.util.ZooZap -manager 
-tservers -compaction-coordinators -compactors -sservers
   > ```
   
   I'm not so concerned about ZooZap being used by our cluster script. I also 
see SetGoalState being called in the accumulo-service script. Those are general 
utilities that are not specific to our cluster management scripts.  The 
ClusterConfigParser, being specific to the accumulo-cluster script and its 
config however, is one I'd like to see decoupled... eventually.
   
   > However its done I would like be able to quickly find and/or kill 
processes running on hosts that are not listed cluster.yaml. I don't know of an 
easy and quick way to accomplish this on the command line. What are the 
primitives you are thinking of and what are the other use cases those 
primitives would support?
   
   Well, ZooZap is definitely a core one... the ability to zap a specific 
server, or a list of servers, would be helpful. The ServiceStatusCmd was 
mentioned as one that can list running services. The accumulo-cluster script 
should be able to parse its configured set from cluster.yaml (currently using 
the ClusterConfigParser, but in future, could be `yq`). That should be enough 
to get lists to compare, which can be easily done in the script with simple 
loops over bash arrays, or more conveniently with something like the `comm` 
command.
   
   ZooZap could also have a "zap all except" option to avoid the set 
comparisons in bash. e.g. `ZooZap --tservers 
--exclude=configuredServer1FromYaml,configuredServer2FromYaml,etc.`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to