accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Havanki (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-1494) add a "run user jar" command to accumulo start script
Date Thu, 19 Sep 2013 22:49:52 GMT


Bill Havanki commented on ACCUMULO-1494:

I have an implementation I'm testing out. It affects both bin/accumulo and the Main class.
Here are some features of what I have, which I should share with those interested:

* All classpath additions are still done in the bin/accumulo script, before the JVM starts.
If the jar command is used, the JAR file itself is added to the classpath. Dependencies of
the JAR can still be specified with the -add option. Also, the script looks for the Class-Path
manifest entry in the JAR, and if it finds it, it adds the dependencies listed there to the
classpath as well.
* It is optional to specify the main class according to Sean's syntax. If it isn't found,
the code assumes that the string is the first argument, and looks in the JAR manifest for
a main class as an alternative. The consequence is that the main class cannot take its own
name as its first argument unless you provide it explicitly.
* The loading of the JAR's main class is not currently restricted to looking inside the JAR
only, so you could name some Accumulo class, say, and it would accept it. This seems harmless.

If any of the above concerns anyone, please let me know!
> add a "run user jar" command to accumulo start script
> -----------------------------------------------------
>                 Key: ACCUMULO-1494
>                 URL:
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: start
>            Reporter: Sean Busbey
>            Assignee: Bill Havanki
>            Priority: Minor
>              Labels: newbie
> Rather than suggesting users run a client by adding their client jars to lib/ext (ref:
[1.4|], [1.5|])
we should provide an equivalent to the [hadoop jar command|].
> {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:

View raw message