From a66f9dcda54f5fbf469f25af420cf2f19567621d Mon Sep 17 00:00:00 2001 From: Yi Liang Date: Tue, 12 Sep 2017 16:49:52 -0700 Subject: [PATCH] HBASE-18803: Mapreduce job get failed caused by NoClassDefFoundError: org/apache/commons/lang3/ArrayUtils Signed-off-by: Michael Stack --- .../apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java index c3b001eb5be..4dcd048f910 100644 --- a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java +++ b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java @@ -787,7 +787,7 @@ public class TableMapReduceUtil { org.apache.hadoop.hbase.ipc.RpcServer.class, // hbase-server org.apache.hadoop.hbase.CompatibilityFactory.class, // hbase-hadoop-compat org.apache.hadoop.hbase.mapreduce.JobUtil.class, // hbase-hadoop2-compat - org.apache.hadoop.hbase.mapreduce.TableMapper.class, // hbase-server + org.apache.hadoop.hbase.mapreduce.TableMapper.class, // hbase-mapreduce org.apache.hadoop.hbase.metrics.impl.FastLongHistogram.class, // hbase-metrics org.apache.hadoop.hbase.metrics.Snapshot.class, // hbase-metrics-api prefixTreeCodecClass, // hbase-prefix-tree (if null will be skipped) @@ -798,7 +798,8 @@ public class TableMapReduceUtil { org.apache.hadoop.hbase.shaded.com.google.protobuf.UnsafeByteOperations.class, org.apache.hadoop.hbase.shaded.com.google.common.collect.Lists.class, org.apache.htrace.Trace.class, - com.codahale.metrics.MetricRegistry.class); + com.codahale.metrics.MetricRegistry.class, + org.apache.commons.lang3.ArrayUtils.class); } /**