From 2912c953551bedbfbf30c32c156ed7bb187d54c3 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 12 Apr 2018 04:36:36 -0700 Subject: [PATCH] HBASE-20397 Make it more explicit that monkey.properties is found on CLASSPATH --- .../org/apache/hadoop/hbase/IntegrationTestBase.java | 2 +- src/main/asciidoc/_chapters/developer.adoc | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestBase.java b/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestBase.java index ee94078291f..125b7cacd07 100644 --- a/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestBase.java +++ b/hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestBase.java @@ -100,7 +100,7 @@ public abstract class IntegrationTestBase extends AbstractHBaseTool { monkeyProps.load(this.getClass().getClassLoader() .getResourceAsStream(chaosMonkeyPropsFile)); } catch (IOException e) { - LOG.warn(e.toString(), e); + LOG.warn("Failed load of monkey properties {} from CLASSPATH", chaosMonkeyPropsFile, e); System.exit(EXIT_FAILURE); } } diff --git a/src/main/asciidoc/_chapters/developer.adoc b/src/main/asciidoc/_chapters/developer.adoc index a6e9c3ebed3..48dc79eef27 100644 --- a/src/main/asciidoc/_chapters/developer.adoc +++ b/src/main/asciidoc/_chapters/developer.adoc @@ -1465,9 +1465,8 @@ HBase ships with several ChaosMonkey policies, available in the [[chaos.monkey.properties]] ==== Configuring Individual ChaosMonkey Actions -Since HBase version 1.0.0 (link:https://issues.apache.org/jira/browse/HBASE-11348[HBASE-11348]), ChaosMonkey integration tests can be configured per test run. -Create a Java properties file in the HBase classpath and pass it to ChaosMonkey using +Create a Java properties file in the HBase CLASSPATH and pass it to ChaosMonkey using the `-monkeyProps` configuration flag. Configurable properties, along with their default values if applicable, are listed in the `org.apache.hadoop.hbase.chaos.factories.MonkeyConstants` class. For properties that have defaults, you can override them by including them @@ -1480,7 +1479,9 @@ The following example uses a properties file called <