gearpump-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ganesh <gan...@thedatateam.in>
Subject Re: gearpump issue with MetricsRegistry class not found : Guess missing shaded jars
Date Thu, 06 Oct 2016 17:56:10 GMT
Certainly  except for the fact that JIRA  at 
https://issues.apache.org/jira/browse/GEARPUMP doesn't let me create one :)

Not sure my id (ganesh@thedatateam.in) lets me create one .

Would you be able to help it?



Thanks/Ganesh


On 06-10-2016 20:36, Manu Zhang wrote:
>
> Sorry,  forgot to mention "gearpump-experimental-cgroup" has to be 
> excluded. I don't think this is a pleasant user experience. Could you 
> file a jira ?
>
> Thanks,
> Manu
>
>
> Ganesh <ganesh@thedatateam.in 
> <mailto:ganesh@thedatateam.in>>于2016年10月6日周四 下午1:55写道:
>
>     The problem with adding the dependency for daemon is , it doesn't
>     find a few experimental modules like :
>
>
>     [error] (*:update) sbt.ResolveException: unresolved dependency:
>     org.apache.gearpump#gearpump-experimental-cgroup_2.11;0.8.1: not found
>     [error] (*:ssExtractDependencies) sbt.ResolveException: unresolved
>     dependency:
>     org.apache.gearpump#gearpump-experimental-cgroup_2.11;0.8.1: not found
>
>     I get these modules building the whole source locally however the
>     repo seems to miss them as well
>
>     Thanks/Ganesh
>
>
>     On 06-10-2016 11:08, Manu Zhang wrote:
>>     Have you tried adding the "gearpump-daemon" dependency
>>     https://mvnrepository.com/artifact/org.apache.gearpump/gearpump-daemon_2.11/0.8.1
?
>>     If you download jar file manually and run "jar tf
>>     gearpump-daemon_2.11-0.8.1.jar| grep EmbeddedCluster" you will
>>     find the "EmbeddedCluster" class.
>>
>>     Sorry, the examples are a bit confusing.
>>
>>     Manu
>>
>>     On Thu, Oct 6, 2016 at 1:22 PM Ganesh <ganesh@thedatateam.in
>>     <mailto:ganesh@thedatateam.in>> wrote:
>>
>>         Thanks Manu !
>>
>>         Just saw that the scala DSL example in source for word count
>>         doesn't have Embedded cluster in it , i see there is one
>>         other java example that has it and reproduced the same for
>>         the DSL example, you think i could raise a PR for this ?
>>
>>         I will go though the community guidelines however for the same.
>>
>>         Thanks/Ganesh
>>
>>         On 06-10-2016 04:26, Manu Zhang wrote:
>>>
>>>         EmbeddedCluster is in "daemon" so you need to add
>>>         "gearpump-daemon" dependency.
>>>
>>>         Thanks,
>>>         Manu
>>>
>>>
>>>         Ganesh <ganesh@thedatateam.in
>>>         <mailto:ganesh@thedatateam.in>>于2016年10月5日周三
>>>         下午10:09写道:
>>>
>>>             Thanks Manu, yes the classifier worked
>>>
>>>
>>>             While i was trying to run the wordCount example ,it hit
>>>             the issue with the service locator not being present for
>>>             the JarFileStore , related to
>>>             https://issues.apache.org/jira/browse/GEARPUMP-19
>>>
>>>             However i see that 0.8.1 doesn't have EmbeddedCluster
>>>             I cloned the latest source and am able to run  wordCount
>>>             example.
>>>
>>>
>>>             Thanks/Ganesh
>>>
>>>
>>>             On 05-10-2016 17:35, Manu Zhang wrote:
>>>>             It should be in maven repos.
>>>>
>>>>             I think the shaded library needs a "assembly"
>>>>             classifier, like
>>>>
>>>>             "org.apache.gearpump" %"gearpump-shaded-metrics-graphite_2.11"
% gearpumpVersion classifier "assembly"
>>>>             Thanks,
>>>>             Manu
>>>>
>>>>
>>>>
>>>>             On Wed, Oct 5, 2016 at 2:45 PM Ganesh
>>>>             <ganesh@thedatateam.in <mailto:ganesh@thedatateam.in>>
>>>>             wrote:
>>>>
>>>>                 Hi Manu,
>>>>
>>>>
>>>>                 Thanks for the response ,i see the assembly jars in
>>>>                 https://repository.cloudera.com/artifactory/cloudera-repos/org/apache/gearpump/gearpump-shaded-metrics-graphite_2.11/0.8.1/
>>>>
>>>>
>>>>                 Any guesses on how long it might be before the rest
>>>>                 of the repos like maven get to have them ?
>>>>
>>>>
>>>>                 Thanks/Ganesh
>>>>
>>>>
>>>>                 On 05-10-2016 11:19, Manu Zhang wrote:
>>>>>
>>>>>                 The shaded library has just been published(moved)
>>>>>                 to maven repo. Do you have any previous shaded
>>>>>                 library cached locally ?
>>>>>
>>>>>                 Thanks,
>>>>>                 Manu
>>>>>
>>>>>
>>>>>                 Ganesh <ganesh@thedatateam.in
>>>>>                 <mailto:ganesh@thedatateam.in>>于2016年10月4日周二
>>>>>                 下午9:07写道:
>>>>>
>>>>>                     Hi ,
>>>>>
>>>>>                     I tried following the word count example using
>>>>>                     the below sbt, however it ends with a class
>>>>>                     not found exception stating MetricsRegistry
>>>>>                     from codahale  :
>>>>>
>>>>>                     Exception in thread "main"
>>>>>                     java.lang.NoClassDefFoundError:
>>>>>                     org/apache/gearpump/codahale/metrics/MetricRegistry
>>>>>                         at
>>>>>                     org.apache.gearpump.metrics.Metrics.<init>(Metrics.scala:33)
>>>>>                         at
>>>>>                     org.apache.gearpump.metrics.Metrics$DummyMetrics.<init>(Metrics.scala:136)
>>>>>                         at
>>>>>                     org.apache.gearpump.metrics.Metrics$.createExtension(Metrics.scala:132)
>>>>>
>>>>>                     I guess the shaded jar from codahale is placed
>>>>>                     somewhere as part of the build but am missing
>>>>>                     the same.
>>>>>
>>>>>                     Is there a dependency am missing ?Would be
>>>>>                     very helpfull if someone could help on
>>>>>                     understanding it better.
>>>>>
>>>>>                     val gearpumpVersion ="0.8.1" libraryDependencies
++=Seq(
>>>>>                        "org.apache.gearpump" %"gearpump-core_2.11" %
gearpumpVersion,
>>>>>                        "org.apache.gearpump" %"gearpump-streaming_2.11"
% gearpumpVersion,
>>>>>                        "org.apache.gearpump" %"gearpump-shaded-metrics-graphite_2.11"
% gearpumpVersion
>>>>>                       )
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>                     Thanks/Ganesh
>>>>>
>>>>
>>>
>>
>


Mime
View raw message