incubator-chukwa-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hongwei Tang <tanghongwei2...@gmail.com>
Subject Re: chukwa-0.4.0 build failed: Log4JMetricsContext is not abstract and does not override abstract method getAllRecords()
Date Sat, 20 Aug 2011 12:52:14 GMT
Thanks! I will try with trunk.

Tang Hongwei
2011/8/19 Eric Yang <eric818@gmail.com>

> Chukwa 0.4 works with Hadoop 0.20.2 only.  Hadoop 0.20.203+ is only
> supported by trunk (0.5) version of Chukwa.
> Trunk version of Chukwa can be check out from svn:
>
> http://svn.apache.org/viewcvs.cgi/incubator/chukwa/
>
> The configuration instruction for Chukwa trunk is at:
>
> http://wiki.apache.org/hadoop/Chukwa_Quick_Start
>
> regards,
> Eric
>
> On Aug 18, 2011, at 6:24 PM, Hongwei Tang wrote:
>
> > 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
> > :: loading settings :: file =
> /home/tanghongwei/chukwa-0.4.0/ivy/ivysettings.xml
> >
> > 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 been deprecated
> >     [javac] import org.apache.hadoop.metrics.ContextFactory;
> >     [javac]                                 ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/chukwa/inputtools/log4j/Log4JMetricsContext.java:25:
> warning: [deprecation] org.apache.hadoop.metrics.MetricsException in
> org.apache.hadoop.metrics has been deprecated
> >     [javac] import org.apache.hadoop.metrics.MetricsException;
> >     [javac]                                 ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/chukwa/inputtools/log4j/Log4JMetricsContext.java:27:
> warning: [deprecation] org.apache.hadoop.metrics.spi.OutputRecord in
> org.apache.hadoop.metrics.spi has been deprecated
> >     [javac] import org.apache.hadoop.metrics.spi.OutputRecord;
> >     [javac]                                     ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/chukwa/inputtools/log4j/Log4JMetricsContext.java:54:
> warning: [deprecation] org.apache.hadoop.metrics.ContextFactory in
> org.apache.hadoop.metrics has been deprecated
> >     [javac]   public void init(String contextName, ContextFactory
> factory) {
> >     [javac]                                        ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/chukwa/inputtools/log4j/Log4JMetricsContext.java:92:
> warning: [deprecation] org.apache.hadoop.metrics.spi.OutputRecord in
> org.apache.hadoop.metrics.spi has been deprecated
> >     [javac]       OutputRecord outRec) throws IOException {
> >     [javac]       ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/mapred/ChukwaJobTrackerInstrumentation.java:25:
> warning: [deprecation] org.apache.hadoop.mapred.JobConf in
> org.apache.hadoop.mapred has been deprecated
> >     [javac] import org.apache.hadoop.mapred.JobConf;
> >     [javac]                                ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/mapred/ChukwaJobTrackerInstrumentation.java:27:
> warning: [deprecation] org.apache.hadoop.mapred.JobID in
> org.apache.hadoop.mapred has been deprecated
> >     [javac] import org.apache.hadoop.mapred.JobID;
> >     [javac]                                ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/mapred/ChukwaJobTrackerInstrumentation.java:29:
> warning: [deprecation] org.apache.hadoop.mapred.TaskAttemptID in
> org.apache.hadoop.mapred has been deprecated
> >     [javac] import org.apache.hadoop.mapred.TaskAttemptID;
> >     [javac]                                ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/mapred/ChukwaJobTrackerInstrumentation.java:39:
> warning: [deprecation] org.apache.hadoop.mapred.JobID in
> org.apache.hadoop.mapred has been deprecated
> >     [javac]   private static HashMap<JobID, String> jobHistories = null;
> >     [javac]                          ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/mapred/ChukwaJobTrackerInstrumentation.java:41:
> warning: [deprecation] org.apache.hadoop.mapred.JobConf in
> org.apache.hadoop.mapred has been deprecated
> >     [javac]   public ChukwaJobTrackerInstrumentation(JobTracker jt,
> JobConf conf) {
> >     [javac]                                                         ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/mapred/ChukwaJobTrackerInstrumentation.java:54:
> warning: [deprecation] org.apache.hadoop.mapred.JobConf in
> org.apache.hadoop.mapred has been deprecated
> >     [javac]   public void submitJob(JobConf conf, JobID id) {
> >     [javac]                         ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/mapred/ChukwaJobTrackerInstrumentation.java:54:
> warning: [deprecation] org.apache.hadoop.mapred.JobID in
> org.apache.hadoop.mapred has been deprecated
> >     [javac]   public void submitJob(JobConf conf, JobID id) {
> >     [javac]                                       ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/mapred/ChukwaJobTrackerInstrumentation.java:82:
> warning: [deprecation] org.apache.hadoop.mapred.JobConf in
> org.apache.hadoop.mapred has been deprecated
> >     [javac]   public void finalizeJob(JobConf conf, JobID id) {
> >     [javac]                           ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/mapred/ChukwaJobTrackerInstrumentation.java:82:
> warning: [deprecation] org.apache.hadoop.mapred.JobID in
> org.apache.hadoop.mapred has been deprecated
> >     [javac]   public void finalizeJob(JobConf conf, JobID id) {
> >     [javac]                                         ^
> >     [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]        ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/chukwa/inputtools/log4j/Log4JMetricsContext.java:65:
> warning: [deprecation] org.apache.hadoop.metrics.MetricsException in
> org.apache.hadoop.metrics has been deprecated
> >     [javac]         throw new MetricsException("Invalid period: " +
> periodStr);
> >     [javac]                   ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/chukwa/inputtools/log4j/Log4JMetricsContext.java:75:
> warning: [deprecation] org.apache.hadoop.metrics.MetricsException in
> org.apache.hadoop.metrics has been deprecated
> >     [javac]       throw new MetricsException("Invalid output directory: "
> + outputDir);
> >     [javac]                 ^
> >     [javac]
> /home/tanghongwei/chukwa-0.4.0/src/java/org/apache/hadoop/mapred/ChukwaJobTrackerInstrumentation.java:48:
> warning: [deprecation] org.apache.hadoop.mapred.JobID in
> org.apache.hadoop.mapred has been deprecated
> >     [javac]       jobHistories = new HashMap<JobID, String>();
> >     [javac]                                  ^
> >     [javac] 1 error
> >     [javac] 17 warnings
> >
> > BUILD FAILED
> > /home/tanghongwei/chukwa-0.4.0/build.xml:383: Compile failed; see the
> compiler error output for details.
> >
> > Total time: 8 seconds
>
>

Mime
View raw message