Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
2.5.2
-
None
Description
UI should be able to parse "Update include/exclude files" host action
Currently requests looks like :
On delete slave
{ "Requests" : { "aborted_task_count" : 0, "cluster_host_info" : "{\"all_racks\":[\"/default-rack:0-2\"],\"activity_analyzer_hosts\":[\"1\"],\"ambari_server_host\":[\"node1\"],\"app_timeline_server_hosts\":[\"0\"],\"ambari_server_use_ssl\":[\"false\"],\"hst_server_hosts\":[\"1\"],\"metrics_monitor_hosts\":[\"0-2\"],\"ambari_server_port\":[\"8080\"],\"metrics_collector_hosts\":[\"1\"],\"hs_host\":[\"0\"],\"namenode_host\":[\"1\"],\"zookeeper_hosts\":[\"0,1\"],\"snamenode_host\":[\"0\"],\"all_ping_ports\":[\"8670:0-2\"],\"slave_hosts\":[\"0,1\"],\"all_hosts\":[\"node1\"],\"all_ipv4_ips\":[\"172.22.66.150:2\",\"172.22.66.15:0\",\"172.22.66.148:1\"],\"metrics_grafana_hosts\":[\"1\"],\"hst_agent_hosts\":[\"0-2\"],\"nm_hosts\":[\"0-2\"],\"activity_explorer_hosts\":[\"1\"],\"rm_host\":[\"0\"]}", "cluster_name" : "cl1", "completed_task_count" : 1, "create_time" : 1501836971166, "end_time" : 1501836976978, "exclusive" : true, "failed_task_count" : 0, "id" : 23, "inputs" : "{\"update_files_only\":\"false\",\"multi_services_decom_request\":\"true\"}", "operation_level" : null, "progress_percent" : 100.0, "queued_task_count" : 0, "request_context" : "Update Include and Exclude Files for [HDFS]", "request_schedule" : null, "request_status" : "COMPLETED", "resource_filters" : [ { "service_name" : "HDFS", "component_name" : "NAMENODE" } ], "start_time" : 1501836971190, "task_count" : 1, "timed_out_task_count" : 0, "type" : "COMMAND" }, "stages" : [ { } ], "tasks" : [ { "Tasks" : { "command" : "CUSTOM_COMMAND", "command_detail" : "DECOMMISSION", "host_name" : "node1", "id" : 88, "request_id" : 23, "role" : "NAMENODE", "status" : "COMPLETED" } } ] }
On add slave
{ "Requests" : { "aborted_task_count" : 0, "cluster_host_info" : "{\"all_racks\":[\"/default-rack:0-2\"],\"activity_analyzer_hosts\":[\"1\"],\"ambari_server_host\":[\"node1\"],\"app_timeline_server_hosts\":[\"0\"],\"ambari_server_use_ssl\":[\"false\"],\"hst_server_hosts\":[\"1\"],\"metrics_monitor_hosts\":[\"0-2\"],\"ambari_server_port\":[\"8080\"],\"metrics_collector_hosts\":[\"1\"],\"hs_host\":[\"0\"],\"namenode_host\":[\"1\"],\"zookeeper_hosts\":[\"0,1\"],\"snamenode_host\":[\"0\"],\"all_ping_ports\":[\"8670:0-2\"],\"slave_hosts\":[\"0-2\"],\"all_hosts\":[\"node1\"],\"all_ipv4_ips\":[\"172.22.66.150:2\",\"172.22.66.15:0\",\"172.22.66.148:1\"],\"metrics_grafana_hosts\":[\"1\"],\"hst_agent_hosts\":[\"0-2\"],\"nm_hosts\":[\"0-2\"],\"activity_explorer_hosts\":[\"1\"],\"rm_host\":[\"0\"]}", "cluster_name" : "cl1", "completed_task_count" : 0, "create_time" : 1501837064579, "end_time" : -1, "exclusive" : true, "failed_task_count" : 0, "id" : 25, "inputs" : "{\"update_files_only\":\"false\",\"NAMENODE_included_hosts\":\"node1\",\"multi_services_decom_request\":\"true\"}", "operation_level" : null, "progress_percent" : 0.0, "queued_task_count" : 0, "request_context" : "Update Include and Exclude Files for [HDFS]", "request_schedule" : null, "request_status" : "PENDING", "resource_filters" : [ { "service_name" : "HDFS", "component_name" : "NAMENODE" } ], "start_time" : -1, "task_count" : 1, "timed_out_task_count" : 0, "type" : "COMMAND" }, "stages" : [ { } ], "tasks" : [ { "Tasks" : { "command" : "CUSTOM_COMMAND", "command_detail" : "DECOMMISSION, Included: node1", "host_name" : "node1", "id" : 89, "request_id" : 25, "role" : "NAMENODE", "status" : "PENDING" } } ] }