Uploaded image for project: 'CDH (READ-ONLY)'
  1. CDH (READ-ONLY)
  2. DISTRO-585

Cloudera Manager API not exposing config validation state as per API docs in CM 5.0.0 API v1/2

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: CDH5.0.0, CDH4.6.0
    • Fix Version/s: None
    • Component/s: Docs
    • Labels:
      None
    • Environment:
      CM 5.0.0 with CDH 4.5 and 5.0 clusters

      Description

      Hi,

      I've been trying to get the config validation states for each service (specifically validationState and validationMessage fields) from the CM API as documented here:

      http://cloudera.github.io/cm_api/apidocs/v1/el_ns0_configList.html

      but it doesn't seem to be returned as part of the json. I'm connecting with valid credentials to the admin account. Here's the output from the CDH 4.6 cluster which is the same for v1 and v2 of the API:

      GET http://x.x.x.x:7180/api/v2/clusters/Cluster 1/services/mapreduce/config

      returns:

      {
        "roleTypeConfigs" : [ {
          "roleType" : "GATEWAY",
          "items" : [ {
            "name" : "mapred_submit_replication",
            "value" : "1"
          } ]
        }, {
          "roleType" : "JOBTRACKER",
          "items" : [ {
            "name" : "jobtracker_java_heapsize",
            "value" : "52428800"
          }, {
            "name" : "jobtracker_mapred_local_dir_list",
            "value" : "/mapred/jt"
          } ]
        }, {
          "roleType" : "TASKTRACKER",
          "items" : [ {
            "name" : "mapred_tasktracker_instrumentation",
            "value" : "org.apache.hadoop.mapred.TaskTrackerCmonInst"
          }, {
            "name" : "mapred_tasktracker_map_tasks_maximum",
            "value" : "1"
          }, {
            "name" : "mapred_tasktracker_reduce_tasks_maximum",
            "value" : "1"
          }, {
            "name" : "task_tracker_java_heapsize",
            "value" : "52428800"
          }, {
            "name" : "tasktracker_mapred_local_dir_list",
            "value" : "/mapred/local"
          } ]
        } ],
        "items" : [ {
          "name" : "hdfs_service",
          "value" : "hdfs2"
        } ]
      }
      

      Is this something that was meant to be implemented but never was or am I missing something?

      I also tried v1-5 of the API, v1 and v2 appear to give the same output while v3 onwards are not implemented (that's documented though).

      Thanks

      Hari Sekhon
      http://www.linkedin.com/in/harisekhon

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              harisekhon Hari Sekhon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: