ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srimanth Gunturi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-5863) Slider Apps view API for app does not populate subresources
Date Fri, 23 May 2014 01:42:01 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-5863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Srimanth Gunturi updated AMBARI-5863:
-------------------------------------

    Attachment: AMBARI-5863.patch

Review at https://reviews.apache.org/r/21840/

Now the following response is given {{/api/v1/views/SLIDER/versions/1.0.0/instances/SLIDER_1/apps/1399950379868_11}}
{code}

{
  "href" : "http://c6401:8080/api/v1/views/SLIDER/versions/1.0.0/instances/SLIDER_1/apps/1399950379868_11",
  "diagnostics" : "",
  "endTime" : 0,
  "id" : "1399950379868_11",
  "instance_name" : "SLIDER_1",
  "jmx" : null,
  "name" : "hoya10",
  "startTime" : 1400786040811,
  "state" : "RUNNING",
  "type" : "org.apache.slider",
  "user" : "hdfs",
  "version" : "1.0.0",
  "view_name" : "SLIDER",
  "yarnId" : "application_1399950379868_0011",
  "components" : {
    "HBASE_MASTER" : {
      "componentName" : "HBASE_MASTER",
      "instanceCount" : 0,
      "activeContainers" : {
        "container_1399950379868_0011_01_000002" : {
          "released" : "false",
          "startTime" : "1400786049770",
          "createTime" : "1400786049587",
          "environment" : "[AGENT_WORK_ROOT=\"$PWD\", HADOOP_USER_NAME=\"hdfs\", AGENT_LOG_ROOT=\"$LOG_DIRS\",
MALLOC_ARENA_MAX=\"4\"]",
          "host" : "c6401.ambari.apache.org",
          "name" : "container_1399950379868_0011_01_000002",
          "command" : "python ./infra/agent/slider-agent/agent/main.py --label container_1399950379868_0011_01_000002___HBASE_MASTER
--host c6401.ambari.apache.org --port 54586 ; ",
          "state" : "3",
          "role" : "HBASE_MASTER",
          "exitCode" : "0",
          "diagnostics" : "",
          "roleId" : "1"
        }
      },
      "completedContainers" : { }
    },
    "HBASE_REGIONSERVER" : {
      "componentName" : "HBASE_REGIONSERVER",
      "instanceCount" : 0,
      "activeContainers" : {
        "container_1399950379868_0011_01_000003" : {
          "released" : "false",
          "startTime" : "1400786050141",
          "createTime" : "1400786050123",
          "environment" : "[AGENT_WORK_ROOT=\"$PWD\", HADOOP_USER_NAME=\"hdfs\", AGENT_LOG_ROOT=\"$LOG_DIRS\",
MALLOC_ARENA_MAX=\"4\"]",
          "host" : "c6401.ambari.apache.org",
          "name" : "container_1399950379868_0011_01_000003",
          "command" : "python ./infra/agent/slider-agent/agent/main.py --label container_1399950379868_0011_01_000003___HBASE_REGIONSERVER
--host c6401.ambari.apache.org --port 54586 ; ",
          "state" : "3",
          "role" : "HBASE_REGIONSERVER",
          "exitCode" : "0",
          "diagnostics" : "",
          "roleId" : "2"
        }
      },
      "completedContainers" : { }
    },
    "slider-appmaster" : {
      "componentName" : "slider-appmaster",
      "instanceCount" : 0,
      "activeContainers" : {
        "container_1399950379868_0011_01_000001" : {
          "released" : "false",
          "startTime" : "0",
          "createTime" : "0",
          "host" : "c6401.ambari.apache.org",
          "name" : "container_1399950379868_0011_01_000001",
          "command" : "",
          "state" : "3",
          "role" : "slider-appmaster",
          "exitCode" : "0",
          "diagnostics" : "",
          "roleId" : "0"
        }
      },
      "completedContainers" : { }
    }
  },
  "configs" : {
    "core-site" : {
      "fs.defaultFS" : "hdfs://c6401.ambari.apache.org:8020"
    },
    "global" : {
      "app_install_dir" : "/hadoop/yarn/local/usercache/hdfs/appcache/application_1399950379868_0011/container_1399950379868_0011_01_000002/app/install",
      "app_log_dir" : "/hadoop/yarn/log/application_1399950379868_0011/container_1399950379868_0011_01_000002/app/log",
      "app_pid_dir" : "/hadoop/yarn/local/usercache/hdfs/appcache/application_1399950379868_0011/container_1399950379868_0011_01_000002/app/run",
      "app_root" : "/hadoop/yarn/local/usercache/hdfs/appcache/application_1399950379868_0011/container_1399950379868_0011_01_000002/app/install/hbase-0.96.1-hadoop2",
      "app_user" : "yarn",
      "ganglia_server_host" : "c6401.ambari.apache.org",
      "ganglia_server_id" : "Application1",
      "ganglia_server_port" : "8663",
      "hbase_master_heapsize" : "1024m",
      "hbase_regionserver_heapsize" : "1024m",
      "security_enabled" : "false",
      "user_group" : "hadoop"
    },
    "hbase-site" : {
      "hbase.client.keyvalue.maxsize" : "10485760",
      "hbase.client.scanner.caching" : "100",
      "hbase.cluster.distributed" : "true",
      "hbase.defaults.for.version.skip" : "true",
      "hbase.hregion.majorcompaction" : "86400000",
      "hbase.hregion.max.filesize" : "10737418240",
      "hbase.hregion.memstore.block.multiplier" : "2",
      "hbase.hregion.memstore.flush.size" : "134217728",
      "hbase.hregion.memstore.mslab.enabled" : "true",
      "hbase.hstore.blockingStoreFiles" : "10",
      "hbase.hstore.compactionThreshold" : "3",
      "hbase.hstore.flush.retries.number" : "120",
      "hbase.local.dir" : "${hbase.tmp.dir}/local",
      "hbase.master.info.port" : "35844",
      "hbase.regionserver.global.memstore.lowerLimit" : "0.38",
      "hbase.regionserver.global.memstore.upperLimit" : "0.4",
      "hbase.regionserver.handler.count" : "60",
      "hbase.regionserver.info.port" : "0",
      "hbase.regionserver.port" : "0",
      "hbase.rootdir" : "hdfs://c6401.ambari.apache.org:8020/apps/hbase/data",
      "hbase.security.authentication" : "simple",
      "hbase.security.authorization" : "false",
      "hbase.stagingdir" : "hdfs://c6401.ambari.apache.org:8020/apps/hbase/staging",
      "hbase.superuser" : "yarn",
      "hbase.tmp.dir" : "/hadoop/yarn/local/usercache/hdfs/appcache/application_1399950379868_0011/container_1399950379868_0011_01_000002/work/app/tmp",
      "hbase.zookeeper.property.clientPort" : "2181",
      "hbase.zookeeper.quorum" : "c6401.ambari.apache.org",
      "hbase.zookeeper.useMulti" : "true",
      "hfile.block.cache.size" : "0.40",
      "zookeeper.session.timeout" : "30000",
      "zookeeper.znode.parent" : "/hbase-unsecure"
    },
    "hdfs-site" : {
      "dfs.namenode.http-address" : "c6401.ambari.apache.org:50070",
      "dfs.namenode.https-address" : "c6401.ambari.apache.org:50470"
    },
    "yarn-site" : {
      "yarn.acl.enable" : "true",
      "yarn.admin.acl" : "*",
      "yarn.application.classpath" : "/etc/hadoop/conf,/usr/lib/hadoop/*,/usr/lib/hadoop/lib/*,/usr/lib/hadoop-hdfs/*,/usr/lib/hadoop-hdfs/lib/*,/usr/lib/hadoop-yarn/*,/usr/lib/hadoop-yarn/lib/*,/usr/lib/hadoop-mapreduce/*,/usr/lib/hadoop-mapreduce/lib/*",
      "yarn.log-aggregation-enable" : "true",
      "yarn.log-aggregation.retain-seconds" : "2592000",
      "yarn.log.server.url" : "http://c6401.ambari.apache.org:19888/jobhistory/logs",
      "yarn.nodemanager.address" : "0.0.0.0:45454",
      "yarn.nodemanager.admin-env" : "MALLOC_ARENA_MAX=$MALLOC_ARENA_MAX",
      "yarn.nodemanager.aux-services" : "mapreduce_shuffle",
      "yarn.nodemanager.aux-services.mapreduce_shuffle.class" : "org.apache.hadoop.mapred.ShuffleHandler",
      "yarn.nodemanager.container-executor.class" : "org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor",
      "yarn.nodemanager.container-monitor.interval-ms" : "3000",
      "yarn.nodemanager.delete.debug-delay-sec" : "0",
      "yarn.nodemanager.disk-health-checker.min-healthy-disks" : "0.25",
      "yarn.nodemanager.health-checker.interval-ms" : "135000",
      "yarn.nodemanager.health-checker.script.timeout-ms" : "60000",
      "yarn.nodemanager.linux-container-executor.group" : "hadoop",
      "yarn.nodemanager.local-dirs" : "/hadoop/yarn/local",
      "yarn.nodemanager.log-aggregation.compression-type" : "gz",
      "yarn.nodemanager.log-dirs" : "/hadoop/yarn/log",
      "yarn.nodemanager.log.retain-second" : "604800",
      "yarn.nodemanager.remote-app-log-dir" : "/app-logs",
      "yarn.nodemanager.remote-app-log-dir-suffix" : "logs",
      "yarn.nodemanager.resource.memory-mb" : "2048",
      "yarn.nodemanager.vmem-check-enabled" : "false",
      "yarn.nodemanager.vmem-pmem-ratio" : "2.1",
      "yarn.resourcemanager.address" : "c6401.ambari.apache.org:8050",
      "yarn.resourcemanager.admin.address" : "c6401.ambari.apache.org:8141",
      "yarn.resourcemanager.am.max-attempts" : "2",
      "yarn.resourcemanager.hostname" : "c6401.ambari.apache.org",
      "yarn.resourcemanager.nodes.exclude-path" : "/etc/hadoop/conf/yarn.exclude",
      "yarn.resourcemanager.resource-tracker.address" : "c6401.ambari.apache.org:8025",
      "yarn.resourcemanager.scheduler.address" : "c6401.ambari.apache.org:8030",
      "yarn.resourcemanager.scheduler.class" : "org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler",
      "yarn.resourcemanager.webapp.address" : "c6401.ambari.apache.org:8088",
      "yarn.scheduler.maximum-allocation-mb" : "2048",
      "yarn.scheduler.minimum-allocation-mb" : "682",
      "yarn.timeline-service.address" : "c6401.ambari.apache.org:10200",
      "yarn.timeline-service.enabled" : "true",
      "yarn.timeline-service.generic-application-history.store-class" : "org.apache.hadoop.yarn.server.applicationhistoryservice.NullApplicationHistoryStore",
      "yarn.timeline-service.leveldb-timeline-store.path" : "/var/log/hadoop-yarn/timeline",
      "yarn.timeline-service.leveldb-timeline-store.ttl-interval-ms" : "300000",
      "yarn.timeline-service.store-class" : "org.apache.hadoop.yarn.server.applicationhistoryservice.timeline.LeveldbTimelineStore",
      "yarn.timeline-service.ttl-enable" : "true",
      "yarn.timeline-service.ttl-ms" : "2678400000",
      "yarn.timeline-service.webapp.address" : "c6401.ambari.apache.org:8188",
      "yarn.timeline-service.webapp.https.address" : "c6401.ambari.apache.org:8190"
    }
  },
  "urls" : {
    "JMX" : "http://c6401.ambari.apache.org:35844/jmx",
    "Metrics" : "http://c6401.ambari.apache.org/cgi-bin/rrd.py?c=Application1",
    "UI" : "http://c6401.ambari.apache.org:35844/master-status"
  }
}
{code}

> Slider Apps view API for app does not populate subresources
> -----------------------------------------------------------
>
>                 Key: AMBARI-5863
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5863
>             Project: Ambari
>          Issue Type: Task
>          Components: client
>    Affects Versions: 1.6.1
>            Reporter: Srimanth Gunturi
>            Assignee: Srimanth Gunturi
>             Fix For: 1.6.1
>
>         Attachments: AMBARI-5863.patch
>
>
> API for app and apps does not provide sub resources like JMX, quick links, configs, etc.
> {code}
> {
>       "href" : "http://c6401:8080/api/v1/views/SLIDER/versions/1.0.0/instances/SLIDER_1/apps/1399950379868_2",
>       "components" : null,
>       "configs" : null,
>       "diagnostics" : "freeze command issued",
>       "endTime" : 1400741208154,
>       "id" : "1399950379868_2",
>       "instance_name" : "SLIDER_1",
>       "jmx" : null,
>       "name" : "hoya1",
>       "startTime" : 1400740740784,
>       "state" : "FINISHED",
>       "type" : "org.apache.slider",
>       "urls" : null,
>       "user" : "hdfs",
>       "version" : "1.0.0",
>       "view_name" : "SLIDER",
>       "yarnId" : "application_1399950379868_0002"
>     },
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message