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 Plain View
Chukwa >> mail # user >> chukwa-0.4.0 build failed: Log4JMetricsContext is not abstract and does not override abstract method getAllRecords()


Copy link to this message
-
chukwa-0.4.0 build failed: Log4JMetricsContext is not abstract and does not override abstract method getAllRecords()
I downloaded chukwa-0.4.0 from the
http://labs.renren.com/apache-mirror//hadoop/chukwa/ mirror site.

After set the configuration parameters in conf/*, I tried to build the whole
system from source code using ant.

I encountered the following error:

    [javac]
/home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/chukwa/inputtools/log4j/Log4JMetricsContext.java:33:
org.apache.hadoop.chukwa.inputtools.log4j.Log4JMetricsContext is not
abstract and does not override abstract method getAllRecords() in
org.apache.hadoop.metrics.MetricsContext
    [javac] public class Log4JMetricsContext extends AbstractMetricsContext
{
    [javac]        ^
The full message is as follows:

Buildfile: /home/tanghongwei/chukwa-0.4.0/build.xml

ivy-init-properties-local:

ivy-init-dirs-local:

ivy-download-local:
      [get] Getting:
http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0-rc1/ivy-2.1.0-rc1.jar
      [get] To: /home/tanghongwei/chukwa-0.4.0/ivy/ivy-2.1.0-rc1.jar
      [get] Not modified - so not downloaded

ivy-probe-antlib-local:

ivy-init-antlib-local:

ivy-init-local:
[ivy:configure] :: Ivy 2.1.0-rc1 - 20090319213629 ::
http://ant.apache.org/ivy/ ::
:: loading settings :: file /home/tanghongwei/chukwa-0.4.0/ivy/ivysettings.xml

ivy-resolve:
[ivy:resolve] :: resolving dependencies ::
org.apache.hadoop.chukwa#chukwa;working@gb06
[ivy:resolve]   confs: [default, master, runtime, mandatory, jetty,
commons-logging, common, releaseaudit, log4j, jdiff, javadoc]
[ivy:resolve]   found org.mortbay.jetty#jsp-api-2.1;6.1.11 in maven2
[ivy:resolve]   found org.mortbay.jetty#jsp-2.1;6.1.11 in maven2
[ivy:resolve]   found org.mortbay.jetty#servlet-api-2.5;6.1.11 in maven2
[ivy:resolve]   found org.eclipse.jdt#core;3.1.1 in maven2
[ivy:resolve]   found commons-fileupload#commons-fileupload;1.2 in maven2
[ivy:resolve]   found commons-httpclient#commons-httpclient;3.0.1 in maven2
[ivy:resolve]   found commons-io#commons-io;1.4 in maven2
[ivy:resolve]   found commons-logging#commons-logging;1.0.4 in maven2
[ivy:resolve]   found commons-codec#commons-codec;1.3 in maven2
[ivy:resolve]   found commons-logging#commons-logging-api;1.0.4 in maven2
[ivy:resolve]   found commons-net#commons-net;1.4.1 in maven2
[ivy:resolve]   found org.mortbay.jetty#jetty;6.1.11 in maven2
[ivy:resolve]   found org.mortbay.jetty#jetty-util;6.1.11 in maven2
[ivy:resolve]   found junit#junit;3.8.1 in maven2
[ivy:resolve]   found log4j#log4j;1.2.13 in maven2
[ivy:resolve]   found mysql#mysql-connector-java;5.1.6 in maven2
[ivy:resolve]   found commons-lang#commons-lang;2.4 in maven2
[ivy:resolve]   found commons-collections#commons-collections;3.1 in maven2
[ivy:resolve]   found net.sf.ezmorph#ezmorph;1.0.6 in maven2
[ivy:resolve]   found commons-beanutils#commons-beanutils;1.8.0 in maven2
[ivy:resolve]   found commons-logging#commons-logging;1.1.1 in maven2
[ivy:resolve]   found com.google.code.p.arat#rat-lib;0.5.1 in maven2
[ivy:resolve]   found commons-collections#commons-collections;3.2 in maven2
[ivy:resolve]   found commons-lang#commons-lang;2.1 in maven2
[ivy:resolve]   found jdiff#jdiff;1.0.9 in maven2
[ivy:resolve]   found xerces#xerces;1.4.4 in maven2
[ivy:resolve] :: resolution report :: resolve 832ms :: artifacts dl 57ms
[ivy:resolve]   :: evicted modules:
[ivy:resolve]   commons-logging#commons-logging;1.0.4 by
[commons-logging#commons-logging;1.1.1] in [common, javadoc]
[ivy:resolve]   commons-lang#commons-lang;2.3 by
[commons-lang#commons-lang;2.4] in [common, javadoc]

---------------------------------------------------------------------
        |                  |            modules            ||   artifacts
|
        |       conf       | number| search|dwnlded|evicted||
number|dwnlded|

---------------------------------------------------------------------
        |      default     |   0   |   0   |   0   |   0   ||   0   |   0
|
        |      master      |   0   |   0   |   0   |   0   ||   0   |   0
|
        |      runtime     |   0   |   0   |   0   |   0   ||   0   |   0
|
        |     mandatory    |   0   |   0   |   0   |   0   ||   0   |   0
|
        |       jetty      |   4   |   0   |   0   |   0   ||   4   |   0
|
        |  commons-logging |   0   |   0   |   0   |   0   ||   0   |   0
|
        |      common      |   22  |   0   |   0   |   2   ||   20  |   0
|
        |   releaseaudit   |   3   |   0   |   0   |   0   ||   3   |   0
|
        |       log4j      |   0   |   0   |   0   |   0   ||   0   |   0
|
        |       jdiff      |   6   |   0   |   0   |   0   ||   6   |   0
|
        |      javadoc     |   22  |   0   |   0   |   2   ||   20  |   0
|
ivy-retrieve:
[ivy:retrieve] :: retrieving :: org.apache.hadoop.chukwa#chukwa [sync]
[ivy:retrieve]  confs: [default, master, runtime, mandatory, jetty,
commons-logging, common, releaseaudit, log4j, jdiff, javadoc]
[ivy:retrieve]  0 artifacts copied, 53 already retrieved (0kB/75ms)
No ivy:settings found for the default reference 'ivy.instance'.  A default
instance will be used
DEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.file' instead

init-standalone:
     [echo] Standalone Mode
     [echo] HADOOP_HOME set to: /home/tanghongwei/hadoop-0.20.203.0
     [echo] hadoop.home.jars.dir set to
/home/tanghongwei/chukwa-0.4.0/hadoopjars

init-hadoop:

init:

compile-common:
    [javac] /home/tanghongwei/chukwa-0.4.0/build.xml:372: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
to false for repeatable builds

compile-inputtools:
    [javac] /home/tanghongwei/chukwa-0.4.0/build.xml:383: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
to false for repeatable builds
    [javac] Compiling 15 source files to
/home/tanghongwei/chukwa-0.4.0/build/classes
    [javac]
/home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/chukwa/inputtools/log4j/Log4JMetricsContext.java:24:
warning: [deprecation] org.apache.hadoop.metrics.ContextFactory in
org.apache.hadoop.metrics has b
+
Eric Yang 2011-08-19, 15:40
+
Hongwei Tang 2011-08-20, 12:52
+
Hongwei Tang 2011-08-20, 13:14
+
Eric Yang 2011-08-20, 14:44
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