Return-Path: X-Original-To: apmail-incubator-chukwa-user-archive@www.apache.org Delivered-To: apmail-incubator-chukwa-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D87BAD338 for ; Mon, 18 Jun 2012 18:16:21 +0000 (UTC) Received: (qmail 57592 invoked by uid 500); 18 Jun 2012 18:16:21 -0000 Delivered-To: apmail-incubator-chukwa-user-archive@incubator.apache.org Received: (qmail 57528 invoked by uid 500); 18 Jun 2012 18:16:21 -0000 Mailing-List: contact chukwa-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-user@incubator.apache.org Delivered-To: mailing list chukwa-user@incubator.apache.org Received: (qmail 57521 invoked by uid 99); 18 Jun 2012 18:16:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 18:16:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of afathalla@gmail.com designates 74.125.83.47 as permitted sender) Received: from [74.125.83.47] (HELO mail-ee0-f47.google.com) (74.125.83.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 18:16:14 +0000 Received: by eekd49 with SMTP id d49so1724792eek.6 for ; Mon, 18 Jun 2012 11:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=WQceNBT+Sw74ntBTPbTpdX0VkoGWMiNg75iBUe9F73g=; b=i9kAs46L2l27jlFsPrf2SpiHiI8BQk8CID52C+hIpvwi5ODW+Alty8IXyMFBrc1mpc aBJeElibEcyK2xvawjZ3nc0GaYXLIEIfY1n8mQtzsuQXCIgxsKzNvBmJmkLh/CAV2tbu uN2kiXWrcjoCAHNjZr8dv5WjBXanKeTX+S8i7lKGjO203op0SfC2vmTRMtSjmBmUMA6j oBC2HpmeNBTdUZjEuBWl3UUbNsIargAQ42napG0C2IQg/HM39utuvOVM1/l2H/DHSy7e NC4/+wxwGiApKWnVYCu+cLxEzWbTB4f/1JUQZ5tCaDmr2h+IJfPlTaHkxGsW5/+hFmOg pIOg== MIME-Version: 1.0 Received: by 10.14.37.199 with SMTP id y47mr3728695eea.111.1340043354070; Mon, 18 Jun 2012 11:15:54 -0700 (PDT) Received: by 10.14.33.143 with HTTP; Mon, 18 Jun 2012 11:15:53 -0700 (PDT) In-Reply-To: <1340028175.14161.0.camel@rainerdun-K42JE> References: <1340028175.14161.0.camel@rainerdun-K42JE> Date: Mon, 18 Jun 2012 21:15:53 +0300 Message-ID: Subject: Re: About the hicc start in eclipse From: Ahmed Fathalla To: chukwa-user@incubator.apache.org Content-Type: multipart/alternative; boundary=bcaec521558f1a608604c2c3281a --bcaec521558f1a608604c2c3281a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Are you sure you configured HDFS correctly sa mentioned in the documentation? On Mon, Jun 18, 2012 at 4:02 PM, RainerDun wrote: > hello : > I just started learning chukwa, and i want to build the chukwa source > code in eclipse ,but when i run the > org.apache.hadoop.chukwa.hicc.HiccWebServer to start the hicc service . > appeared some the following error tips: > 12/06/18 21:01:34 INFO conf.ChukwaConfiguration: chukwaConf > is /home/rainerdun/project/chukwa-incubating-0.5.0/etc/chukwa/ > 12/06/18 21:01:35 INFO hicc.HiccWebServer: Initializing HICC Datastore. > 12/06/18 21:01:35 INFO hicc.HiccWebServer: > file:/home/rainerdun/workspace/chukwa-0.5/bin/descriptors > 12/06/18 21:01:35 ERROR hicc.HiccWebServer: HDFS unavailable, check > configuration in chukwa-env.sh. > 12/06/18 21:01:35 ERROR util.PidFile: Delete pid file, No such file or > directory: /home/rainerdun/project/chukwa-incubating-0.5.0/var/run/hicc.p= id > 12/06/18 21:01:35 ERROR util.PidFile: Delete pid file > failed, /home/rainerdun/project/chukwa-incubating-0.5.0/var/run/hicc.pid > > In getResourceListing("descriptors") method > public List getResourceListing(String path) throws > URISyntaxException, IOException { > ClassLoader contextClassLoader =3D > Thread.currentThread().getContextClassLoader(); > > URL dirURL =3D contextClassLoader.getResource(path); > > if (dirURL =3D=3D null) { > dirURL =3D contextClassLoader.getResource(path); > > } > if (dirURL.getProtocol().equals("jar")) { > ..... > > } > > Call dirURL.getProtocol()=EF=BC=8CMy result is 'file',but not 'jar' =E3= =80=82i don't > know how and which this 'jar' to load to the classpath in the if > condition(dirURL.getProtocol().equals("jar")=EF=BC=89 =EF=BC=8C.but for t= he error > tips, i have already set the parameter as the according to the official > document=E3=80=82so please tell me some advices about this problem =E3=80= =82very > appreciated... > > --=20 Ahmed Fathalla --bcaec521558f1a608604c2c3281a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Are you sure you configured HDFS correctly sa mentioned in= the documentation?

On Mon, Jun 18, 2012 = at 4:02 PM, RainerDun <dengyule@gmail.com> wrote:
hello :
=C2=A0I just started learning chukwa, and i want to build the chukwa sourc= e
code in eclipse ,but when i run the
org.apache.hadoop.chukwa.hicc.HiccWebServer to start the hicc service .
appeared some the following error tips:
12/06/18 21:01:34 INFO conf.ChukwaConfiguration: chukwaConf
is /home/rainerdun/project/chukwa-incubating-0.5.0/etc/chukwa/
12/06/18 21:01:35 INFO hicc.HiccWebServer: Initializing H= ICC Datastore.
12/06/18 21:01:35 INFO hicc.HiccWebServer:
file:/home/rainerdun/workspace/chukwa-0.5/bin/descriptors
12/06/18 21:01:35 ERROR hicc.HiccWebServer: HDFS unavaila= ble, check
configuration in chukwa-env.sh.
12/06/18 21:01:35 ERROR util.PidFile: Delete pid file, No such file or
directory: /home/rainerdun/project/chukwa-incubating-0.5.0/var/run/hi= cc.pid
12/06/18 21:01:35 ERROR util.PidFile: Delete pid file
failed, /home/rainerdun/project/chukwa-incubating-0.5.0/var/run/hicc.= pid

=C2=A0In =C2=A0getResourceListing("descriptors") =C2=A0method
=C2=A0public List<String> getResourceListing(String path) throws
URISyntaxException, IOException {
=C2=A0 =C2=A0ClassLoader contextClassLoader =3D
Thread.currentThread().getContextClassLoader();

=C2=A0 =C2=A0URL dirURL =3D contextClassLoader.getResource(path);

=C2=A0 =C2=A0if (dirURL =3D=3D null) {
=C2=A0 =C2=A0 =C2=A0dirURL =3D contextClassLoader.getResource(path);

=C2=A0 =C2=A0}
=C2=A0 =C2=A0if (dirURL.getProtocol().equals("jar")) {
=C2=A0 =C2=A0.....

=C2=A0 }

Call dirURL.getProtocol()=EF=BC=8CMy result is 'file',but not '= jar' =E3=80=82i don't
know how and which this =C2=A0'jar' to load to the classpath in the= if
condition(dirURL.getProtocol().equals("jar")=EF=BC=89 =EF=BC=8C.b= ut for the error
tips, i have already set the parameter as the =C2=A0according to the offici= al
document=E3=80=82so please tell me some advices about this problem =E3=80= =82very
appreciated...




--
= Ahmed Fathalla
--bcaec521558f1a608604c2c3281a--