You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by li...@apache.org on 2017/04/26 04:01:15 UTC
[2/2] hadoop git commit: HADOOP-14349. Rename ADLS
CONTRACT_ENABLE_KEY. Contributed by Mingliang Liu
HADOOP-14349. Rename ADLS CONTRACT_ENABLE_KEY. Contributed by Mingliang Liu
(cherry picked from commit e4c32bccde3147f51263cb58cdb480453b1cb3e9)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/5ceb61cb
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/5ceb61cb
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/5ceb61cb
Branch: refs/heads/branch-2
Commit: 5ceb61cb43344dabf89557640cf47385a1595f13
Parents: fc0e6de
Author: Mingliang Liu <li...@apache.org>
Authored: Mon Apr 24 14:59:09 2017 -0700
Committer: Mingliang Liu <li...@apache.org>
Committed: Tue Apr 25 20:55:56 2017 -0700
----------------------------------------------------------------------
.../hadoop-azure-datalake/src/site/markdown/index.md | 4 ++--
.../apache/hadoop/fs/adl/live/AdlStorageConfiguration.java | 8 +++++++-
2 files changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/5ceb61cb/hadoop-tools/hadoop-azure-datalake/src/site/markdown/index.md
----------------------------------------------------------------------
diff --git a/hadoop-tools/hadoop-azure-datalake/src/site/markdown/index.md b/hadoop-tools/hadoop-azure-datalake/src/site/markdown/index.md
index d2da858..d4b7d8e 100644
--- a/hadoop-tools/hadoop-azure-datalake/src/site/markdown/index.md
+++ b/hadoop-tools/hadoop-azure-datalake/src/site/markdown/index.md
@@ -253,7 +253,7 @@ Add the following properties to `core-site.xml`
```
## Testing the azure-datalake-store Module
The `hadoop-azure` module includes a full suite of unit tests.
-Most of the tests will run without additional configuration by running mvn test.
+Most of the tests will run without additional configuration by running `mvn test`.
This includes tests against mocked storage, which is an in-memory emulation of Azure Data Lake Storage.
A selection of tests can run against the Azure Data Lake Storage. To run these
@@ -262,7 +262,7 @@ information mentioned in the above sections and the following properties.
```xml
<property>
- <name>dfs.adl.test.contract.enable</name>
+ <name>fs.adl.test.contract.enable</name>
<value>true</value>
</property>
http://git-wip-us.apache.org/repos/asf/hadoop/blob/5ceb61cb/hadoop-tools/hadoop-azure-datalake/src/test/java/org/apache/hadoop/fs/adl/live/AdlStorageConfiguration.java
----------------------------------------------------------------------
diff --git a/hadoop-tools/hadoop-azure-datalake/src/test/java/org/apache/hadoop/fs/adl/live/AdlStorageConfiguration.java b/hadoop-tools/hadoop-azure-datalake/src/test/java/org/apache/hadoop/fs/adl/live/AdlStorageConfiguration.java
index 7d6153d..a9b4ab8 100644
--- a/hadoop-tools/hadoop-azure-datalake/src/test/java/org/apache/hadoop/fs/adl/live/AdlStorageConfiguration.java
+++ b/hadoop-tools/hadoop-azure-datalake/src/test/java/org/apache/hadoop/fs/adl/live/AdlStorageConfiguration.java
@@ -35,7 +35,7 @@ public final class AdlStorageConfiguration {
static final String CONTRACT_XML = "adls.xml";
private static final String CONTRACT_ENABLE_KEY =
- "dfs.adl.test.contract.enable";
+ "fs.adl.test.contract.enable";
private static final boolean CONTRACT_ENABLE_DEFAULT = false;
private static final String FILE_SYSTEM_KEY =
@@ -49,6 +49,12 @@ public final class AdlStorageConfiguration {
private static boolean isContractTestEnabled = false;
private static Configuration conf = null;
+ static {
+ Configuration.addDeprecation("dfs.adl.test.contract.enable",
+ CONTRACT_ENABLE_KEY);
+ Configuration.reloadExistingConfigurations();
+ }
+
private AdlStorageConfiguration() {
}
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org