accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony F <afc...@gmail.com>
Subject Re: shell extensions
Date Thu, 13 Feb 2014 19:26:17 GMT
Yup, noticed it was available in 1.6 too late - could have saved myself
some trouble.


On Thu, Feb 13, 2014 at 2:18 PM, dlmarion <dlmarion@comcast.net> wrote:

> I added extensions and script support in
> https://issues.apache.org/jira/browse/ACCUMULO-1399.
>
> Sent via the Samsung GALAXY S®4, an AT&T 4G LTE smartphone
>
> -------- Original message --------
> From: Anthony F <afccri@gmail.com>
> Date:02/13/2014  12:55 PM  (GMT-05:00)
> To: dev@accumulo.apache.org
> Subject: shell extensions
>
> As part of development for GeoMesa, I've found it valuable to have
> maintenance and other custom operations available at the accumulo shell.
> To support this, I have modified the Shell class to load commands defined
> as SPI META-INF/services in jars in $ACCUMULO_HOME/lib/ext.  This allows
> developers to create a jar with a file:
>
> META-INF/services/org.apache.accumulo.core.util.shell.Command
>
> which contains one Command per line such as:
>
> geomesa.core.util.shell.ListFeaturesCommand
> geomesa.core.util.shell.InitializeFeatureCommand
> geomesa.core.util.shell.IngestFeatureCommand
> geomesa.core.util.shell.OptimizeIndexCommand
> geomesa.core.util.shell.RefreshBoundsCommand
>
> I have put up a branch of the modification here:
>
> https://github.com/ccri/accumulo/tree/extensible_shell
>
> The actual code change is quite minimal but I had to pull the abstract
> Command class up into its own file so I could use the ServiceLoader to load
> Command resources.
>
> Does this sound like something that could be valuable to others?
>
> Thanks,
> Anthony
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message