File tree 7 files changed +13
-29
lines changed
src/java/org/apache/hadoop/mapreduce/jobhistory
7 files changed +13
-29
lines changed Original file line number Diff line number Diff line change 30
30
<classpathentry kind =" lib" path =" build/ivy/lib/Hadoop/common/hadoop-core-test-0.22.0-SNAPSHOT.jar" />
31
31
<classpathentry kind =" lib" path =" build/ivy/lib/Hadoop/common/hadoop-hdfs-0.22.0-SNAPSHOT.jar" />
32
32
<classpathentry kind =" lib" path =" build/ivy/lib/Hadoop/test/hadoop-hdfs-test-0.22.0-SNAPSHOT.jar" />
33
- <classpathentry kind =" lib" path =" build/ivy/lib/Hadoop/common/avro-1.2 .0.jar" />
33
+ <classpathentry kind =" lib" path =" build/ivy/lib/Hadoop/common/avro-1.3 .0.jar" />
34
34
<classpathentry kind =" lib" path =" build/ivy/lib/Hadoop/common/commons-cli-1.2.jar" />
35
35
<classpathentry kind =" lib" path =" build/ivy/lib/Hadoop/common/commons-codec-1.4.jar" />
36
36
<classpathentry kind =" lib" path =" build/ivy/lib/Hadoop/common/commons-el-1.0.jar" />
Original file line number Diff line number Diff line change @@ -231,6 +231,8 @@ Trunk (unreleased changes)
231
231
MAPREDUCE-1501. FileInputFormat supports multi-level, recursive
232
232
directory listing. (Zheng Shao via dhruba)
233
233
234
+ MAPREDUCE-1556. upgrade to Avro 1.3.0. (cutting via tomwhite)
235
+
234
236
BUG FIXES
235
237
236
238
MAPREDUCE-1258. Fix fair scheduler event log not logging job info.
Original file line number Diff line number Diff line change 30
30
<artifactId >hadoop-core</artifactId >
31
31
<version >0.22.0-dev-SNAPSHOT</version >
32
32
</dependency >
33
- <dependency >
34
- <groupId >org.codehaus.jackson</groupId >
35
- <artifactId >jackson-mapper-asl</artifactId >
36
- <version >1.0.1</version >
37
- </dependency >
38
- <dependency >
39
- <groupId >org.codehaus.jackson</groupId >
40
- <artifactId >jackson-core-asl</artifactId >
41
- <version >1.0.1</version >
42
- </dependency >
43
- <dependency >
44
- <groupId >com.thoughtworks.paranamer</groupId >
45
- <artifactId >paranamer</artifactId >
46
- <version >1.5</version >
47
- </dependency >
48
33
</dependencies >
49
34
</project >
Original file line number Diff line number Diff line change 43
43
checkmodified =" true" changingPattern =" .*SNAPSHOT" />
44
44
45
45
<filesystem name =" fs" m2compatible =" true" force =" true" >
46
- <artifact pattern =" ${repo.dir}/org/apache/hadoop /[module]/[revision]/[module]-[revision].[ext]" />
47
- <ivy pattern =" ${repo.dir}/org/apache/hadoop /[module]/[revision]/[module]-[revision].pom" />
46
+ <artifact pattern =" ${repo.dir}/[organisation] /[module]/[revision]/[module]-[revision].[ext]" />
47
+ <ivy pattern =" ${repo.dir}/[organisation] /[module]/[revision]/[module]-[revision].pom" />
48
48
</filesystem >
49
49
50
50
<chain name =" default" dual =" true" checkmodified =" true" changingPattern =" .*SNAPSHOT" >
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ ant-task.version=2.0.10
20
20
# Aspectj depedency for Fault injection
21
21
aspectj.version =1.6.5
22
22
23
- avro.version =1.2 .0
23
+ avro.version =1.3 .0
24
24
25
25
checkstyle.version =4.2
26
26
@@ -49,8 +49,6 @@ hsqldb.version=1.8.0.10
49
49
# ivy.version=2.0.0-beta2
50
50
ivy.version =2.0.0-rc2
51
51
52
- jackson.version =1.0.1
53
-
54
52
jasper.version =5.5.12
55
53
jsp.version =2.1
56
54
jsp-api.version =5.5.12
@@ -71,8 +69,6 @@ mockito-all.version=1.8.0
71
69
72
70
oro.version =2.0.8
73
71
74
- paranamer.version =1.5
75
-
76
72
rats-lib.version =0.6
77
73
78
74
servlet.version =4.0.6
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public HistoryEvent getNextEvent() throws IOException {
83
83
Event wrapper ;
84
84
try {
85
85
wrapper = (Event )reader .read (null , decoder );
86
- } catch (AvroRuntimeException e ) { // at EOF
86
+ } catch (EOFException e ) { // at EOF
87
87
return null ;
88
88
}
89
89
HistoryEvent result ;
Original file line number Diff line number Diff line change @@ -44,16 +44,17 @@ class EventWriter {
44
44
static final String VERSION = "Avro-Json" ;
45
45
46
46
private FSDataOutputStream out ;
47
- private DatumWriter <Object > writer = new SpecificDatumWriter (Event .class );
47
+ private DatumWriter <Event > writer =
48
+ new SpecificDatumWriter <Event >(Event .class );
48
49
private Encoder encoder ;
49
50
50
51
EventWriter (FSDataOutputStream out ) throws IOException {
51
52
this .out = out ;
52
53
out .writeBytes (VERSION );
53
54
out .writeBytes ("\n " );
54
- out .writeBytes (Event ._SCHEMA .toString ());
55
+ out .writeBytes (Event .SCHEMA$ .toString ());
55
56
out .writeBytes ("\n " );
56
- this .encoder = new JsonEncoder (Event ._SCHEMA , out );
57
+ this .encoder = new JsonEncoder (Event .SCHEMA$ , out );
57
58
}
58
59
59
60
synchronized void write (HistoryEvent event ) throws IOException {
@@ -75,10 +76,10 @@ void close() throws IOException {
75
76
}
76
77
77
78
private static final Schema GROUPS =
78
- Schema .createArray (JhCounterGroup ._SCHEMA );
79
+ Schema .createArray (JhCounterGroup .SCHEMA$ );
79
80
80
81
private static final Schema COUNTERS =
81
- Schema .createArray (JhCounter ._SCHEMA );
82
+ Schema .createArray (JhCounter .SCHEMA$ );
82
83
83
84
static JhCounters toAvro (Counters counters ) {
84
85
return toAvro (counters , "COUNTERS" );
You can’t perform that action at this time.
0 commit comments