Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8748A200BA3 for ; Thu, 6 Oct 2016 00:56:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 85E35160AEA; Wed, 5 Oct 2016 22:56:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7A9D3160ADE for ; Thu, 6 Oct 2016 00:56:53 +0200 (CEST) Received: (qmail 18552 invoked by uid 500); 5 Oct 2016 22:56:52 -0000 Mailing-List: contact user-help@gearpump.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@gearpump.incubator.apache.org Delivered-To: mailing list user@gearpump.incubator.apache.org Received: (qmail 18540 invoked by uid 99); 5 Oct 2016 22:56:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2016 22:56:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 3ED5CC0D64 for ; Wed, 5 Oct 2016 22:56:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.129 X-Spam-Level: ** X-Spam-Status: No, score=2.129 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 7fNc9SstZlXS for ; Wed, 5 Oct 2016 22:56:50 +0000 (UTC) Received: from mail-yw0-f176.google.com (mail-yw0-f176.google.com [209.85.161.176]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 74DD55FB7C for ; Wed, 5 Oct 2016 22:56:49 +0000 (UTC) Received: by mail-yw0-f176.google.com with SMTP id t193so2317397ywc.2 for ; Wed, 05 Oct 2016 15:56:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=DkqHbEKpSnBLjVas0+wKkOu1UxP+vL6LcWDaMhyqSbg=; b=Fd8KuYGlBGVV2P1mqzsHRgx+hHoV2ZKFk5DBzg1kQGPb5fyFmXjOfFq+UWz4IF6BJc 9wejY9Uqe7CPkWP4/lkZgD+zEUaNnfEehLPbebD8f/Pt428FLkFj6z3zsvx4rOALvv/u jAGnSl0uCK6gGUX68AUAKjAEXjTASVJBg9xPk6VXBHp3rBuDB7vdNNrk5MS5XKSNVwxC ZTmO2XuA3sj5sOaXD9ccwCDbuPJdUoaJmG/+5Xo9xPPPWwMuYKEBMlPGoLLhhsLeAPzu m+pDZsiu+YiiQvJwdcYgqIlmVr864WyLPm6a6JGHTReOJkymRPy+vScMbSc2L7+aqjbo Qzwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=DkqHbEKpSnBLjVas0+wKkOu1UxP+vL6LcWDaMhyqSbg=; b=CPK0VbsFS4thm6kl8VknQJg0eiUFGLEa6BeOPehsHZWTZaUhrRo4/RLnIGU8VY4kLX 1FLfg6hNZ7OhxicF1HoY2j4Rxoe9qOSy7tOS7XK+zzohC+3hKsVK2XSByWgFlFbpbfZV y74YXw8Qhf+p3FrUboBr6onfKDto3ylquOXCmeufY9AqfMV2ehM7xYjYEp5KsmZcq5Av KOjT1myQtynsh4HO6AiQsTHUeW/45ONgyHi37qYnoggKn9juyte8QskvgYeLdALsfHHD I28JDoWNY9eVM9X0mGcRNAl5UW+wBkwG1XApDEM0XXUxHMkzE1OP/4QeUzIRe7/YL2Vk lMAw== X-Gm-Message-State: AA6/9Rm8/iUoU2eEvPEOPfACcFFagpyIj55PM812l5MgpPo8UbA8sAYKJsmfcIN8E79rVFJ5DA1DnSdwH7YRGg== X-Received: by 10.129.154.74 with SMTP id r71mr166734ywg.294.1475708208393; Wed, 05 Oct 2016 15:56:48 -0700 (PDT) MIME-Version: 1.0 References: <17e3ada2-dfd7-24dc-cea9-058ac8d190d3@thedatateam.in> In-Reply-To: From: Manu Zhang Date: Wed, 05 Oct 2016 22:56:38 +0000 Message-ID: Subject: Re: gearpump issue with MetricsRegistry class not found : Guess missing shaded jars To: user@gearpump.incubator.apache.org Content-Type: multipart/alternative; boundary=94eb2c0b7eaa8dce48053e2617a7 archived-at: Wed, 05 Oct 2016 22:56:54 -0000 --94eb2c0b7eaa8dce48053e2617a7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable EmbeddedCluster is in "daemon" so you need to add "gearpump-daemon" dependency. Thanks, Manu Ganesh =E4=BA=8E2016=E5=B9=B410=E6=9C=885=E6=97=A5= =E5=91=A8=E4=B8=89 =E4=B8=8B=E5=8D=8810:09=E5=86=99=E9=81=93=EF=BC=9A > Thanks Manu, yes the classifier worked > > > While i was trying to run the wordCount example ,it hit the issue with th= e > 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" % gearpu= mpVersion classifier "assembly" > > Thanks, > Manu > > > > On Wed, Oct 5, 2016 at 2:45 PM Ganesh wrote: > > Hi Manu, > > > Thanks for the response ,i see the assembly jars in > https://repository.cloudera.com/artifactory/cloudera-repos/org/apache/gea= rpump/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 =E4=BA=8E2016=E5=B9=B410=E6=9C=884=E6=97=A5= =E5=91=A8=E4=BA=8C =E4=B8=8B=E5=8D=889:07=E5=86=99=E9=81=93=EF=BC=9A > > 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.(Metrics.scala:33) > at > org.apache.gearpump.metrics.Metrics$DummyMetrics.(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 =3D "0.8.1"libraryDependencies ++=3D Seq( > "org.apache.gearpump" % "gearpump-core_2.11" % = gearpumpVersion, > "org.apache.gearpump" % "gearpump-streaming_2.11" = % gearpumpVersion, > "org.apache.gearpump" % "gearpump-shaded-metrics-graphi= te_2.11" % gearpumpVersion > ) > > > > > Thanks/Ganesh > > > > --94eb2c0b7eaa8dce48053e2617a7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

EmbeddedCluster is in "daemon" so you need to add= "gearpump-daemon" dependency.

Thanks,
Manu


Ganesh <ganesh@thedatateam.in>=E4=BA=8E2016=E5=B9= =B410=E6=9C=885=E6=97=A5=E5=91=A8=E4=B8=89 =E4=B8=8B=E5=8D=8810:09=E5=86=99= =E9=81=93=EF=BC=9A
=20 =20 =20

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=C2=A0 wordCount example.<= br class=3D"gmail_msg">

Thanks/Ganesh


On 05-10= -2016 17:35, Manu Zhang wrote:
It should be in maven repos.

I think the shaded library needs a "a= ssembly" classifier, like

"org.apache.gearpump" %  "gearpump-shad=
ed-metrics-graphite_2.11" % gearpumpVersion classifier "as=
sembly"

          
Thanks,
Manu


On Wed, Oct 5, 2016 at 2:45 PM= Ganesh <ganesh@thedatateam.in> wrote:

Hi Manu,


Thanks for the response ,i see the assembly jars in https://repository.cloudera.com/artifactory/cl= oudera-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 jus= t been published(moved) to maven repo. Do you have any previous shaded library cached locally ?

Thanks,
Manu


Ganesh <ganesh@= thedatateam.in>=E4=BA=8E2016=E5=B9=B410=E6=9C=884=E6=97=A5=E5=91=A8= =E4=BA=8C =E4=B8=8B=E5=8D=889:07=E5=86=99=E9=81=93=EF=BC=9A
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=C2=A0 :=

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/gearpump/codahale/metrics/MetricRegistry
=C2=A0=C2=A0=C2=A0 at org.apache.gearpump.metrics.Metrics.<init>(Metric= s.scala:33)
=C2=A0=C2=A0=C2=A0 at org.apache.gearpump.metrics.Metrics$DummyMetrics.<init>(Metrics.scala= :136)
=C2=A0=C2=A0=C2=A0 at org.apache.gearpump.metrics.Metrics$.createExtension(Me= trics.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 gea=
rpumpVersion =3D "0.8.1"

=
libraryDependencies ++=3D Seq(
  "=
org.apache.gearpump"                %  "gearpump-core_2.11"  =
       % gearpumpVersion,
  "=
org.apache.gearpump"                %  "gearpump-streaming_2.11&qu=
ot;         % gearpumpVersion,
  "=
org.apache.gearpump"                %  "gearpump-shaded-metrics-gr=
aphite_2.11"         % gearpumpVersion
 )




Thanks/Ganesh


--94eb2c0b7eaa8dce48053e2617a7--