Resource URL: /platform/<<version=3>>/protocols/hdfs/settings

    Overview: This resource applies the global HDFS settings.

     Methods: GET, PUT

********************************************************************************

Method GET: Retrieve HDFS properties.

       URL: GET /platform/<<version=3>>/protocols/hdfs/settings

Query arguments:
zone=<string> Access zone which contains HDFS settings.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "type": "object", 
      "properties": {
        "settings": {
          "type": "object", 
          "description": "This is schema that contains HDFS protocol properties.", 
          "properties": {
            "webhdfs_enabled": {
              "type": "boolean", 
              "description": "Enable or disable WebHDFS"
            }, 
            "default_checksum_type": {
              "enum": [
                "none", 
                "crc32", 
                "crc32c"
              ], 
              "type": "string", 
              "description": "Checksum type reported by HDFS server."
            }, 
            "ambari_server": {
              "type": "string", 
              "description": "Ambari server"
            }, 
            "service": {
              "type": "boolean", 
              "description": "Enable or disable the HDFS service."
            }, 
            "default_block_size": {
              "type": "integer", 
              "description": "Block size (size=2**value) reported by HDFS server."
            }, 
            "root_directory": {
              "type": "string", 
              "description": "HDFS root directory"
            }, 
            "odp_version": {
              "type": "string", 
              "description": "ODP stack repository version number"
            }, 
            "authentication_mode": {
              "enum": [
                "all", 
                "simple_only", 
                "kerberos_only"
              ], 
              "type": "string", 
              "description": "Type of authentication for HDFS protocol."
            }, 
            "ambari_namenode": {
              "type": "string", 
              "description": "NameNode of Ambari server"
            }
          }
        }
      }
    }
  ]
}

********************************************************************************

Method PUT: Modify HDFS properties.

       URL: PUT /platform/<<version=3>>/protocols/hdfs/settings

Query arguments:
zone=<string> Access zone which contains HDFS settings.

PUT request body schema:
{
  "type": "object", 
  "description": "This is schema that contains HDFS protocol properties.", 
  "properties": {
    "webhdfs_enabled": {
      "type": "boolean", 
      "description": "Enable or disable WebHDFS"
    }, 
    "default_checksum_type": {
      "enum": [
        "none", 
        "crc32", 
        "crc32c"
      ], 
      "type": "string", 
      "description": "Checksum type reported by HDFS server."
    }, 
    "ambari_server": {
      "type": "string", 
      "description": "Ambari server"
    }, 
    "service": {
      "type": "boolean", 
      "description": "Enable or disable the HDFS service."
    }, 
    "default_block_size": {
      "type": "integer", 
      "description": "Block size (size=2**value) reported by HDFS server."
    }, 
    "root_directory": {
      "type": "string", 
      "description": "HDFS root directory"
    }, 
    "odp_version": {
      "type": "string", 
      "description": "ODP stack repository version number"
    }, 
    "authentication_mode": {
      "enum": [
        "all", 
        "simple_only", 
        "kerberos_only"
      ], 
      "type": "string", 
      "description": "Type of authentication for HDFS protocol."
    }, 
    "ambari_namenode": {
      "type": "string", 
      "description": "NameNode of Ambari server"
    }
  }
}

There is no JSON response body for this method.
