From 57df73ac6819e0e9fde89027a07fe09735eec675 Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Wed, 6 Dec 2017 14:08:55 -0800 Subject: [PATCH] HBASE-19445 PerformanceEvaluation NPE processing split policy option --- .../java/org/apache/hadoop/hbase/PerformanceEvaluation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java b/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java index e2d23e5e0a1..8255573a2bc 100644 --- a/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java +++ b/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java @@ -406,7 +406,7 @@ public class PerformanceEvaluation extends Configured implements Tool { if (opts.replicas != DEFAULT_OPTS.replicas) { desc.setRegionReplication(opts.replicas); } - if (opts.splitPolicy != DEFAULT_OPTS.splitPolicy) { + if (opts.splitPolicy != null && !opts.splitPolicy.equals(DEFAULT_OPTS.splitPolicy)) { desc.setRegionSplitPolicyClassName(opts.splitPolicy); } return desc;