Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-2945

YARN/MR2 components being shown as stopped with custom pid/log folders

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.4.0
    • ambari-agent
    • None

    Description

      During install I set custom pid/log folders for YARN components - /oooyarn/var/log/hadoop-yarn, /oooyarn/var/run/hadoop-yarn for RM and /ooonm/var/log/hadoop/yarn for NM.

      After install, all the processes started fine and alerts are all green, etc. However the YARN service has a red-circle, showing RM as stopped. I have verified the process is up and running fine.

      In the API, the RM host component has state of INSTALLED and desired state of STARTED

      {
                "href" : "http://c6401:8080/api/v1/clusters/vmc/services/YARN/components/RESOURCEMANAGER",
                "ServiceComponentInfo" : {
                  "StartTime" : 1376731292408,
                  "cluster_name" : "vmc",
                  "component_name" : "RESOURCEMANAGER",
                  "service_name" : "YARN",
                  "state" : "STARTED",
                  "desired_configs" : { },
                  "rm_metrics" : {
                    "cluster" : {
                      "activeNMcount" : 3,
                      "decommissionedNMcount" : 0,
                      "lostNMcount" : 0,
                      "nodeManagers" : "[{\"HostName\":\"c6402.ambari.apache.org\",\"Rack\":\"/default-rack\",\"State\":\"RUNNING\",\"NodeId\":\"c6402.ambari.apache.org:45454\",\"NodeHTTPAddress\":\"c6402.ambari.apache.org:8042\",\"LastHealthUpdate\":1376732903595,\"HealthReport\":\"\",\"NumContainers\":0,\"UsedMemoryMB\":0,\"AvailableMemoryMB\":10240},{\"HostName\":\"c6401.ambari.apache.org\",\"Rack\":\"/default-rack\",\"State\":\"RUNNING\",\"NodeId\":\"c6401.ambari.apache.org:45454\",\"NodeHTTPAddress\":\"c6401.ambari.apache.org:8042\",\"LastHealthUpdate\":1376732895497,\"HealthReport\":\"\",\"NumContainers\":0,\"UsedMemoryMB\":0,\"AvailableMemoryMB\":10240},{\"HostName\":\"c6403.ambari.apache.org\",\"Rack\":\"/default-rack\",\"State\":\"RUNNING\",\"NodeId\":\"c6403.ambari.apache.org:45454\",\"NodeHTTPAddress\":\"c6403.ambari.apache.org:8042\",\"LastHealthUpdate\":1376732983789,\"HealthReport\":\"\",\"NumContainers\":0,\"UsedMemoryMB\":0,\"AvailableMemoryMB\":10240}]",
                      "rebootedNMcount" : 0,
                      "unhealthyNMcount" : 0
                    }
                  }
                },
                "host_components" : [
                  {
                    "href" : "http://c6401:8080/api/v1/clusters/vmc/hosts/c6402.ambari.apache.org/host_components/RESOURCEMANAGER",
                    "HostRoles" : {
                      "cluster_name" : "vmc",
                      "component_name" : "RESOURCEMANAGER",
                      "desired_stack_id" : "HDPLocal-2.0.5",
                      "desired_state" : "STARTED",
                      "ha_status" : "passive",
                      "host_name" : "c6402.ambari.apache.org",
                      "service_name" : "YARN",
                      "stack_id" : "HDPLocal-2.0.5",
                      "state" : "INSTALLED",
                      "actual_configs" : {
                        "capacity-scheduler" : {
                          "tag" : "version1"
                        },
                        "core-site" : {
                          "tag" : "version1"
                        },
                        "global" : {
                          "tag" : "version1"
                        },
                        "hbase-site" : {
                          "tag" : "version1"
                        },
                        "hdfs-site" : {
                          "tag" : "version1"
                        },
                        "hive-site" : {
                          "tag" : "version1"
                        },
                        "mapred-queue-acls" : {
                          "tag" : "version1"
                        },
                        "mapred-site" : {
                          "tag" : "version1"
                        },
                        "oozie-site" : {
                          "tag" : "version1"
                        },
                        "webhcat-site" : {
                          "tag" : "version1"
                        },
                        "yarn-site" : {
                          "tag" : "version1"
                        }
                      },
                      "configs" : { },
                      "desired_configs" : { }
                    },
                    "metrics" : {
                      "cpu" : {
                        "cpu_wio" : 0.1
                      }
                    }
                  }
                ]
              },
      

      Attachments

        1. AMBARI-2945.patch
          2 kB
          Siddharth Wagle

        Activity

          People

            swagle Siddharth Wagle
            swagle Siddharth Wagle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: