accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-3093) Shell scan command does not find formatter
Date Wed, 03 Sep 2014 19:27:52 GMT

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

Christopher Tubbs commented on ACCUMULO-3093:
---------------------------------------------

So, after working through the workaround to set the CLASSPATH environment variable to include
the required formatter, I've become convinced that the best short-term solution is probably
to apply the solution described in the proposed patch (which is, to make the shell context-aware
when loading formatters... and maybe scan iterators?).

The reason is that adding the formatter to the CLASSPATH doesn't immediately work, because
of 1) ACCUMULO-3099, and 2) the system class loader loads CLASSPATH items at the top of the
classpath hierarchy, and the formatter interface is in the core jar, which by default is further
down, loaded by Accumulo's internal custom classloader, which reads the accumulo-site.xml
file for classpath items. This forces the user to add the core jar, and all its dependencies
to the CLASSPATH environment variable also.

The long term solution may be to separate out classloading from within Accumulo (with a provided
classloader to use with -Djava.system.class.loader in scripts), and simplify things for users,
so that setting CLASSPATH works as expected. The simplest and quickest fix seems to implement
context-aware shell solution.

> Shell scan command does not find formatter
> ------------------------------------------
>
>                 Key: ACCUMULO-3093
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3093
>             Project: Accumulo
>          Issue Type: Bug
>          Components: shell
>    Affects Versions: 1.6.0
>         Environment: Accumulo 1.6.1-SNAPSHOT
>            Reporter: Dave Marion
>            Assignee: Dave Marion
>         Attachments: ACCUMULO-3093-1.patch
>
>
> The Scan command is not using the ContextManager to find the specified formatter class.
With a table using context classpath the following fails:
> {code}
> scan -t <table> -fm <formatterClass>
> {code}
> It also fails if the formatter is configured on table and a scan is issued.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message