Configuration to create bucket with default layout

You must set the following configuration in Cloudera Manager to create a bucket with default layout.

In Cloudera Manager, you must configure ozone-site.xml to define the default value for bucket layout during bucket creation if the client has not specified the bucket layout argument. Supported values are OBJECT_STORE, FILE_SYSTEM_OPTIMIZED, and LEGACY.

By default, this config value is empty. Ozone will default to LEGACY bucket layout if it finds an empty config value. You must add the below property and provide the value.

  1. Log in to Cloudera Manager UI
  2. Navigate to Clusters
  3. Select the Ozone service
  4. Go to Configurations
  5. Search for Ozone Manager Advanced Configuration Snippet (Safety Valve) for ozone-conf/ozone-site.xml
    1. Click Add
    2. Click View as XML
    3. Copy and paste: <property> <name>ozone.default.bucket.layout</name> <value/> </property>
    4. Click View Editor. You must provide the values for the properties.
      Property name Value
      ozone.default.bucket.layout

      Name of the property. By default, Legacy is the bucket type.

      Value Supported values are OBJECT_STORE or FILE_SYSTEM_OPTIMIZED or LEGACY
      Description Enter the Description for the property
    5. Click Save Changes
    6. Restart the Ozone service