You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2014/10/27 16:04:36 UTC
[5/5] git commit: AMBARI-7983 Add absent mock data for Dashboard.
(atkach)
AMBARI-7983 Add absent mock data for Dashboard. (atkach)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4b2f1ab0
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4b2f1ab0
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4b2f1ab0
Branch: refs/heads/trunk
Commit: 4b2f1ab0c3749dbc73fb2e1f697b53c62555b06f
Parents: 51fd872
Author: atkach <at...@hortonworks.com>
Authored: Mon Oct 27 17:04:02 2014 +0200
Committer: atkach <at...@hortonworks.com>
Committed: Mon Oct 27 17:04:02 2014 +0200
----------------------------------------------------------------------
.../ambari_components/component_version.json | 7 +
.../background_operations/list_on_start.json | 48 +-
.../task_by_request12.json | 122 +-
.../task_by_request13.json | 112 +-
.../app/assets/data/cluster_metrics/cpu.json | 18 +
ambari-web/app/assets/data/clusters/info.json | 7 +-
.../data/configurations/service_versions.json | 752 ++-
.../configurations/service_versions_total.json | 8 +
.../data/hosts/HDP2/decommission_state.json | 10 +
.../app/assets/data/hosts/quick_links.json | 12 +-
.../app/assets/data/users/user_admin.json | 23 +-
ambari-web/app/assets/data/users/user_user.json | 14 +-
.../app/assets/data/wizard/stack/stacks.json | 4435 ++++++++++++++++--
ambari-web/app/utils/ajax/ajax.js | 28 +-
14 files changed, 4850 insertions(+), 746 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/4b2f1ab0/ambari-web/app/assets/data/ambari_components/component_version.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/ambari_components/component_version.json b/ambari-web/app/assets/data/ambari_components/component_version.json
new file mode 100644
index 0000000..0a8c03e
--- /dev/null
+++ b/ambari-web/app/assets/data/ambari_components/component_version.json
@@ -0,0 +1,7 @@
+{
+ "RootServiceComponents" : {
+ "component_name" : "AMBARI_SERVER",
+ "component_version" : "1.3.0",
+ "service_name" : "AMBARI"
+ }
+}
http://git-wip-us.apache.org/repos/asf/ambari/blob/4b2f1ab0/ambari-web/app/assets/data/background_operations/list_on_start.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/background_operations/list_on_start.json b/ambari-web/app/assets/data/background_operations/list_on_start.json
index 6f9a066..57a974c 100644
--- a/ambari-web/app/assets/data/background_operations/list_on_start.json
+++ b/ambari-web/app/assets/data/background_operations/list_on_start.json
@@ -2,36 +2,54 @@
"href" : "http://192.168.56.101:8080/api/v1/clusters/perf/requests?to=end&page_size=10&fields=Requests",
"items" : [
{
- "href" : "http://192.168.56.101:8080/api/v1/clusters/perf/requests/12",
+ "href" : "http://192.168.56.101:8080/api/v1/clusters/c1/requests/12",
"Requests" : {
"aborted_task_count" : 0,
- "cluster_name" : "perf",
- "completed_task_count" : 4,
+ "cluster_name" : "c1",
+ "completed_task_count" : 2,
+ "create_time" : 1414410974460,
+ "end_time" : 1414411113883,
+ "exclusive" : false,
"failed_task_count" : 0,
"id" : 12,
+ "inputs" : null,
+ "operation_level" : null,
"progress_percent" : 100.0,
"queued_task_count" : 0,
- "request_context" : "Start YARN",
+ "request_context" : "Install Services",
+ "request_schedule" : null,
"request_status" : "COMPLETED",
- "task_count" : 4,
- "timed_out_task_count" : 0
+ "resource_filters" : [ ],
+ "start_time" : 1414410974489,
+ "task_count" : 2,
+ "timed_out_task_count" : 0,
+ "type" : "INTERNAL_REQUEST"
}
},
{
- "href" : "http://192.168.56.101:8080/api/v1/clusters/perf/requests/13",
+ "href" : "http://192.168.56.101:8080/api/v1/clusters/c1/requests/13",
"Requests" : {
"aborted_task_count" : 0,
- "cluster_name" : "perf",
- "completed_task_count" : 0,
+ "cluster_name" : "c1",
+ "completed_task_count" : 2,
+ "create_time" : 1414411114097,
+ "end_time" : 1414411129173,
+ "exclusive" : false,
"failed_task_count" : 0,
"id" : 13,
- "progress_percent" : 9.0,
- "queued_task_count" : 2,
- "request_context" : "Stop YARN",
- "request_status" : "PENDING",
+ "inputs" : null,
+ "operation_level" : null,
+ "progress_percent" : 100.0,
+ "queued_task_count" : 0,
+ "request_context" : "Start Added Services",
+ "request_schedule" : null,
+ "request_status" : "COMPLETED",
+ "resource_filters" : [ ],
+ "start_time" : 1414411114179,
"task_count" : 2,
- "timed_out_task_count" : 0
+ "timed_out_task_count" : 0,
+ "type" : "INTERNAL_REQUEST"
}
}
]
-}
\ No newline at end of file
+}
http://git-wip-us.apache.org/repos/asf/ambari/blob/4b2f1ab0/ambari-web/app/assets/data/background_operations/task_by_request12.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/background_operations/task_by_request12.json b/ambari-web/app/assets/data/background_operations/task_by_request12.json
index 2b09d76..e4e92d0 100644
--- a/ambari-web/app/assets/data/background_operations/task_by_request12.json
+++ b/ambari-web/app/assets/data/background_operations/task_by_request12.json
@@ -1,90 +1,104 @@
{
- "href" : "http://192.168.56.101:8080/api/v1/clusters/perf/requests/12",
"Requests" : {
"aborted_task_count" : 0,
- "cluster_name" : "perf",
- "completed_task_count" : 4,
+ "cluster_name" : "tdk",
+ "completed_task_count" : 6,
+ "create_time" : 1414268004421,
+ "end_time" : 1414268130964,
+ "exclusive" : false,
"failed_task_count" : 0,
"id" : 12,
+ "inputs" : null,
+ "operation_level" : null,
"progress_percent" : 100.0,
"queued_task_count" : 0,
- "request_context" : "Start YARN",
+ "request_context" : "Install Services",
+ "request_schedule" : null,
"request_status" : "COMPLETED",
- "task_count" : 4,
- "timed_out_task_count" : 0
+ "resource_filters" : [ ],
+ "start_time" : 1414268004446,
+ "task_count" : 6,
+ "timed_out_task_count" : 0,
+ "type" : "INTERNAL_REQUEST"
},
"tasks" : [
{
- "href" : "http://192.168.56.101:8080/api/v1/clusters/perf/requests/12/tasks/104",
"Tasks" : {
- "attempt_cnt" : 1,
- "cluster_name" : "perf",
"command" : "INSTALL",
+ "command_detail" : "DATANODE INSTALL",
+ "end_time" : 1414268113552,
"exit_code" : 0,
"host_name" : "dev01.hortonworks.com",
- "id" : 104,
- "request_id" : 12,
- "role" : "YARN_CLIENT",
- "stage_id" : 1,
- "start_time" : 1383136640605,
- "status" : "COMPLETED",
- "stderr" : "none\nnone",
- "stdout" : "notice: Finished catalog run in 0.34 seconds\nnotice: /Stage[1]/Hdp::Snappy::Package/Hdp::Snappy::Package::Ln[32]/Hdp::Exec[hdp::snappy::package::ln 32]/Exec[hdp::snappy::package::ln 32]/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[capacity-scheduler]/File[/etc/hadoop/conf/capacity-scheduler.xml]/content: content changed '{md5}e59712560099ec0066920adb67e859ad' to '{md5}1a94219bea22e96553fbdbbfc267bab7'\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[core-site]/File[/etc/hadoop/conf/core-site.xml]/content: content changed '{md5}2a014616c8c4e5c1ddb605ef2eeb9e41' to '{md5}bb1e9813cb5e9b3aa15bf2416fb46a1f'\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[yarn-site]/File[/etc/hadoop/conf/yarn-site.xml]/content: con
tent changed '{md5}b36b012c4504fe5e51aaf68ad5a58451' to '{md5}8a2797e9e46efa077a872a10011c58d9'\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[mapred-site]/File[/etc/hadoop/conf/mapred-site.xml]/content: content changed '{md5}b33c602059dfa2977a029511714d0c50' to '{md5}0e7d90c33eb2047129dc0645d5bc1f4e'\nnotice: Finished catalog run in 2.20 seconds"
+ "id" : 18,
+ "role" : "DATANODE",
+ "start_time" : 1414268004452,
+ "status" : "COMPLETED"
}
},
{
- "href" : "http://192.168.56.101:8080/api/v1/clusters/perf/requests/12/tasks/105",
"Tasks" : {
- "attempt_cnt" : 1,
- "cluster_name" : "perf",
- "command" : "START",
+ "command" : "INSTALL",
+ "command_detail" : "HDFS_CLIENT INSTALL",
+ "end_time" : 1414268115738,
"exit_code" : 0,
"host_name" : "dev01.hortonworks.com",
- "id" : 105,
- "request_id" : 12,
- "role" : "RESOURCEMANAGER",
- "stage_id" : 2,
- "start_time" : 1383136660674,
- "status" : "COMPLETED",
- "stderr" : "none\nnone",
- "stdout" : "notice: Finished catalog run in 0.30 seconds\nnotice: /Stage[1]/Hdp::Snappy::Package/Hdp::Snappy::Package::Ln[32]/Hdp::Exec[hdp::snappy::package::ln 32]/Exec[hdp::snappy::package::ln 32]/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Resourcemanager/Hdp-yarn::Service[resourcemanager]/Hdp::Exec[su - yarn -c 'export HADOOP_LIBEXEC_DIR=/usr/lib/hadoop/libexec && /usr/lib/hadoop-yarn/sbin/yarn-daemon.sh --config /etc/hadoop/conf start resourcemanager']/Exec[su - yarn -c 'export HADOOP_LIBEXEC_DIR=/usr/lib/hadoop/libexec && /usr/lib/hadoop-yarn/sbin/yarn-daemon.sh --config /etc/hadoop/conf start resourcemanager']/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[capacity-scheduler]/File[/etc/hadoop/conf/capacity-scheduler.xml]/content: content changed '{md5}1a94219bea22e96553fbdbbfc267bab7' to '{md5}56b3ee4f1fbb941a149d5961f946393b'\nnotice: /Stage[2]
/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[core-site]/File[/etc/hadoop/conf/core-site.xml]/content: content changed '{md5}bb1e9813cb5e9b3aa15bf2416fb46a1f' to '{md5}038bf127f3e0bf12ee1137deaf719ba7'\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[yarn-site]/File[/etc/hadoop/conf/yarn-site.xml]/content: content changed '{md5}8a2797e9e46efa077a872a10011c58d9' to '{md5}8c6609272d68d6d1a8c0f923704db490'\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[mapred-site]/File[/etc/hadoop/conf/mapred-site.xml]/content: content changed '{md5}0e7d90c33eb2047129dc0645d5bc1f4e' to '{md5}e994e4fcd539a1ef69e08d9bed61c1ba'\nnotice: Finished catalog run in 5.98 seconds"
+ "id" : 19,
+ "role" : "HDFS_CLIENT",
+ "start_time" : 1414268004453,
+ "status" : "COMPLETED"
}
},
{
- "href" : "http://192.168.56.101:8080/api/v1/clusters/perf/requests/12/tasks/106",
"Tasks" : {
- "attempt_cnt" : 1,
- "cluster_name" : "perf",
- "command" : "START",
+ "command" : "INSTALL",
+ "command_detail" : "NAMENODE INSTALL",
+ "end_time" : 1414268125127,
+ "exit_code" : 0,
+ "host_name" : "dev01.hortonworks.com",
+ "id" : 20,
+ "role" : "NAMENODE",
+ "start_time" : 1414268004453,
+ "status" : "COMPLETED"
+ }
+ },
+ {
+ "Tasks" : {
+ "command" : "INSTALL",
+ "command_detail" : "SECONDARY_NAMENODE INSTALL",
+ "end_time" : 1414268127338,
"exit_code" : 0,
"host_name" : "dev01.hortonworks.com",
- "id" : 106,
- "request_id" : 12,
- "role" : "NODEMANAGER",
- "stage_id" : 3,
- "start_time" : 1383136690796,
- "status" : "COMPLETED",
- "stderr" : "none\nnone",
- "stdout" : "notice: Finished catalog run in 0.36 seconds\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[capacity-scheduler]/File[/etc/hadoop/conf/capacity-scheduler.xml]/content: content changed '{md5}56b3ee4f1fbb941a149d5961f946393b' to '{md5}59e87dbd9d64ec6f8721a3ed53555226'\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[core-site]/File[/etc/hadoop/conf/core-site.xml]/content: content changed '{md5}038bf127f3e0bf12ee1137deaf719ba7' to '{md5}13b4ee0f742eaa8e02616467e81fcaf2'\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[yarn-site]/File[/etc/hadoop/conf/yarn-site.xml]/content: content changed '{md5}8c6609272d68d6d1a8c0f923704db490' to '{md5}57a4af49bab1122d1749e20e51b1b350'\nnotice: /Stage[2]/Hdp-yarn::Nodemanager/Hdp-yarn::Nodemanager::Create_nm_dir
s[/hadoop/yarn/local]/Hdp::Directory_recursive_create_ignore_failure[/hadoop/yarn/local]/Hdp::Exec[chown yarn:hadoop /hadoop/yarn/local; exit 0]/Exec[chown yarn:hadoop /hadoop/yarn/local; exit 0]/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[mapred-site]/File[/etc/hadoop/conf/mapred-site.xml]/content: content changed '{md5}e994e4fcd539a1ef69e08d9bed61c1ba' to '{md5}42b9f8a170f46493511a8a4d76f9857a'\nnotice: /Stage[2]/Hdp-yarn::Nodemanager/Hdp-yarn::Nodemanager::Create_nm_dirs[/hadoop/yarn/local]/Hdp::Directory_recursive_create_ignore_failure[/hadoop/yarn/local]/Hdp::Exec[chmod /hadoop/yarn/local ; exit 0]/Exec[chmod /hadoop/yarn/local ; exit 0]/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Nodemanager/Hdp-yarn::Nodemanager::Create_nm_dirs[/hadoop/yarn/log]/Hdp::Directory_recursive_create_ignore_failure[/hadoop/yarn/log]/Hdp::Exec[chown yarn:hadoop /hadoop/yarn/
log; exit 0]/Exec[chown yarn:hadoop /hadoop/yarn/log; exit 0]/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Nodemanager/Hdp-yarn::Nodemanager::Create_nm_dirs[/hadoop/yarn/log]/Hdp::Directory_recursive_create_ignore_failure[/hadoop/yarn/log]/Hdp::Exec[chmod /hadoop/yarn/log ; exit 0]/Exec[chmod /hadoop/yarn/log ; exit 0]/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Nodemanager/Hdp-yarn::Service[nodemanager]/Hdp::Exec[su - yarn -c 'export HADOOP_LIBEXEC_DIR=/usr/lib/hadoop/libexec && /usr/lib/hadoop-yarn/sbin/yarn-daemon.sh --config /etc/hadoop/conf start nodemanager']/Exec[su - yarn -c 'export HADOOP_LIBEXEC_DIR=/usr/lib/hadoop/libexec && /usr/lib/hadoop-yarn/sbin/yarn-daemon.sh --config /etc/hadoop/conf start nodemanager']/returns: executed successfully\nnotice: Finished catalog run in 6.72 seconds"
+ "id" : 21,
+ "role" : "SECONDARY_NAMENODE",
+ "start_time" : 1414268004453,
+ "status" : "COMPLETED"
}
},
{
- "href" : "http://192.168.56.101:8080/api/v1/clusters/perf/requests/12/tasks/107",
"Tasks" : {
- "attempt_cnt" : 1,
- "cluster_name" : "perf",
- "command" : "EXECUTE",
+ "command" : "INSTALL",
+ "command_detail" : "ZOOKEEPER_CLIENT INSTALL",
+ "end_time" : 1414268129250,
+ "exit_code" : 0,
+ "host_name" : "dev01.hortonworks.com",
+ "id" : 22,
+ "role" : "ZOOKEEPER_CLIENT",
+ "start_time" : 1414268004453,
+ "status" : "COMPLETED"
+ }
+ },
+ {
+ "Tasks" : {
+ "command" : "INSTALL",
+ "command_detail" : "ZOOKEEPER_SERVER INSTALL",
+ "end_time" : 1414268130957,
"exit_code" : 0,
"host_name" : "dev01.hortonworks.com",
- "id" : 107,
- "request_id" : 12,
- "role" : "YARN_SERVICE_CHECK",
- "stage_id" : 4,
- "start_time" : 1383136720886,
- "status" : "COMPLETED",
- "stderr" : "none",
- "stdout" : "notice: /Stage[1]/Hdp::Snappy::Package/Hdp::Snappy::Package::Ln[32]/Hdp::Exec[hdp::snappy::package::ln 32]/Exec[hdp::snappy::package::ln 32]/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Yarn::Service_check/Hdp-yarn::Smoketest[hdp-yarn::smoketest:rm]/Exec[/tmp/validateYarnComponentStatus.py]/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Yarn::Service_check/Hdp-hadoop::Exec-hadoop[hdp-yarn::yarn::service_check]/Hdp::Exec[/usr/bin/yarn node -list]/Exec[/usr/bin/yarn node -list]/returns: executed successfully\nnotice: Finished catalog run in 6.04 seconds"
+ "id" : 23,
+ "role" : "ZOOKEEPER_SERVER",
+ "start_time" : 1414268004453,
+ "status" : "COMPLETED"
}
}
]
-}
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/4b2f1ab0/ambari-web/app/assets/data/background_operations/task_by_request13.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/background_operations/task_by_request13.json b/ambari-web/app/assets/data/background_operations/task_by_request13.json
index a39799c..3cd8ef0 100644
--- a/ambari-web/app/assets/data/background_operations/task_by_request13.json
+++ b/ambari-web/app/assets/data/background_operations/task_by_request13.json
@@ -1,54 +1,104 @@
{
- "href" : "http://192.168.56.101:8080/api/v1/clusters/perf/requests/13",
"Requests" : {
"aborted_task_count" : 0,
- "cluster_name" : "perf",
- "completed_task_count" : 2,
+ "cluster_name" : "tdk",
+ "completed_task_count" : 6,
+ "create_time" : 1414268133201,
+ "end_time" : 1414268250904,
+ "exclusive" : false,
"failed_task_count" : 0,
"id" : 13,
+ "inputs" : null,
+ "operation_level" : null,
"progress_percent" : 100.0,
"queued_task_count" : 0,
- "request_context" : "Stop YARN",
+ "request_context" : "Start Services",
+ "request_schedule" : null,
"request_status" : "COMPLETED",
- "task_count" : 2,
- "timed_out_task_count" : 0
+ "resource_filters" : [ ],
+ "start_time" : 1414268133505,
+ "task_count" : 6,
+ "timed_out_task_count" : 0,
+ "type" : "INTERNAL_REQUEST"
},
"tasks" : [
{
- "href" : "http://192.168.56.101:8080/api/v1/clusters/perf/requests/13/tasks/108",
"Tasks" : {
- "attempt_cnt" : 1,
- "cluster_name" : "perf",
- "command" : "STOP",
+ "command" : "START",
+ "command_detail" : "DATANODE START",
+ "end_time" : 1414268148833,
"exit_code" : 0,
"host_name" : "dev01.hortonworks.com",
- "id" : 108,
- "request_id" : 13,
- "role" : "NODEMANAGER",
- "stage_id" : 1,
- "start_time" : 1383136881145,
- "status" : "COMPLETED",
- "stderr" : "none\nnone",
- "stdout" : "notice: Finished catalog run in 0.35 seconds\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[capacity-scheduler]/File[/etc/hadoop/conf/capacity-scheduler.xml]/content: content changed '{md5}59e87dbd9d64ec6f8721a3ed53555226' to '{md5}47f1e2a680953e27caf4c518bb31d653'\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[core-site]/File[/etc/hadoop/conf/core-site.xml]/content: content changed '{md5}13b4ee0f742eaa8e02616467e81fcaf2' to '{md5}294366ba49f4f024b525e0c570e4b5d6'\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[yarn-site]/File[/etc/hadoop/conf/yarn-site.xml]/content: content changed '{md5}57a4af49bab1122d1749e20e51b1b350' to '{md5}84e0024220dfcf56b70b54568291f267'\nnotice: /Stage[2]/Hdp-yarn::Nodemanager/Hdp-yarn::Nodemanager::Create_nm_dir
s[/hadoop/yarn/local]/Hdp::Directory_recursive_create_ignore_failure[/hadoop/yarn/local]/Hdp::Exec[chown yarn:hadoop /hadoop/yarn/local; exit 0]/Exec[chown yarn:hadoop /hadoop/yarn/local; exit 0]/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[mapred-site]/File[/etc/hadoop/conf/mapred-site.xml]/content: content changed '{md5}42b9f8a170f46493511a8a4d76f9857a' to '{md5}64bd625c0b1d70d746a564af5ebf1bad'\nnotice: /Stage[2]/Hdp-yarn::Nodemanager/Hdp-yarn::Nodemanager::Create_nm_dirs[/hadoop/yarn/local]/Hdp::Directory_recursive_create_ignore_failure[/hadoop/yarn/local]/Hdp::Exec[chmod /hadoop/yarn/local ; exit 0]/Exec[chmod /hadoop/yarn/local ; exit 0]/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Nodemanager/Hdp-yarn::Nodemanager::Create_nm_dirs[/hadoop/yarn/log]/Hdp::Directory_recursive_create_ignore_failure[/hadoop/yarn/log]/Hdp::Exec[chown yarn:hadoop /hadoop/yarn/
log; exit 0]/Exec[chown yarn:hadoop /hadoop/yarn/log; exit 0]/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Nodemanager/Hdp-yarn::Nodemanager::Create_nm_dirs[/hadoop/yarn/log]/Hdp::Directory_recursive_create_ignore_failure[/hadoop/yarn/log]/Hdp::Exec[chmod /hadoop/yarn/log ; exit 0]/Exec[chmod /hadoop/yarn/log ; exit 0]/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Nodemanager/Hdp-yarn::Service[nodemanager]/Hdp::Exec[su - yarn -c 'export HADOOP_LIBEXEC_DIR=/usr/lib/hadoop/libexec && /usr/lib/hadoop-yarn/sbin/yarn-daemon.sh --config /etc/hadoop/conf stop nodemanager' && rm -f /var/run/hadoop-yarn/yarn/yarn-yarn-nodemanager.pid]/Exec[su - yarn -c 'export HADOOP_LIBEXEC_DIR=/usr/lib/hadoop/libexec && /usr/lib/hadoop-yarn/sbin/yarn-daemon.sh --config /etc/hadoop/conf stop nodemanager' && rm -f /var/run/hadoop-yarn/yarn/yarn-yarn-nodemanager.pid]/returns: executed successfully\nnotice: Finished catalog run in 9.74 seconds"
+ "id" : 24,
+ "role" : "DATANODE",
+ "start_time" : 1414268133535,
+ "status" : "COMPLETED"
}
},
{
- "href" : "http://192.168.56.101:8080/api/v1/clusters/perf/requests/13/tasks/109",
"Tasks" : {
- "attempt_cnt" : 1,
- "cluster_name" : "perf",
- "command" : "STOP",
+ "command" : "START",
+ "command_detail" : "ZOOKEEPER_SERVER START",
+ "end_time" : 1414268154823,
"exit_code" : 0,
"host_name" : "dev01.hortonworks.com",
- "id" : 109,
- "request_id" : 13,
- "role" : "RESOURCEMANAGER",
- "stage_id" : 1,
- "start_time" : 1383136881161,
- "status" : "COMPLETED",
- "stderr" : "none\nnone",
- "stdout" : "notice: Finished catalog run in 0.33 seconds\nnotice: /Stage[1]/Hdp::Snappy::Package/Hdp::Snappy::Package::Ln[32]/Hdp::Exec[hdp::snappy::package::ln 32]/Exec[hdp::snappy::package::ln 32]/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Resourcemanager/Hdp-yarn::Service[resourcemanager]/Hdp::Exec[su - yarn -c 'export HADOOP_LIBEXEC_DIR=/usr/lib/hadoop/libexec && /usr/lib/hadoop-yarn/sbin/yarn-daemon.sh --config /etc/hadoop/conf stop resourcemanager' && rm -f /var/run/hadoop-yarn/yarn/yarn-yarn-resourcemanager.pid]/Exec[su - yarn -c 'export HADOOP_LIBEXEC_DIR=/usr/lib/hadoop/libexec && /usr/lib/hadoop-yarn/sbin/yarn-daemon.sh --config /etc/hadoop/conf stop resourcemanager' && rm -f /var/run/hadoop-yarn/yarn/yarn-yarn-resourcemanager.pid]/returns: executed successfully\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[capacity-scheduler]/File[/etc/hadoop/conf/capacity-scheduler.xml
]/content: content changed '{md5}47f1e2a680953e27caf4c518bb31d653' to '{md5}ab4b3cc359696959e717199d1c32c801'\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[core-site]/File[/etc/hadoop/conf/core-site.xml]/content: content changed '{md5}294366ba49f4f024b525e0c570e4b5d6' to '{md5}98307cdb6f5f3f784ddeea06007f41dd'\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[yarn-site]/File[/etc/hadoop/conf/yarn-site.xml]/content: content changed '{md5}84e0024220dfcf56b70b54568291f267' to '{md5}2ccbcd93fafa01e5bb16a02a3ad4f140'\nnotice: /Stage[2]/Hdp-yarn::Initialize/Hdp-yarn::Generate_common_configs[yarn-common-configs]/Configgenerator::Configfile[mapred-site]/File[/etc/hadoop/conf/mapred-site.xml]/content: content changed '{md5}64bd625c0b1d70d746a564af5ebf1bad' to '{md5}d83da56274ffaccaf451eb39b309f989'\nnotice: Finished catalog run in 7.47 seconds"
+ "id" : 25,
+ "role" : "ZOOKEEPER_SERVER",
+ "start_time" : 1414268133554,
+ "status" : "COMPLETED"
+ }
+ },
+ {
+ "Tasks" : {
+ "command" : "START",
+ "command_detail" : "NAMENODE START",
+ "end_time" : 1414268198173,
+ "exit_code" : 0,
+ "host_name" : "dev01.hortonworks.com",
+ "id" : 26,
+ "role" : "NAMENODE",
+ "start_time" : 1414268163948,
+ "status" : "COMPLETED"
+ }
+ },
+ {
+ "Tasks" : {
+ "command" : "SERVICE_CHECK",
+ "command_detail" : "SERVICE_CHECK ZOOKEEPER",
+ "end_time" : 1414268204709,
+ "exit_code" : 0,
+ "host_name" : "dev01.hortonworks.com",
+ "id" : 27,
+ "role" : "ZOOKEEPER_QUORUM_SERVICE_CHECK",
+ "start_time" : 1414268163949,
+ "status" : "COMPLETED"
+ }
+ },
+ {
+ "Tasks" : {
+ "command" : "START",
+ "command_detail" : "SECONDARY_NAMENODE START",
+ "end_time" : 1414268221030,
+ "exit_code" : 0,
+ "host_name" : "dev01.hortonworks.com",
+ "id" : 28,
+ "role" : "SECONDARY_NAMENODE",
+ "start_time" : 1414268214082,
+ "status" : "COMPLETED"
+ }
+ },
+ {
+ "Tasks" : {
+ "command" : "SERVICE_CHECK",
+ "command_detail" : "SERVICE_CHECK HDFS",
+ "end_time" : 1414268250633,
+ "exit_code" : 0,
+ "host_name" : "dev01.hortonworks.com",
+ "id" : 29,
+ "role" : "HDFS_SERVICE_CHECK",
+ "start_time" : 1414268224109,
+ "status" : "COMPLETED"
}
}
]
-}
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ambari/blob/4b2f1ab0/ambari-web/app/assets/data/cluster_metrics/cpu.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/cluster_metrics/cpu.json b/ambari-web/app/assets/data/cluster_metrics/cpu.json
new file mode 100644
index 0000000..91faedb
--- /dev/null
+++ b/ambari-web/app/assets/data/cluster_metrics/cpu.json
@@ -0,0 +1,18 @@
+{
+ "Hosts" : {
+ "cluster_name" : "tdk",
+ "host_name" : "dev01.hortonworks.com"
+ },
+ "metrics" : {
+ "cpu" : {
+ "cpu_aidle" : 0.0,
+ "cpu_idle" : 83.32,
+ "cpu_nice" : 0.0,
+ "cpu_num" : 1.0,
+ "cpu_speed" : 2961.0,
+ "cpu_system" : 4.48,
+ "cpu_user" : 4.99333333333,
+ "cpu_wio" : 7.11333333333
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/ambari/blob/4b2f1ab0/ambari-web/app/assets/data/clusters/info.json
----------------------------------------------------------------------
diff --git a/ambari-web/app/assets/data/clusters/info.json b/ambari-web/app/assets/data/clusters/info.json
index 30f5c7f..072af2f 100644
--- a/ambari-web/app/assets/data/clusters/info.json
+++ b/ambari-web/app/assets/data/clusters/info.json
@@ -1,12 +1,11 @@
{
- "href" : "http://ec2-23-20-184-220.compute-1.amazonaws.com:8080/api/v1/clusters",
"items" : [
{
- "href" : "http://ec2-23-20-184-220.compute-1.amazonaws.com:8080/api/v1/clusters/tdk",
"Clusters" : {
"cluster_name" : "tdk",
- "version" : "HDP-2.0.5"
+ "provisioning_state" : "INSTALLED",
+ "version" : "HDP-2.0.1"
}
}
]
-}
\ No newline at end of file
+}