[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Commented] (ATLAS-2641) Storm Hook: Needs commons-collection to be Packaged

    [ ] 

Madhan Neethiraj commented on ATLAS-2641:

+1 for the patch. Thanks [~ashutoshm]!

> Storm Hook: Needs commons-collection to be Packaged
> ---------------------------------------------------
>                 Key: ATLAS-2641
>                 URL:
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: trunk
>            Reporter: Ashutosh Mestry
>            Assignee: Ashutosh Mestry
>            Priority: Major
>             Fix For: trunk
>         Attachments: ATLAS-2641-Storm-hook-Added-commons-collection.patch
> _Strom Hook_ fails after deployment with following error message. 
> {code:java}
> 405 [main] INFO o.a.s.StormSubmitter - Initializing the registered ISubmitterHook [org.apache.atlas.storm.hook.StormAtlasHook] 4502 [main] INFO o.a.a.ApplicationProperties - Looking for in classpath 4503 [main] INFO o.a.a.ApplicationProperties - Loading from jar:file:/tmp/40df25e04e3811e8a05f0242ac1b1cc3.jar!/ log4j:WARN No appenders could be found for logger (org.apache.atlas.ApplicationProperties). log4j:WARN Please initialize the log4j system properly. log4j:WARN See for more info. 4544 [main] INFO o.a.a.ApplicationProperties - No graphdb backend specified. Will use 'janus' 4544 [main] INFO o.a.a.ApplicationProperties - Using storage backend 'hbase2' 4544 [main] INFO o.a.a.ApplicationProperties - Using index backend 'solr' 4544 [main] INFO o.a.a.ApplicationProperties - Setting solr-wait-searcher property 'true' 4544 [main] INFO o.a.a.ApplicationProperties - Setting property 'false' 4549 [main] INFO o.a.a.ApplicationProperties - Property (set to default) atlas.graph.cache.db-cache = true 4549 [main] INFO o.a.a.ApplicationProperties - Property (set to default) atlas.graph.cache.db-cache-clean-wait = 20 4549 [main] INFO o.a.a.ApplicationProperties - Property (set to default) atlas.graph.cache.db-cache-size = 0.5 4549 [main] INFO o.a.a.ApplicationProperties - Property (set to default) atlas.graph.cache.tx-cache.size = 15000 4549 [main] INFO o.a.a.ApplicationProperties - Property (set to default) atlas.graph.cache.tx-dirty-size = 120 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/MapUtils at at at org.apache.atlas.ApplicationProperties.get( at org.apache.atlas.hook.AtlasHook.<clinit>( at java.lang.Class.forName0(Native Method) at java.lang.Class.forName( at org.apache.atlas.storm.hook.StormAtlasHook.initialize( at org.apache.atlas.storm.hook.StormAtlasHook.<init>( at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance( at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( at java.lang.reflect.Constructor.newInstance( at java.lang.Class.newInstance( at org.apache.storm.StormSubmitter.invokeSubmitterHook( at org.apache.storm.StormSubmitter.submitTopologyAs( at org.apache.storm.StormSubmitter.submitTopology( at org.apache.storm.flux.Flux.runCli( at org.apache.storm.flux.Flux.main( Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.MapUtils at java.lang.ClassLoader.findClass( at org.apache.atlas.plugin.classloader.AtlasPluginClassLoader$MyClassLoader.findClass( at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClass( at org.apache.atlas.plugin.classloader.AtlasPluginClassLoader.loadClass( ... 18 more
> {code}
> *Solution*
> Adding _commons-collection_ to _Storm Hook_ packaging seems to resolve the problem. 

This message was sent by Atlassian JIRA