chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asrab...@apache.org
Subject svn commit: r937558 - in /hadoop/chukwa/trunk: CHANGES.txt src/java/org/apache/hadoop/chukwa/extraction/demux/Demux.java
Date Fri, 23 Apr 2010 23:58:59 GMT
Author: asrabkin
Date: Fri Apr 23 23:58:59 2010
New Revision: 937558

URL: http://svn.apache.org/viewvc?rev=937558&view=rev
Log:
CHUKWA-471. Expose JobConf to Demux Processors. Contributed by Jerome Boulon.

Modified:
    hadoop/chukwa/trunk/CHANGES.txt
    hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/extraction/demux/Demux.java

Modified: hadoop/chukwa/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/CHANGES.txt?rev=937558&r1=937557&r2=937558&view=diff
==============================================================================
--- hadoop/chukwa/trunk/CHANGES.txt (original)
+++ hadoop/chukwa/trunk/CHANGES.txt Fri Apr 23 23:58:59 2010
@@ -4,8 +4,13 @@ Trunk (unreleased changes)
 
   NEW FEATURES
 
+    CHUKWA-469. Add JMSAdaptor. (Bill Graham via asrabkin)
 
-  BUGS
+  IMPROVEMENTS
+
+    CHUKWA-471. Expose JobConf to Demux Processors. (Jerome Boulon via asrabkin)
+
+  BUG FIXES
 
 Chukwa 0.4 
 

Modified: hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/extraction/demux/Demux.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/extraction/demux/Demux.java?rev=937558&r1=937557&r2=937558&view=diff
==============================================================================
--- hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/extraction/demux/Demux.java (original)
+++ hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/extraction/demux/Demux.java Fri
Apr 23 23:58:59 2010
@@ -60,6 +60,7 @@ import org.apache.log4j.Logger;
 public class Demux extends Configured implements Tool {
   static Logger log = Logger.getLogger(Demux.class);
   static SimpleDateFormat day = new java.text.SimpleDateFormat("yyyyMMdd_HH_mm");
+  public static JobConf jobConf = null;
 
   public static class MapClass extends MapReduceBase implements
       Mapper<ChukwaArchiveKey, ChunkImpl, ChukwaRecordKey, ChukwaRecord> {
@@ -69,6 +70,7 @@ public class Demux extends Configured im
     public void configure(JobConf jobConf) {
       super.configure(jobConf);
       this.jobConf = jobConf;
+      Demux.jobConf= jobConf;
     }
 
     public void map(ChukwaArchiveKey key, ChunkImpl chunk,
@@ -117,6 +119,12 @@ public class Demux extends Configured im
 
   public static class ReduceClass extends MapReduceBase implements
       Reducer<ChukwaRecordKey, ChukwaRecord, ChukwaRecordKey, ChukwaRecord> {
+    
+    public void configure(JobConf jobConf) {
+      super.configure(jobConf);
+      Demux.jobConf = jobConf;
+    }
+    
     public void reduce(ChukwaRecordKey key, Iterator<ChukwaRecord> values,
         OutputCollector<ChukwaRecordKey, ChukwaRecord> output, Reporter reporter)
         throws IOException {



Mime
View raw message