hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From inigo...@apache.org
Subject [01/50] [abbrv] hadoop git commit: HADOOP-14349. Rename ADLS CONTRACT_ENABLE_KEY. Contributed by Mingliang Liu
Date Tue, 02 May 2017 21:53:57 GMT
Repository: hadoop
Updated Branches:
  refs/heads/HDFS-10467 01e6d57d1 -> 47c8b97dd


HADOOP-14349. Rename ADLS CONTRACT_ENABLE_KEY. Contributed by Mingliang Liu


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/1aaaba1c
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/1aaaba1c
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/1aaaba1c

Branch: refs/heads/HDFS-10467
Commit: 1aaaba1c680cd46391261f0444168b3235f02397
Parents: d4bf2f2
Author: Mingliang Liu <liuml07@apache.org>
Authored: Mon Apr 24 14:59:09 2017 -0700
Committer: Inigo <inigoiri@apache.org>
Committed: Tue May 2 14:52:01 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/1aaaba1c/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/1aaaba1c/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


Mime
View raw message