Repository: ambari Updated Branches: refs/heads/trunk 645544a99 -> e9bf18ee8
AMBARI-5980. Usability: add JDK check in Host Checks UI. (xiwang via yusaku) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e9bf18ee Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e9bf18ee Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e9bf18ee Branch: refs/heads/trunk Commit: e9bf18ee887a543017a2ded3735f05f1b0d4c30c Parents: 645544a Author: Yusaku Sako <[email protected]> Authored: Mon Jun 9 10:56:09 2014 -0700 Committer: Yusaku Sako <[email protected]> Committed: Mon Jun 9 10:56:09 2014 -0700 ---------------------------------------------------------------------- .../requests/host_check/jdk_check_results.json | 78 ++++++++++++++++++++ .../data/requests/host_check/jdk_name.json | 12 +++ 2 files changed, 90 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/e9bf18ee/ambari-web/app/assets/data/requests/host_check/jdk_check_results.json ---------------------------------------------------------------------- diff --git a/ambari-web/app/assets/data/requests/host_check/jdk_check_results.json b/ambari-web/app/assets/data/requests/host_check/jdk_check_results.json new file mode 100644 index 0000000..c8315a9 --- /dev/null +++ b/ambari-web/app/assets/data/requests/host_check/jdk_check_results.json @@ -0,0 +1,78 @@ +{ + "href": "http://c6404.ambari.apache.org:8080/api/v1/requests/51?fields=*,tasks/Tasks/host_name,tasks/Tasks/status,tasks/Tasks/structured_out/", + "Requests": { + "aborted_task_count": 0, + "completed_task_count": 3, + "create_time": 1401908998744, + "end_time": 1401909032248, + "failed_task_count": 0, + "id": 51, + "inputs": "{\"check_execute_list\":\"java_home_check\",\"java_home\":\"/usr/jdk64/jdk1.7.0_58\",\"jdk_location\":\"http://c6404.ambari.apache.org:8080/resources/\",\"script_type\":\"PYTHON\",\"script\":\"check_host.py\",\"command_timeout\":\"60\",\"threshold\":\"60\"}", + "operation_level": null, + "progress_percent": 100, + "queued_task_count": 0, + "request_context": "Check hosts", + "request_schedule": null, + "request_status": "COMPLETED", + "resource_filters": [ + { + "hosts": [ + "c6404.ambari.apache.org", + "c6405.ambari.apache.org", + "c6406.ambari.apache.org" + ] + } + ], + "start_time": 1401908998787, + "task_count": 3, + "timed_out_task_count": 0, + "type": "ACTION" + }, + "tasks": [ + { + "href": "http://c6404.ambari.apache.org:8080/api/v1/requests/51/tasks/187", + "Tasks": { + "host_name": "c6404.ambari.apache.org", + "id": 187, + "request_id": 51, + "status": "COMPLETED", + "structured_out": { + "java_home_check": { + "message": "Java home exist!", + "exit_code": "0" + } + } + } + }, + { + "href": "http://c6404.ambari.apache.org:8080/api/v1/requests/51/tasks/188", + "Tasks": { + "host_name": "c6405.ambari.apache.org", + "id": 188, + "request_id": 51, + "status": "COMPLETED", + "structured_out": { + "java_home_check": { + "message": "Java home doesn't exist!", + "exit_code": "1" + } + } + } + }, + { + "href": "http://c6404.ambari.apache.org:8080/api/v1/requests/51/tasks/189", + "Tasks": { + "host_name": "c6406.ambari.apache.org", + "id": 189, + "request_id": 51, + "status": "COMPLETED", + "structured_out": { + "java_home_check": { + "message": "Java home doesn't exist!", + "exit_code": "1" + } + } + } + } + ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/e9bf18ee/ambari-web/app/assets/data/requests/host_check/jdk_name.json ---------------------------------------------------------------------- diff --git a/ambari-web/app/assets/data/requests/host_check/jdk_name.json b/ambari-web/app/assets/data/requests/host_check/jdk_name.json new file mode 100644 index 0000000..9ca084a --- /dev/null +++ b/ambari-web/app/assets/data/requests/host_check/jdk_name.json @@ -0,0 +1,12 @@ +{ + "href" : "http://c6404.ambari.apache.org:8080/api/v1/services/AMBARI/components/AMBARI_SERVER?fields=RootServiceComponents/properties/jdk.name,RootServiceComponents/properties/java.home,RootServiceComponents/properties/jdk_location", + "RootServiceComponents" : { + "component_name" : "AMBARI_SERVER", + "service_name" : "AMBARI", + "properties" : { + "java.home" : "/usr/jdk64/jdk1.7.0_58", + "jdk_location" : "http://c6404.ambari.apache.org:8080/resources/", + "jdk.name": "jdk-7u45-linux-x64.tar.gz" + } + } +} \ No newline at end of file
