Permalink
Browse files

AMBARI-1059. Refactor cluster management. (yusaku)

  • Loading branch information...
1 parent 6497697 commit ec1abe07667f65636846fc42e5e1bd91d552acb2 Yusaku Sako committed Dec 9, 2012
Showing with 800 additions and 508 deletions.
  1. +352 −0 ambari-web/app/assets/data/wizard/stack/hdp/version/1.2.0.json
  2. +3 −2 ambari-web/app/controllers/global/cluster_controller.js
  3. +9 −17 ambari-web/app/controllers/global/update_controller.js
  4. +6 −1 ambari-web/app/controllers/main/service.js
  5. +12 −11 ambari-web/app/controllers/main/service/add_controller.js
  6. +21 −13 ambari-web/app/controllers/wizard/step3_controller.js
  7. +1 −1 ambari-web/app/controllers/wizard/step7_controller.js
  8. +6 −0 ambari-web/app/controllers/wizard/step8_controller.js
  9. +4 −3 ambari-web/app/controllers/wizard/step9_controller.js
  10. +10 −15 ambari-web/app/mappers/hosts_mapper.js
  11. +210 −343 ambari-web/app/mappers/service_mapper.js
  12. +5 −1 ambari-web/app/routes/add_host_routes.js
  13. +4 −0 ambari-web/app/routes/add_service_routes.js
  14. +4 −0 ambari-web/app/routes/installer.js
  15. +49 −46 ambari-web/app/routes/main.js
  16. +13 −0 ambari-web/app/styles/application.less
  17. +0 −8 ambari-web/app/templates/main/service/info/configs.hbs
  18. +2 −3 ambari-web/app/templates/main/service/menu_item.hbs
  19. +2 −2 ambari-web/app/templates/wizard/step7.hbs
  20. +14 −1 ambari-web/app/views/common/chart/linear_time.js
  21. +2 −0 ambari-web/app/views/main/charts/heatmap.js
  22. +27 −9 ambari-web/app/views/main/dashboard.js
  23. +5 −5 ambari-web/app/views/main/dashboard/service/hbase.js
  24. +11 −5 ambari-web/app/views/main/dashboard/service/hdfs.js
  25. +14 −10 ambari-web/app/views/main/dashboard/service/mapreduce.js
  26. +0 −2 ambari-web/app/views/main/service/info/configs.js
  27. +3 −1 ambari-web/app/views/main/service/info/summary.js
  28. +4 −7 ambari-web/app/views/main/service/menu.js
  29. +7 −2 ambari-web/app/views/wizard/step7_view.js
@@ -0,0 +1,352 @@
+{
+ "name" : "HDP",
+ "version" : "1.2.0",
+ "repositories" : [ {
+ "baseUrl" : "http://s3.amazonaws.com/dev.hortonworks.com/HDP-1.2.0/repos/centos6",
+ "osType" : "centos6",
+ "repoId" : "HDP-1.2.0",
+ "repoName" : "HDP",
+ "mirrorsList" : null
+ }, {
+ "baseUrl" : null,
+ "osType" : "centos6",
+ "repoId" : "HDP-epel",
+ "repoName" : "HDP-epel",
+ "mirrorsList" : "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch"
+ }, {
+ "baseUrl" : "http://s3.amazonaws.com/dev.hortonworks.com/HDP-1.2.0/repos/centos5",
+ "osType" : "centos5",
+ "repoId" : "HDP-1.2.0",
+ "repoName" : "HDP",
+ "mirrorsList" : null
+ }, {
+ "baseUrl" : null,
+ "osType" : "centos5",
+ "repoId" : "HDP-epel",
+ "repoName" : "HDP-epel",
+ "mirrorsList" : "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch"
+ }, {
+ "baseUrl" : "http://s3.amazonaws.com/dev.hortonworks.com/HDP-1.2.0/repos/centos6",
+ "osType" : "redhat6",
+ "repoId" : "HDP-1.2.0",
+ "repoName" : "HDP",
+ "mirrorsList" : null
+ }, {
+ "baseUrl" : null,
+ "osType" : "redhat6",
+ "repoId" : "HDP-epel",
+ "repoName" : "HDP-epel",
+ "mirrorsList" : "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch"
+ }, {
+ "baseUrl" : "http://s3.amazonaws.com/dev.hortonworks.com/HDP-1.2.0/repos/centos5",
+ "osType" : "redhat5",
+ "repoId" : "HDP-1.2.0",
+ "repoName" : "HDP",
+ "mirrorsList" : null
+ }, {
+ "baseUrl" : null,
+ "osType" : "redhat5",
+ "repoId" : "HDP-epel",
+ "repoName" : "HDP-epel",
+ "mirrorsList" : "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch"
+ }, {
+ "baseUrl" : "http://s3.amazonaws.com/dev.hortonworks.com/HDP-1.2.0/repos/suse11",
+ "osType" : "suse11",
+ "repoId" : "HDP-1.2.0",
+ "repoName" : "HDP",
+ "mirrorsList" : null
+ }, {
+ "baseUrl" : "http://s3.amazonaws.com/dev.hortonworks.com/HDP-UTILS-1.1.0.15/repos/suse11",
+ "osType" : "suse11",
+ "repoId" : "HDP-UTILS-1.1.0.15",
+ "repoName" : "HDP-UTILS",
+ "mirrorsList" : null
+ } ],
+ "services" : [ {
+ "name" : "TEMPLETON",
+ "version" : "0.1.4.1-1",
+ "user" : "root",
+ "comment" : "This is comment for TEMPLETON service",
+ "components" : [ {
+ "name" : "TEMPLETON_SERVER",
+ "category" : "MASTER",
+ "client" : false,
+ "master" : true
+ }, {
+ "name" : "TEMPLETON_CLIENT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ } ],
+ "clientOnlyService" : false,
+ "clientComponent" : {
+ "name" : "TEMPLETON_CLIENT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ }
+ }, {
+ "name" : "SQOOP",
+ "version" : "1.4.2.1-1",
+ "user" : "root",
+ "comment" : "Tool for transferring bulk data between Apache Hadoop and structured data stores such as relational databases",
+ "components" : [ {
+ "name" : "SQOOP",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ } ],
+ "clientOnlyService" : true,
+ "clientComponent" : {
+ "name" : "SQOOP",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ }
+ }, {
+ "name" : "NAGIOS",
+ "version" : "1.0",
+ "user" : "root",
+ "comment" : "Nagios Monitoring and Alerting system",
+ "components" : [ {
+ "name" : "NAGIOS_SERVER",
+ "category" : "MASTER",
+ "client" : false,
+ "master" : true
+ } ],
+ "clientOnlyService" : false,
+ "clientComponent" : {
+ "name" : "NAGIOS_SERVER",
+ "category" : "MASTER",
+ "client" : false,
+ "master" : true
+ }
+ }, {
+ "name" : "HDFS",
+ "version" : "1.1.0.1-1",
+ "user" : "root",
+ "comment" : "Apache Hadoop Distributed File System",
+ "components" : [ {
+ "name" : "NAMENODE",
+ "category" : "MASTER",
+ "client" : false,
+ "master" : true
+ }, {
+ "name" : "DATANODE",
+ "category" : "SLAVE",
+ "client" : false,
+ "master" : false
+ }, {
+ "name" : "SECONDARY_NAMENODE",
+ "category" : "MASTER",
+ "client" : false,
+ "master" : true
+ }, {
+ "name" : "HDFS_CLIENT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ } ],
+ "clientOnlyService" : false,
+ "clientComponent" : {
+ "name" : "HDFS_CLIENT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ }
+ }, {
+ "name" : "PIG",
+ "version" : "0.10.0.1-1",
+ "user" : "root",
+ "comment" : "Scripting platform for analyzing large datasets",
+ "components" : [ {
+ "name" : "PIG",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ } ],
+ "clientOnlyService" : true,
+ "clientComponent" : {
+ "name" : "PIG",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ }
+ }, {
+ "name" : "HBASE",
+ "version" : "0.94.2.1-1",
+ "user" : "mapred",
+ "comment" : "Non-relational distributed database and centralized service for configuration management & synchronization",
+ "components" : [ {
+ "name" : "HBASE_MASTER",
+ "category" : "MASTER",
+ "client" : false,
+ "master" : true
+ }, {
+ "name" : "HBASE_REGIONSERVER",
+ "category" : "SLAVE",
+ "client" : false,
+ "master" : false
+ }, {
+ "name" : "HBASE_CLIENT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ } ],
+ "clientOnlyService" : false,
+ "clientComponent" : {
+ "name" : "HBASE_CLIENT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ }
+ }, {
+ "name" : "ZOOKEEPER",
+ "version" : "3.4.5.1-1",
+ "user" : "root",
+ "comment" : "This is comment for ZOOKEEPER service",
+ "components" : [ {
+ "name" : "ZOOKEEPER_SERVER",
+ "category" : "MASTER",
+ "client" : false,
+ "master" : true
+ }, {
+ "name" : "ZOOKEEPER_CLIENT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ } ],
+ "clientOnlyService" : false,
+ "clientComponent" : {
+ "name" : "ZOOKEEPER_CLIENT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ }
+ }, {
+ "name" : "GANGLIA",
+ "version" : "1.0",
+ "user" : "root",
+ "comment" : "Ganglia Metrics Collection system",
+ "components" : [ {
+ "name" : "GANGLIA_SERVER",
+ "category" : "MASTER",
+ "client" : false,
+ "master" : true
+ }, {
+ "name" : "GANGLIA_MONITOR",
+ "category" : "SLAVE",
+ "client" : false,
+ "master" : false
+ }, {
+ "name" : "MONITOR_WEBSERVER",
+ "category" : "MASTER",
+ "client" : false,
+ "master" : true
+ } ],
+ "clientOnlyService" : false,
+ "clientComponent" : {
+ "name" : "GANGLIA_SERVER",
+ "category" : "MASTER",
+ "client" : false,
+ "master" : true
+ }
+ }, {
+ "name" : "HCATALOG",
+ "version" : "0.4.0.1-1",
+ "user" : "root",
+ "comment" : "This is comment for HCATALOG service",
+ "components" : [ {
+ "name" : "HCAT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ } ],
+ "clientOnlyService" : true,
+ "clientComponent" : {
+ "name" : "HCAT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ }
+ }, {
+ "name" : "HIVE",
+ "version" : "0.9.0.1-1",
+ "user" : "root",
+ "comment" : "Data warehouse system for ad-hoc queries & analysis of large datasets and table & storage management service",
+ "components" : [ {
+ "name" : "HIVE_SERVER",
+ "category" : "MASTER",
+ "client" : false,
+ "master" : true
+ }, {
+ "name" : "MYSQL_SERVER",
+ "category" : "MASTER",
+ "client" : false,
+ "master" : true
+ }, {
+ "name" : "HIVE_CLIENT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ } ],
+ "clientOnlyService" : false,
+ "clientComponent" : {
+ "name" : "HIVE_CLIENT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ }
+ }, {
+ "name" : "OOZIE",
+ "version" : "3.2.0.1-1",
+ "user" : "root",
+ "comment" : "System for workflow coordination and execution of Apache Hadoop jobs",
+ "components" : [ {
+ "name" : "OOZIE_SERVER",
+ "category" : "MASTER",
+ "client" : false,
+ "master" : true
+ }, {
+ "name" : "OOZIE_CLIENT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ } ],
+ "clientOnlyService" : false,
+ "clientComponent" : {
+ "name" : "OOZIE_CLIENT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ }
+ }, {
+ "name" : "MAPREDUCE",
+ "version" : "1.1.0.1-1",
+ "user" : "mapred",
+ "comment" : "Apache Hadoop Distributed Processing Framework",
+ "components" : [ {
+ "name" : "JOBTRACKER",
+ "category" : "MASTER",
+ "client" : false,
+ "master" : true
+ }, {
+ "name" : "TASKTRACKER",
+ "category" : "SLAVE",
+ "client" : false,
+ "master" : false
+ }, {
+ "name" : "MAPREDUCE_CLIENT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ } ],
+ "clientOnlyService" : false,
+ "clientComponent" : {
+ "name" : "MAPREDUCE_CLIENT",
+ "category" : "CLIENT",
+ "client" : true,
+ "master" : false
+ }
+ } ]
+}
@@ -345,8 +345,9 @@ App.ClusterController = Em.Controller.extend({
self.updateLoadStatus('users');
});
- //TODO: define dependencies and delete next line
- self.updateLoadStatus('services');
+ App.router.get('updateController').updateServiceMetric(function(){
+ self.updateLoadStatus('services');
+ });
setTimeout(function(){
self.set('updateStatus', true);
Oops, something went wrong.

0 comments on commit ec1abe0

Please sign in to comment.