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

Madhan Neethiraj commented on ATLAS-2641:
-----------------------------------------

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

> Storm Hook: Needs commons-collection to be Packaged
> ---------------------------------------------------
>
>                 Key: ATLAS-2641
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2641
>             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 atlas-application.properties in 
> classpath 4503 [main] INFO o.a.a.ApplicationProperties - Loading 
> atlas-application.properties from 
> jar:file:/tmp/40df25e04e3811e8a05f0242ac1b1cc3.jar!/atlas-application.properties
>  log4j:WARN No appenders could be found for logger 
> (org.apache.atlas.ApplicationProperties). log4j:WARN Please initialize the 
> log4j system properly. log4j:WARN See 
> http://logging.apache.org/log4j/1.2/faq.html#noconfig 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 index.search.map-name 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 
> org.apache.atlas.security.InMemoryJAASConfiguration.init(InMemoryJAASConfiguration.java:195)
>  at 
> org.apache.atlas.security.InMemoryJAASConfiguration.init(InMemoryJAASConfiguration.java:184)
>  at org.apache.atlas.ApplicationProperties.get(ApplicationProperties.java:88) 
> at org.apache.atlas.hook.AtlasHook.<clinit>(AtlasHook.java:65) at 
> java.lang.Class.forName0(Native Method) at 
> java.lang.Class.forName(Class.java:348) at 
> org.apache.atlas.storm.hook.StormAtlasHook.initialize(StormAtlasHook.java:78) 
> at org.apache.atlas.storm.hook.StormAtlasHook.<init>(StormAtlasHook.java:46) 
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>  at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at 
> java.lang.Class.newInstance(Class.java:442) at 
> org.apache.storm.StormSubmitter.invokeSubmitterHook(StormSubmitter.java:358) 
> at org.apache.storm.StormSubmitter.submitTopologyAs(StormSubmitter.java:275) 
> at org.apache.storm.StormSubmitter.submitTopology(StormSubmitter.java:387) at 
> org.apache.storm.flux.Flux.runCli(Flux.java:176) at 
> org.apache.storm.flux.Flux.main(Flux.java:103) Caused by: 
> java.lang.ClassNotFoundException: org.apache.commons.collections.MapUtils at 
> java.lang.ClassLoader.findClass(ClassLoader.java:530) at 
> org.apache.atlas.plugin.classloader.AtlasPluginClassLoader$MyClassLoader.findClass(AtlasPluginClassLoader.java:328)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:357) at 
> org.apache.atlas.plugin.classloader.AtlasPluginClassLoader.loadClass(AtlasPluginClassLoader.java:136)
>  ... 18 more
> {code}
> *Solution*
> Adding _commons-collection_ to _Storm Hook_ packaging seems to resolve the 
> problem. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to