Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Chukwa >> mail # user >> About the hicc start  in eclipse


Copy link to this message
-
Re: About the hicc start in eclipse
Thank you for your reply.
   About the HADOOP_CONF_DIR .  I have already set in the /etc/profile and
chukwa-env.sh.  I Re-add the following statement in this Class to load  the
  chukwa-env.sh:

   chukwaConf.addResource(new
Path("/home/rainerdun/project/chukwa-0.5.0/conf"));

   And  now  i can get the  chukwaHdfs="hdfs://localhost:9000"  from
 config.get("fs.default.name") method .but  in the if
(dirURL.getProtocol().equals("jar")) statement . still can not load the jar
file. I do not know how to produce this jar file 。
  can you tell me some details about this jar file?   Thanks again。

On Tue, Jun 19, 2012 at 4:13 AM, Eric Yang <[EMAIL PROTECTED]> wrote:

> Hi Rainer,
>
> Make sure that HADOOP_CONF_DIR is on the classpath of the run
> configuration.
>
> regards,
> Eric
>
> On Mon, Jun 18, 2012 at 11:15 AM, Ahmed Fathalla <[EMAIL PROTECTED]>
> wrote:
> > Are you sure you configured HDFS correctly sa mentioned in the
> > documentation?
> >
> >
> > On Mon, Jun 18, 2012 at 4:02 PM, RainerDun <[EMAIL PROTECTED]> 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.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
> >>
> >>  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' �
� 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...
> >>
> >
> >
> >
> > --
> > Ahmed Fathalla
>

--
这个世界不相信眼泪
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB