metron-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (METRON-744) Allow Stellar functions to be loaded from HDFS
Date Wed, 01 Mar 2017 16:13:45 GMT

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

ASF GitHub Bot commented on METRON-744:
---------------------------------------

Github user cestella commented on a diff in the pull request:

    https://github.com/apache/incubator-metron/pull/468#discussion_r103722138
  
    --- Diff: metron-platform/metron-common/src/main/java/org/apache/metron/common/dsl/functions/resolver/ClasspathFunctionResolver.java
---
    @@ -65,24 +72,48 @@
      *
      */
     public class ClasspathFunctionResolver extends BaseFunctionResolver {
    -
    -  /**
    -   * The key for a global property that defines one or more regular expressions
    -   * that specify what should be included when searching for Stellar functions.
    -   */
    -  public static final String STELLAR_SEARCH_INCLUDES_KEY = "stellar.function.resolver.includes";
    -
    -  /**
    +  public enum Config {
    +    STELLAR_VFS_PATHS("stellar.function.paths", ""),
    +    /**
    +     * The key for a global property that defines one or more regular expressions
    +     * that specify what should be included when searching for Stellar functions.
    +     */
    +    STELLAR_SEARCH_INCLUDES_KEY("stellar.function.resolver.includes", ""),
    --- End diff --
    
    What would you like to rename it to?  It seems properly named to me, but I'm open to other
names, for sure.  I do intend on documenting it, for sure.


> Allow Stellar functions to be loaded from HDFS
> ----------------------------------------------
>
>                 Key: METRON-744
>                 URL: https://issues.apache.org/jira/browse/METRON-744
>             Project: Metron
>          Issue Type: New Feature
>            Reporter: Casey Stella
>
> The benefit of Stellar is that adding new functionality is as simple as providing a Jar.
 This enables people who want to integrate with Metron to easy add enrichments or other functionality.
 The snag currently with this is that we provide a single jar, so all stellar functions that
we have available must be dependencies of the main jar that drives the topology plus what
local directories we can configure via the storm configs.  This makes the process of adding
3rd party jars not as easy as it could be.
> Adjust the the following to additionally load classes from a location in HDFS /apps/metron/stellar
using something like accumulo ( https://accumulo.apache.org/blog/2014/05/03/accumulo-classloader.html)
> * Profiler topology
> * Parser topology
> * Enrichment topology
> * Enrichment Flat file loader
> * Enrichment MR loader



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message