[
https://issues.apache.org/jira/browse/METRON-1230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16197525#comment-16197525
]
ASF GitHub Bot commented on METRON-1230:
----------------------------------------
Github user mmiklavc commented on a diff in the pull request:
https://github.com/apache/metron/pull/785#discussion_r143552344
--- Diff: metron-interface/metron-rest/src/main/scripts/metron-rest.sh ---
@@ -47,6 +55,15 @@ rest_jar_pattern="${METRON_HOME}/lib/metron-rest*.jar"
rest_files=( ${rest_jar_pattern} )
echo "Default metron-rest jar is: ${rest_files[0]}"
METRON_REST_CLASSPATH+=":${rest_files[0]}"
+METRON_REST_CLASSPATH+=":$PARSER_LIB"
+
+if [ -d "$PARSER_CONTRIB" ]; then
+ contrib_jar_pattern="${PARSER_CONTRIB}/*.jar"
+ contrib_list=( $contrib_jar_pattern ) # expand the glob to a list
--- End diff --
This is probably ok per our supported OS's and shells, but I don't think
this is cross platform. It does not work in ZSH, for instance.
> As a stopgap prior to METRON-777, add more simplistic sideloading of custom
> Parsers
> -----------------------------------------------------------------------------------
>
> Key: METRON-1230
> URL: https://issues.apache.org/jira/browse/METRON-1230
> Project: Metron
> Issue Type: Improvement
> Reporter: Casey Stella
>
> Until we get 777 in, it'd be nice to have a simple ability using the normal
> storm functionality to enable users to provide custom parsers without forking
> Metron. This should be done via simply creating a jar with their code (and
> bundled dependencies) and have it picked up and available to the REST Service
> (and consequently the management UI) as well as the start_parser_topology.sh
> command.
> This should be minimal movement as we have a more robust solution coming with
> METRON-777.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)