accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Vines (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-745) Use a CLI library consistently to parse parameters in all utilities.
Date Wed, 02 Jan 2013 16:48:12 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13542227#comment-13542227
] 

John Vines commented on ACCUMULO-745:
-------------------------------------

{code}
11:40:36 runTest (simple.dynamicThreadPools.DynamicThreadPools) ............. ERROR:test.auto:This
looks like a stack trace: Thread "org.apache.accumulo.server.test.TestIngest" died null
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.accumulo.start.Main$1.run(Main.java:90)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.RuntimeException: org.apache.commons.cli.UnrecognizedOptionException:
Unrecognized option: --debug
	at org.apache.accumulo.server.test.TestIngest.parseArgs(TestIngest.java:165)
	at org.apache.accumulo.server.test.TestIngest.main(TestIngest.java:256)
	... 6 more
Caused by: org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: --debug
	at org.apache.commons.cli.Parser.processOption(Parser.java:363)
	at org.apache.commons.cli.Parser.parse(Parser.java:199)
	at org.apache.commons.cli.Parser.parse(Parser.java:85)
	at org.apache.accumulo.server.test.TestIngest.parseArgs(TestIngest.java:162)
	... 7 more
{code}
                
> Use a CLI library consistently to parse parameters in all utilities.
> --------------------------------------------------------------------
>
>                 Key: ACCUMULO-745
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-745
>             Project: Accumulo
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.4.1
>            Reporter: Eric Newton
>            Assignee: Eric Newton
>            Priority: Trivial
>              Labels: newbie
>             Fix For: 1.5.0
>
>
> In a few utilities, the command-line parsing is pretty lazy.  There's no usage, just
an NPE if you don't provide all the magic options on the command-line.  In particular, Initialize
doesn't use an off-the-shelf library for command-line parsing, and it really should.
> See ACCUMULO-744.
> In addition, many command-line utilities can and should be able to read accumulo-site.xml,
and do not need to provide username/password/instance/zookeeper information by default.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message