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 E07169BFC for ; Mon, 18 Jun 2012 14:25:39 +0000 (UTC) Received: (qmail 88304 invoked by uid 500); 18 Jun 2012 14:25:39 -0000 Delivered-To: apmail-incubator-chukwa-user-archive@incubator.apache.org Received: (qmail 88254 invoked by uid 500); 18 Jun 2012 14:25:39 -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 88246 invoked by uid 99); 18 Jun 2012 14:25:39 -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 14:25:39 +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 dengyule@gmail.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pb0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 14:25:30 +0000 Received: by pbbrq2 with SMTP id rq2so7835945pbb.6 for ; Mon, 18 Jun 2012 07:25:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer; bh=XRpXTY0hrN2/lqhF0lFKX6aNZSGMYuE3GRGliN+55S8=; b=jXnifilMCIhWiOtjN2j4AGCDDCEJPHtUnSR/P09lQa+o8t43YBqxL19kSuDi+bCZpw mR0CYsB07vABco5FtqTJXh9dC4o85+Q/MX6mWF7DVIY3zxXKkRd7xxPb7kCbddhApA7A vCvLrhd7wfnKWFAwR+/pOXriUXBgqAjo83hA567psT2LgR/s0P/6Ez67LsmQRplCRuPn 4hQFu1UC3ARb6IvijAtegSwSCqBH8nPdAvdodgz+l1ERqbvc/xRiQ5IkrW22aMrLcK0R TX3/GV6DEIks2r85YNaAnsjEXsahFrhPNvRsexEvechnpnk0fCwk5P/ZSI28pwSNECgu 3vfQ== Received: by 10.68.213.7 with SMTP id no7mr657569pbc.3.1340029509097; Mon, 18 Jun 2012 07:25:09 -0700 (PDT) Received: from [10.3.135.208] ([115.236.9.80]) by mx.google.com with ESMTPS id wk9sm13125283pbc.75.2012.06.18.07.25.06 (version=SSLv3 cipher=OTHER); Mon, 18 Jun 2012 07:25:08 -0700 (PDT) Subject: About the hicc start in eclipse From: RainerDun To: chukwa-user@incubator.apache.org Content-Type: multipart/alternative; boundary="=-XpduYtZV3P+8uzBFF0ij" Date: Mon, 18 Jun 2012 22:25:01 +0800 Message-ID: <1340029501.14274.7.camel@rainerdun-K42JE> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 --=-XpduYtZV3P+8uzBFF0ij Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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: chukwaConfis /home/rainerdun/project/chukwa-0.5.0/conf 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.0/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-0.5.0/var/run/hicc.pid 12/06/18 21:01:35 ERROR util.PidFile: Delete pid filefailed, /home/rainerdun/project/chukwa-0.5.0/var/run/hicc.pid In getResourceListing("descriptors") method : public List getResourceListing(String path) throws URISyntaxException, IOException { ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); URL dirURL = contextClassLoader.getResource(path); if (dirURL == null) { dirURL = contextClassLoader.getResource(path); } if (dirURL.getProtocol().equals("jar")) { ..... } Call dirURL.getProtocol(),My result is 'file',but not 'jar' 。i don't know how and which this 'jar' to load to the classpath in the if condition(dirURL.getProtocol().equals("jar")) ,.but for the error tips, i have already set the parameter as the according to the official document。so please tell me some advices about this problem 。very appreciated... --=-XpduYtZV3P+8uzBFF0ij Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit 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: chukwaConfis /home/rainerdun/project/chukwa-0.5.0/conf
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.0/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-0.5.0/var/run/hicc.pid
12/06/18 21:01:35 ERROR util.PidFile: Delete pid filefailed, /home/rainerdun/project/chukwa-0.5.0/var/run/hicc.pid

In  getResourceListing("descriptors")  method :
public List<String> getResourceListing(String path) throws
URISyntaxException, IOException {
    ClassLoader contextClassLoader =
Thread.currentThread().getContextClassLoader();

    URL dirURL = contextClassLoader.getResource(path);

    if (dirURL == null) {
      dirURL = contextClassLoader.getResource(path);
       
    }
    if (dirURL.getProtocol().equals("jar")) {
    .....

   }

Call dirURL.getProtocol(),My result is 'file',but not 'jar' 。i don't know how and which this  'jar' to load to the classpath in the if condition(dirURL.getProtocol().equals("jar")) ,.but for the error
tips, i have already set the parameter as the  according to the official document。so please tell me some advices about this problem 。very appreciated... --=-XpduYtZV3P+8uzBFF0ij--