ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-6698) Expose Stack Service Information For Commands
Date Thu, 31 Jul 2014 17:29:40 GMT

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

Jonathan Hurley updated AMBARI-6698:
------------------------------------

    Description: 
There is an issue currently with the web client where it allows service check commands to
be executed on every service, even if that service does not support service checks. This is
because stack information about commands and command scripts is not exposed via the REST APIs.

- Expose whether or a not service checks are supported on each service.
- Expose the custom commands that are defined for each service.

GET http://localhost:8080/api/v1/stacks/HDP/versions/2.0.6/services/HDFS
{code}
{
  "href" : "http://localhost:8080/api/v1/stacks/HDP/versions/2.0.6/services/HDFS",
  "StackServices" : {
    "comments" : "Apache Hadoop Distributed File System",
    "custom_commands" : [ ],
    "service_check_supported" : true,
    "service_name" : "HDFS",
    "service_version" : "2.1.0.2.0",
    "stack_name" : "HDP",
    "stack_version" : "2.0.6",
    "user_name" : null,
    ...
{code}

GET http://localhost:8080/api/v1/stacks/HDP/versions/2.0.6/services/HDFS/components/NAMENODE
{code}
{
  "href" : "http://localhost:8080/api/v1/stacks/HDP/versions/2.0.6/services/HDFS/components/NAMENODE",
  "StackServiceComponents" : {
    "cardinality" : "1-2",
    "component_category" : "MASTER",
    "component_name" : "NAMENODE",
    "custom_commands" : [
      "DECOMMISSION"
    ],
    "is_client" : false,
    ...
{code}

  was:
There is an issue currently with the web client where it allows service check commands to
be executed on every service, even if that service does not support service checks. This is
because stack information about commands and command scripts is not exposed via the REST APIs.

- Expose whether or a not service checks are supported on each service.
- Expose the custom commands that are defined for each service.


> Expose Stack Service Information For Commands
> ---------------------------------------------
>
>                 Key: AMBARI-6698
>                 URL: https://issues.apache.org/jira/browse/AMBARI-6698
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: 1.7.0
>
>
> There is an issue currently with the web client where it allows service check commands
to be executed on every service, even if that service does not support service checks. This
is because stack information about commands and command scripts is not exposed via the REST
APIs.
> - Expose whether or a not service checks are supported on each service.
> - Expose the custom commands that are defined for each service.
> GET http://localhost:8080/api/v1/stacks/HDP/versions/2.0.6/services/HDFS
> {code}
> {
>   "href" : "http://localhost:8080/api/v1/stacks/HDP/versions/2.0.6/services/HDFS",
>   "StackServices" : {
>     "comments" : "Apache Hadoop Distributed File System",
>     "custom_commands" : [ ],
>     "service_check_supported" : true,
>     "service_name" : "HDFS",
>     "service_version" : "2.1.0.2.0",
>     "stack_name" : "HDP",
>     "stack_version" : "2.0.6",
>     "user_name" : null,
>     ...
> {code}
> GET http://localhost:8080/api/v1/stacks/HDP/versions/2.0.6/services/HDFS/components/NAMENODE
> {code}
> {
>   "href" : "http://localhost:8080/api/v1/stacks/HDP/versions/2.0.6/services/HDFS/components/NAMENODE",
>   "StackServiceComponents" : {
>     "cardinality" : "1-2",
>     "component_category" : "MASTER",
>     "component_name" : "NAMENODE",
>     "custom_commands" : [
>       "DECOMMISSION"
>     ],
>     "is_client" : false,
>     ...
> {code}



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

Mime
View raw message