[ https://issues.apache.org/jira/browse/CASSANDRA-14789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16653632#comment-16653632 ]
Jan Karlsson commented on CASSANDRA-14789: ------------------------------------------ {{I had a look at how we can do this, but was not impressed with the options we have. Airline does not seem to jive(no pun intended) well with going into the code to fetch defaults from a file. Overriding the different parameters in the abstract class does not seem to be too smooth. Doing it in the script calling Nodetool might be a little more clean. Sourcing in a file could allow to manipulate the ARGS variable by adding lines likes this:}} {{JMX_PORT=7199}} {{ARGS="$ARGS -h 127.0.0.2"}} {{There are a few concerns I have with this approach. Firstly, It might some security risks associated, but file permissions can help with that. Secondly, we will be practically requiring the user to provide lines of bash script. I would like to avoid that, but I am not sure how to do that without having a map of all the available options and grepping the ARGS parameter with each options.}} {{All in all, it might not be as bad, considering that this is an optional feature for more advanced use cases.}} {{This solution is definitely quite non intrusive, but it does mean that parameters could be placed twice into the command run. It is a little iffy but it should still work.}} > Configuring nodetool from a file > -------------------------------- > > Key: CASSANDRA-14789 > URL: https://issues.apache.org/jira/browse/CASSANDRA-14789 > Project: Cassandra > Issue Type: Improvement > Components: Tools > Reporter: Jan Karlsson > Assignee: Jan Karlsson > Priority: Minor > Fix For: 4.x > > > Nodetool has a lot of options that can be set. SSL can be configured through > a file[1], but most other parameters must be provided when running the > command. It would be helpful to be able to configure its parameters through a > file much like how cqlsh can be configured[2]. > > [1] https://issues.apache.org/jira/browse/CASSANDRA-9090 > [2] > [https://docs.datastax.com/en/cql/3.3/cql/cql_reference/cqlshUsingCqlshrc.html] -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org