diff --git a/hadoop-hdds/common/src/main/resources/ozone-default.xml b/hadoop-hdds/common/src/main/resources/ozone-default.xml
index 6a97c8501d57..0a7416e69b2c 100644
--- a/hadoop-hdds/common/src/main/resources/ozone-default.xml
+++ b/hadoop-hdds/common/src/main/resources/ozone-default.xml
@@ -2785,18 +2785,6 @@
-
- ozone.om.metadata.layout
- OZONE, OM
- SIMPLE
-
- This property is used to define the metadata layout of file system
- paths. If it is configured as PREFIX in combination with
- ozone.om.enable.filesystem.paths to true then this allows to perform
- atomic rename and delete of any directory at any level in the namespace.
- Defaulting to SIMPLE. Supported values: SIMPLE and PREFIX.
-
- ozone.directory.deleting.service.interval1m
diff --git a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/OMConfigKeys.java b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/OMConfigKeys.java
index c42d64006e7f..2dd51134a97c 100644
--- a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/OMConfigKeys.java
+++ b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/OMConfigKeys.java
@@ -263,12 +263,6 @@ private OMConfigKeys() {
// atomic rename and delete of any directory at any level in the namespace.
// Defaulting to SIMPLE. Supported values: SIMPLE and PREFIX.
- public static final String OZONE_OM_METADATA_LAYOUT =
- "ozone.om.metadata.layout";
- public static final String OZONE_OM_METADATA_LAYOUT_DEFAULT = "SIMPLE";
-
- public static final String OZONE_OM_METADATA_LAYOUT_PREFIX = "PREFIX";
-
// Default bucket layout used by Ozone Manager during bucket creation
// when a client does not specify the bucket layout option.
public static final String OZONE_DEFAULT_BUCKET_LAYOUT =
diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/contract/OzoneContract.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/contract/OzoneContract.java
index a7318a0d2905..56326b45273d 100644
--- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/contract/OzoneContract.java
+++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/contract/OzoneContract.java
@@ -89,8 +89,6 @@ public static void createCluster() throws IOException {
if (fsOptimizedServer){
conf.setBoolean(OMConfigKeys.OZONE_OM_ENABLE_FILESYSTEM_PATHS,
true);
- conf.set(OMConfigKeys.OZONE_OM_METADATA_LAYOUT,
- OMConfigKeys.OZONE_OM_METADATA_LAYOUT_PREFIX);
}
conf.set(OMConfigKeys.OZONE_DEFAULT_BUCKET_LAYOUT,
BucketLayout.LEGACY.name());
diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestStandardOutputUtil.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestStandardOutputUtil.java
new file mode 100644
index 000000000000..ec80a498da87
--- /dev/null
+++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestStandardOutputUtil.java
@@ -0,0 +1,84 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hadoop.ozone;
+
+import org.junit.After;
+import org.junit.Before;
+
+import java.io.ByteArrayOutputStream;
+import java.io.PrintStream;
+import java.io.UnsupportedEncodingException;
+import java.nio.charset.StandardCharsets;
+
+/**
+ * Utility class to check standard output.
+ */
+public class TestStandardOutputUtil {
+ private final ByteArrayOutputStream outContent =
+ new ByteArrayOutputStream();
+ private final ByteArrayOutputStream errContent =
+ new ByteArrayOutputStream();
+ private final PrintStream originalOut = System.out;
+ private final PrintStream originalErr = System.err;
+ private static final String DEFAULT_ENCODING = StandardCharsets.UTF_8.name();
+
+ /**
+ * Set up fresh output and error streams before test.
+ *
+ * @throws UnsupportedEncodingException
+ */
+ @Before
+ public void setUpStreams() throws UnsupportedEncodingException {
+ System.setOut(new PrintStream(outContent, false, DEFAULT_ENCODING));
+ System.setErr(new PrintStream(errContent, false, DEFAULT_ENCODING));
+ }
+
+ /**
+ * Restore original error and output streams after test.
+ */
+ @After
+ public void restoreStreams() {
+ System.setOut(originalOut);
+ System.setErr(originalErr);
+ }
+
+ public String getOutContentString()
+ throws UnsupportedEncodingException {
+ return getOutContentString(DEFAULT_ENCODING);
+ }
+
+ public String getErrContentString()
+ throws UnsupportedEncodingException {
+ return getErrContentString(DEFAULT_ENCODING);
+ }
+
+ public String getOutContentString(String encoding)
+ throws UnsupportedEncodingException {
+ return outContent.toString(encoding);
+ }
+
+ public String getErrContentString(String encoding)
+ throws UnsupportedEncodingException {
+ return errContent.toString(encoding);
+ }
+
+ public String getDefaultEncoding() {
+ return DEFAULT_ENCODING;
+ }
+
+}
diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestOzoneClientMultipartUploadWithFSO.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestOzoneClientMultipartUploadWithFSO.java
index c24ac6b1a429..d772a3f20f84 100644
--- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestOzoneClientMultipartUploadWithFSO.java
+++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestOzoneClientMultipartUploadWithFSO.java
@@ -34,7 +34,6 @@
import org.apache.hadoop.ozone.client.OzoneVolume;
import org.apache.hadoop.ozone.client.io.OzoneInputStream;
import org.apache.hadoop.ozone.client.io.OzoneOutputStream;
-import org.apache.hadoop.ozone.om.OMConfigKeys;
import org.apache.hadoop.ozone.om.OMMetadataManager;
import org.apache.hadoop.ozone.om.OzoneManager;
import org.apache.hadoop.ozone.om.exceptions.OMException;
@@ -108,8 +107,7 @@ public class TestOzoneClientMultipartUploadWithFSO {
@BeforeClass
public static void init() throws Exception {
OzoneConfiguration conf = new OzoneConfiguration();
- TestOMRequestUtils.configureFSOptimizedPaths(conf,
- true, OMConfigKeys.OZONE_OM_METADATA_LAYOUT_PREFIX);
+ TestOMRequestUtils.configureFSOptimizedPaths(conf, true);
startCluster(conf);
}
diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestReadRetries.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestReadRetries.java
index f94e47e73363..2e369b4d5912 100644
--- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestReadRetries.java
+++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestReadRetries.java
@@ -51,6 +51,7 @@
import org.apache.hadoop.ozone.client.io.OzoneOutputStream;
import org.apache.hadoop.ozone.om.OMConfigKeys;
import org.apache.hadoop.ozone.om.OzoneManager;
+import org.apache.hadoop.ozone.om.helpers.BucketLayout;
import org.apache.hadoop.ozone.om.helpers.OmKeyArgs;
import org.apache.hadoop.ozone.om.helpers.OmKeyLocationInfo;
import org.apache.hadoop.ozone.om.helpers.OzoneFileStatus;
@@ -94,17 +95,18 @@ public class TestReadRetries {
storageContainerLocationClient;
private static final String SCM_ID = UUID.randomUUID().toString();
- private String layoutVersion;
+ private String bucketLayout;
- public TestReadRetries(String layoutVersion) {
- this.layoutVersion = layoutVersion;
+ public TestReadRetries(String bucketLayout) {
+ this.bucketLayout = bucketLayout;
}
@Parameterized.Parameters
public static Collection