[jira] [Updated] (CASSANDRA-18661) Update to cassandra-stress to use Apache Commons CLI

2023-11-15 Thread Paulo Motta (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-18661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paulo Motta updated CASSANDRA-18661:

Labels: lhf  (was: )

> Update to cassandra-stress to use Apache Commons CLI
> 
>
> Key: CASSANDRA-18661
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18661
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Tool/stress
>Reporter: Brad Schoening
>Priority: Normal
>  Labels: lhf
>
> The Apache Commons CLI library provides an API for parsing command line 
> options with the package org.apache.commons.cli and this is already used by a 
> dozen of existing Cassandra utilities including:
> {quote}SSTableMetadataViewer, StandaloneScrubber, StandaloneSplitter, 
> SSTableExport, BulkLoader, and others.
> {quote}
> However, cassandra-stress is an outlier which uses its own custom classes to 
> parse command line options with classes such as OptionsSimple.  In addition, 
> the options syntax for username, password, and others are not aligned with 
> the format used by CQLSH.
> Currently, there are > 5K lines of code in 'settings' which appears to just 
> process command line args.
> This suggestion is to:
>  
> a) Upgrade cassandra-stress to use Apache Commons CLI (no new dependencies 
> are required as this library is already used by the project)
>  
> b) Align the cassandra-stress CLI options with those in CQLSH, 
>  
> {quote}For example, using the new syntax like CQLSH:
> {quote}
>  
> cassandra-stress -username foo -password bar
> {quote}and replacing the old syntax:
> {quote}
> cassandra-stress -mode username=foo and password=bar
>  
> This will simplify and unify the code base, eliminate code and reduce the 
> confusion between similar named classes such as 
> org.apache.cassandra.stress.settings.\{Option, OptionsMulti, OptionsSimple} 
> and org.apache.commons.cli.{Option, OptionGroup, Options)
>  
> Note: documentation will need to be updated as well



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Updated] (CASSANDRA-18661) Update to cassandra-stress to use Apache Commons CLI

2023-08-09 Thread Brad Schoening (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-18661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brad Schoening updated CASSANDRA-18661:
---
Description: 
The Apache Commons CLI library provides an API for parsing command line options 
with the package org.apache.commons.cli and this is already used by a dozen of 
existing Cassandra utilities including:
{quote}SSTableMetadataViewer, StandaloneScrubber, StandaloneSplitter, 
SSTableExport, BulkLoader, and others.
{quote}
However, cassandra-stress is an outlier which uses its own custom classes to 
parse command line options with classes such as OptionsSimple.  In addition, 
the options syntax for username, password, and others are not aligned with the 
format used by CQLSH.

Currently, there are > 5K lines of code in 'settings' which appears to just 
process command line args.

This suggestion is to:
 
a) Upgrade cassandra-stress to use Apache Commons CLI (no new dependencies are 
required as this library is already used by the project)
 
b) Align the cassandra-stress CLI options with those in CQLSH, 
 
{quote}For example, using the new syntax like CQLSH:
{quote}
 

cassandra-stress -username foo -password bar
{quote}and replacing the old syntax:
{quote}
cassandra-stress -mode username=foo and password=bar
 
This will simplify and unify the code base, eliminate code and reduce the 
confusion between similar named classes such as 
org.apache.cassandra.stress.settings.\{Option, OptionsMulti, OptionsSimple} and 
org.apache.commons.cli.{Option, OptionGroup, Options)
 

Note: documentation will need to be updated as well

  was:
The Apache Commons CLI library provides an API for parsing command line options 
with the package org.apache.commons.cli and this is already used by a dozen of 
existing Cassandra utilities including:
{quote}SSTableMetadataViewer, StandaloneScrubber, StandaloneSplitter, 
SSTableExport, BulkLoader, and others.
{quote}
However, cassandra-stress is an outlier which uses its own custom classes to 
parse command line options with classes such as OptionsSimple.  In addition, 
the options syntax for username, password, and others are not aligned with the 
format used by CQLSH.
 

Currently, there are > 5K lines of code in 'settings' which appears to just 
process command line ars.


This suggestion is to:
 
a) Upgrade cassandra-stress to use Apache Commons CLI (no new dependencies are 
required as this library is already used by the project)
 
b) Align the cassandra-stress CLI options with those in CQLSH, 
 
{quote}For example, using the new syntax like CQLSH:
{quote}
 

cassandra-stress -username foo -password bar
{quote}and replacing the old syntax:
{quote}
cassandra-stress -mode username=foo and password=bar
 
This will simplify and unify the code base, eliminate code and reduce the 
confusion between similar named classes such as 
org.apache.cassandra.stress.settings.\{Option, OptionsMulti, OptionsSimple} and 
org.apache.commons.cli.{Option, OptionGroup, Options)
 

Note: documentation will need to be updated as well


> Update to cassandra-stress to use Apache Commons CLI
> 
>
> Key: CASSANDRA-18661
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18661
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Tool/stress
>Reporter: Brad Schoening
>Priority: Normal
>
> The Apache Commons CLI library provides an API for parsing command line 
> options with the package org.apache.commons.cli and this is already used by a 
> dozen of existing Cassandra utilities including:
> {quote}SSTableMetadataViewer, StandaloneScrubber, StandaloneSplitter, 
> SSTableExport, BulkLoader, and others.
> {quote}
> However, cassandra-stress is an outlier which uses its own custom classes to 
> parse command line options with classes such as OptionsSimple.  In addition, 
> the options syntax for username, password, and others are not aligned with 
> the format used by CQLSH.
> Currently, there are > 5K lines of code in 'settings' which appears to just 
> process command line args.
> This suggestion is to:
>  
> a) Upgrade cassandra-stress to use Apache Commons CLI (no new dependencies 
> are required as this library is already used by the project)
>  
> b) Align the cassandra-stress CLI options with those in CQLSH, 
>  
> {quote}For example, using the new syntax like CQLSH:
> {quote}
>  
> cassandra-stress -username foo -password bar
> {quote}and replacing the old syntax:
> {quote}
> cassandra-stress -mode username=foo and password=bar
>  
> This will simplify and unify the code base, eliminate code and reduce the 
> confusion between similar named classes such as 
> org.apache.cassandra.stress.settings.\{Option, OptionsMulti, OptionsSimple} 
> and org.apache.commons.cli.{Option, OptionGroup, Options)
>  
> Note: documentation will need to be 

[jira] [Updated] (CASSANDRA-18661) Update to cassandra-stress to use Apache Commons CLI

2023-08-09 Thread Brad Schoening (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-18661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brad Schoening updated CASSANDRA-18661:
---
Description: 
The Apache Commons CLI library provides an API for parsing command line options 
with the package org.apache.commons.cli and this is already used by a dozen of 
existing Cassandra utilities including:
{quote}SSTableMetadataViewer, StandaloneScrubber, StandaloneSplitter, 
SSTableExport, BulkLoader, and others.
{quote}
However, cassandra-stress is an outlier which uses its own custom classes to 
parse command line options with classes such as OptionsSimple.  In addition, 
the options syntax for username, password, and others are not aligned with the 
format used by CQLSH.
 

Currently, there are > 5K lines of code in 'settings' which appears to just 
process command line ars.


This suggestion is to:
 
a) Upgrade cassandra-stress to use Apache Commons CLI (no new dependencies are 
required as this library is already used by the project)
 
b) Align the cassandra-stress CLI options with those in CQLSH, 
 
{quote}For example, using the new syntax like CQLSH:
{quote}
 

cassandra-stress -username foo -password bar
{quote}and replacing the old syntax:
{quote}
cassandra-stress -mode username=foo and password=bar
 
This will simplify and unify the code base, eliminate code and reduce the 
confusion between similar named classes such as 
org.apache.cassandra.stress.settings.\{Option, OptionsMulti, OptionsSimple} and 
org.apache.commons.cli.{Option, OptionGroup, Options)
 

Note: documentation will need to be updated as well

  was:
The Apache Commons CLI library provides an API for parsing command line options 
with the package org.apache.commons.cli and this is already used by a dozen of 
existing Cassandra utilities including:
{quote}SSTableMetadataViewer, StandaloneScrubber, StandaloneSplitter, 
SSTableExport, BulkLoader, and others.
{quote}
However, cassandra-stress is an outlier which uses its own custom classes to 
parse command line options with classes such as OptionsSimple.  In addition, 
the options syntax for username, password, and others are not aligned with the 
format used by CQLSH.
 
This suggestion is to:
 
a) Upgrade cassandra-stress to use Apache Commons CLI (no new dependencies are 
required as this library is already used by the project)
 
b) Align the cassandra-stress CLI options with those in CQLSH, 
 
{quote}For example, using the new syntax like CQLSH:
{quote}
 

cassandra-stress -username foo -password bar
{quote}
and replacing the old syntax:
{quote}

cassandra-stress -mode username=foo and password=bar
 
This will simplify and unify the code base, eliminate code and reduce the 
confusion between similar named classes such as 
org.apache.cassandra.stress.settings.\{Option, OptionsMulti, OptionsSimple} and 
org.apache.commons.cli.{Option, OptionGroup, Options)
 

Note: documentation will need to be updated as well


> Update to cassandra-stress to use Apache Commons CLI
> 
>
> Key: CASSANDRA-18661
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18661
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Tool/stress
>Reporter: Brad Schoening
>Priority: Normal
>
> The Apache Commons CLI library provides an API for parsing command line 
> options with the package org.apache.commons.cli and this is already used by a 
> dozen of existing Cassandra utilities including:
> {quote}SSTableMetadataViewer, StandaloneScrubber, StandaloneSplitter, 
> SSTableExport, BulkLoader, and others.
> {quote}
> However, cassandra-stress is an outlier which uses its own custom classes to 
> parse command line options with classes such as OptionsSimple.  In addition, 
> the options syntax for username, password, and others are not aligned with 
> the format used by CQLSH.
>  
> Currently, there are > 5K lines of code in 'settings' which appears to just 
> process command line ars.
> This suggestion is to:
>  
> a) Upgrade cassandra-stress to use Apache Commons CLI (no new dependencies 
> are required as this library is already used by the project)
>  
> b) Align the cassandra-stress CLI options with those in CQLSH, 
>  
> {quote}For example, using the new syntax like CQLSH:
> {quote}
>  
> cassandra-stress -username foo -password bar
> {quote}and replacing the old syntax:
> {quote}
> cassandra-stress -mode username=foo and password=bar
>  
> This will simplify and unify the code base, eliminate code and reduce the 
> confusion between similar named classes such as 
> org.apache.cassandra.stress.settings.\{Option, OptionsMulti, OptionsSimple} 
> and org.apache.commons.cli.{Option, OptionGroup, Options)
>  
> Note: documentation will need to be updated as well



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (CASSANDRA-18661) Update to cassandra-stress to use Apache Commons CLI

2023-07-11 Thread Brad Schoening (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-18661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brad Schoening updated CASSANDRA-18661:
---
Change Category: Operability
 Complexity: Normal
 Status: Open  (was: Triage Needed)

> Update to cassandra-stress to use Apache Commons CLI
> 
>
> Key: CASSANDRA-18661
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18661
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Tool/stress
>Reporter: Brad Schoening
>Priority: Normal
>
> The Apache Commons CLI library provides an API for parsing command line 
> options with the package org.apache.commons.cli and this is already used by a 
> dozen of existing Cassandra utilities including:
> {quote}SSTableMetadataViewer, StandaloneScrubber, StandaloneSplitter, 
> SSTableExport, BulkLoader, and others.
> {quote}
> However, cassandra-stress is an outlier which uses its own custom classes to 
> parse command line options with classes such as OptionsSimple.  In addition, 
> the options syntax for username, password, and others are not aligned with 
> the format used by CQLSH.
>  
> This suggestion is to:
>  
> a) Upgrade cassandra-stress to use Apache Commons CLI (no new dependencies 
> are required as this library is already used by the project)
>  
> b) Align the cassandra-stress CLI options with those in CQLSH, 
>  
> {quote}For example, using the new syntax like CQLSH:
> {quote}
>  
> cassandra-stress -username foo -password bar
> {quote}
> and replacing the old syntax:
> {quote}
> cassandra-stress -mode username=foo and password=bar
>  
> This will simplify and unify the code base, eliminate code and reduce the 
> confusion between similar named classes such as 
> org.apache.cassandra.stress.settings.\{Option, OptionsMulti, OptionsSimple} 
> and org.apache.commons.cli.{Option, OptionGroup, Options)
>  
> Note: documentation will need to be updated as well



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org



[jira] [Updated] (CASSANDRA-18661) Update to cassandra-stress to use Apache Commons CLI

2023-07-11 Thread Brad Schoening (Jira)


 [ 
https://issues.apache.org/jira/browse/CASSANDRA-18661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brad Schoening updated CASSANDRA-18661:
---
Description: 
The Apache Commons CLI library provides an API for parsing command line options 
with the package org.apache.commons.cli and this is already used by a dozen of 
existing Cassandra utilities including:
{quote}SSTableMetadataViewer, StandaloneScrubber, StandaloneSplitter, 
SSTableExport, BulkLoader, and others.
{quote}
However, cassandra-stress is an outlier which uses its own custom classes to 
parse command line options with classes such as OptionsSimple.  In addition, 
the options syntax for username, password, and others are not aligned with the 
format used by CQLSH.
 
This suggestion is to:
 
a) Upgrade cassandra-stress to use Apache Commons CLI (no new dependencies are 
required as this library is already used by the project)
 
b) Align the cassandra-stress CLI options with those in CQLSH, 
 
{quote}For example, using the new syntax like CQLSH:
{quote}
 

cassandra-stress -username foo -password bar
{quote}
and replacing the old syntax:
{quote}

cassandra-stress -mode username=foo and password=bar
 
This will simplify and unify the code base, eliminate code and reduce the 
confusion between similar named classes such as 
org.apache.cassandra.stress.settings.\{Option, OptionsMulti, OptionsSimple} and 
org.apache.commons.cli.{Option, OptionGroup, Options)
 

Note: documentation will need to be updated as well

  was:
The Apache Commons CLI library provides an API for parsing command line options 
with the package org.apache.commons.cli and this is already used by a dozen of 
existing Cassandra utilities including:
{quote}SSTableMetadataViewer, StandaloneScrubber, StandaloneSplitter, 
SSTableExport, BulkLoader, and others.{quote}
However, cassandra-stress is an outlier which uses its own custom classes to 
parse command line options with classes such as OptionsSimple.  In addition, 
the options syntax for username, password, and others are not aligned with the 
format used by CQLSH.
 
This suggestion is to:
 
a) Upgrade cassandra-stress to use Apache Commons CLI (no new dependencies are 
required as this library is already used by the project)
 
b) Align the cassandra-stress CLI options with those in CQLSH, 
 
{quote}For example, using the new syntax like CQLSH:{quote}
{quote}{quote}cassandra-stress -username foo -password bar{quote}
and replacing the old syntax:{quote}
{quote}{quote}cassandra-stress -mode username=foo and password=bar{quote}{quote}
 
This will simplify and unify the code base, eliminate code and reduce the 
confusion between similar named classes such as 
org.apache.cassandra.stress.settings.\{Option, OptionsMulti, OptionsSimple} and 
org.apache.commons.cli.{Option, OptionGroup, Options)
 


> Update to cassandra-stress to use Apache Commons CLI
> 
>
> Key: CASSANDRA-18661
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18661
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Tool/stress
>Reporter: Brad Schoening
>Priority: Normal
>
> The Apache Commons CLI library provides an API for parsing command line 
> options with the package org.apache.commons.cli and this is already used by a 
> dozen of existing Cassandra utilities including:
> {quote}SSTableMetadataViewer, StandaloneScrubber, StandaloneSplitter, 
> SSTableExport, BulkLoader, and others.
> {quote}
> However, cassandra-stress is an outlier which uses its own custom classes to 
> parse command line options with classes such as OptionsSimple.  In addition, 
> the options syntax for username, password, and others are not aligned with 
> the format used by CQLSH.
>  
> This suggestion is to:
>  
> a) Upgrade cassandra-stress to use Apache Commons CLI (no new dependencies 
> are required as this library is already used by the project)
>  
> b) Align the cassandra-stress CLI options with those in CQLSH, 
>  
> {quote}For example, using the new syntax like CQLSH:
> {quote}
>  
> cassandra-stress -username foo -password bar
> {quote}
> and replacing the old syntax:
> {quote}
> cassandra-stress -mode username=foo and password=bar
>  
> This will simplify and unify the code base, eliminate code and reduce the 
> confusion between similar named classes such as 
> org.apache.cassandra.stress.settings.\{Option, OptionsMulti, OptionsSimple} 
> and org.apache.commons.cli.{Option, OptionGroup, Options)
>  
> Note: documentation will need to be updated as well



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org