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

Sean Busbey commented on ACCUMULO-1494:
---------------------------------------

Current work around:

{noformat}
$ ./bin/accumulo jar /path/to/example.jar com.example.ExampleMain --foo bar
  Hello World! foo is 'bar'
{noformat}

becomes 

{noformat}
$ java -cp "/path/to/example.jar:`./bin/accumulo classpath | tail -n +2 | xargs 
| sed -e 's/ /:/g'`" com.example.ExampleMain --foo bar
  Hello World! foo is 'bar'
{noformat}
                
> add a "run user jar" command to accumulo start script
> -----------------------------------------------------
>
>                 Key: ACCUMULO-1494
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1494
>             Project: Accumulo
>          Issue Type: Bug
>          Components: start
>            Reporter: Sean Busbey
>            Priority: Minor
>              Labels: newbie
>
> Rather than suggesting users run a client by adding their client jars to 
> lib/ext (ref: 
> [1.4|http://accumulo.apache.org/1.4/user_manual/Writing_Accumulo_Clients.html],
>  
> [1.5|http://accumulo.apache.org/1.5/accumulo_user_manual.html#_writing_accumulo_clients])
>  we should provide an equivalent to the [hadoop jar 
> command|http://hadoop.apache.org/docs/stable/commands_manual.html#jar].
> {noformat}
> $ ./bin/accumulo jar --help
> usage: jar <jar | -?> [mainClass] [args]
> Jar - Run Jar with Apache Accumulo
>   -?,--help          display this help
> {noformat}
> Like the hadoop jar command, if the jar manifest defines a mainClass, it 
> should use it. Otherwise, it should use the command line provided one.

--
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

Reply via email to