Author: yusaku
Date: Thu Apr 11 18:11:04 2013
New Revision: 1467025

URL: http://svn.apache.org/r1467025
Log:
AMBARI-1877. Reassign Master Wizard, Step 2: prevent proceed next without 
changing target host. (yusaku)

Modified:
    incubator/ambari/trunk/CHANGES.txt
    
incubator/ambari/trunk/ambari-web/app/assets/data/wizard/stack/hdp/version/1.3.0.json
    
incubator/ambari/trunk/ambari-web/app/assets/data/wizard/stack/hdp/version130/HBASE.json
    incubator/ambari/trunk/ambari-web/app/controllers/wizard/step5_controller.js
    incubator/ambari/trunk/ambari-web/app/templates/wizard/step5.hbs

Modified: incubator/ambari/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1467025&r1=1467024&r2=1467025&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Thu Apr 11 18:11:04 2013
@@ -241,6 +241,9 @@ Trunk (unreleased changes):
 
  IMPROVEMENTS
 
+ AMBARI-1877. Reassign Master Wizard, Step 2: prevent proceed next without
+ changing target host. (yusaku)
+
  AMBARI-1876. Capacity Scheduler: implement user/group and admin user/group
  validation rules. (yusaku)
 

Modified: 
incubator/ambari/trunk/ambari-web/app/assets/data/wizard/stack/hdp/version/1.3.0.json
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/assets/data/wizard/stack/hdp/version/1.3.0.json?rev=1467025&r1=1467024&r2=1467025&view=diff
==============================================================================
--- 
incubator/ambari/trunk/ambari-web/app/assets/data/wizard/stack/hdp/version/1.3.0.json
 (original)
+++ 
incubator/ambari/trunk/ambari-web/app/assets/data/wizard/stack/hdp/version/1.3.0.json
 Thu Apr 11 18:11:04 2013
@@ -1,383 +1,152 @@
 {
-  "name" : "HDP",
-  "version" : "1.3.0",
-  "minUpgradeVersion" : null,
-  "repositories" : [ {
-    "baseUrl" : 
"http://s3.amazonaws.com/dev.hortonworks.com/HDP-1.3.0/repos/centos6";,
-    "osType" : "centos6",
-    "repoId" : "HDP-1.3.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.3.0/repos/centos5";,
-    "osType" : "centos5",
-    "repoId" : "HDP-1.3.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.3.0/repos/centos6";,
-    "osType" : "redhat6",
-    "repoId" : "HDP-1.3.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.3.0/repos/centos5";,
-    "osType" : "redhat5",
-    "repoId" : "HDP-1.3.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.3.0/repos/suse11";,
-    "osType" : "suse11",
-    "repoId" : "HDP-1.3.0",
-    "repoName" : "HDP",
-    "mirrorsList" : null
-  }, {
-    "baseUrl" : 
"http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.15/repos/suse11";,
-    "osType" : "suse11",
-    "repoId" : "HDP-UTILS-1.1.0.15",
-    "repoName" : "HDP-UTILS",
-    "mirrorsList" : null
-  }, {
-    "baseUrl" : 
"http://s3.amazonaws.com/dev.hortonworks.com/HDP-1.3.0/repos/suse11";,
-    "osType" : "sles11",
-    "repoId" : "HDP-1.3.0",
-    "repoName" : "HDP",
-    "mirrorsList" : null
-  }, {
-    "baseUrl" : 
"http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.15/repos/suse11";,
-    "osType" : "sles11",
-    "repoId" : "HDP-UTILS-1.1.0.15",
-    "repoName" : "HDP-UTILS",
-    "mirrorsList" : null
-  } ],
-  "services" : [ {
-    "name" : "GANGLIA",
-    "version" : "3.2.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
+  "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0?fields=stackServices/StackServices";,
+  "Versions" : {
+    "stack_version" : "1.3.0",
+    "stack_name" : "HDP"
+  },
+  "stackServices" : [
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HIVE";,
+      "StackServices" : {
+        "user_name" : "root",
+        "stack_version" : "1.3.0",
+        "service_name" : "HIVE",
+        "stack_name" : "HDP",
+        "service_version" : "0.10.0",
+        "comments" : "Data warehouse system for ad-hoc queries & analysis of 
large datasets and table & storage management service"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/GANGLIA";,
+      "StackServices" : {
+        "user_name" : "root",
+        "stack_version" : "1.3.0",
+        "service_name" : "GANGLIA",
+        "stack_name" : "HDP",
+        "service_version" : "3.2.0",
+        "comments" : "Ganglia Metrics Collection system"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/MAPREDUCE";,
+      "StackServices" : {
+        "user_name" : "mapred",
+        "stack_version" : "1.3.0",
+        "service_name" : "MAPREDUCE",
+        "stack_name" : "HDP",
+        "service_version" : "1.1.2",
+        "comments" : "Apache Hadoop Distributed Processing Framework"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/SQOOP";,
+      "StackServices" : {
+        "user_name" : "root",
+        "stack_version" : "1.3.0",
+        "service_name" : "SQOOP",
+        "stack_name" : "HDP",
+        "service_version" : "1.4.2",
+        "comments" : "Tool for transferring bulk data between Apache Hadoop 
and structured data stores such as relational databases"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HUE";,
+      "StackServices" : {
+        "user_name" : "root",
+        "stack_version" : "1.3.0",
+        "service_name" : "HUE",
+        "stack_name" : "HDP",
+        "service_version" : "2.2.0",
+        "comments" : "Hue is a graphical user interface to operate and 
develop\n      applications for Apache Hadoop."
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE";,
+      "StackServices" : {
+        "user_name" : "mapred",
+        "stack_version" : "1.3.0",
+        "service_name" : "HBASE",
+        "stack_name" : "HDP",
+        "service_version" : "0.94.5",
+        "comments" : "Non-relational distributed database and centralized 
service for configuration management & synchronization"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/PIG";,
+      "StackServices" : {
+        "user_name" : "root",
+        "stack_version" : "1.3.0",
+        "service_name" : "PIG",
+        "stack_name" : "HDP",
+        "service_version" : "0.10.1",
+        "comments" : "Scripting platform for analyzing large datasets"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/NAGIOS";,
+      "StackServices" : {
+        "user_name" : "root",
+        "stack_version" : "1.3.0",
+        "service_name" : "NAGIOS",
+        "stack_name" : "HDP",
+        "service_version" : "3.2.3",
+        "comments" : "Nagios Monitoring and Alerting system"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HCATALOG";,
+      "StackServices" : {
+        "user_name" : "root",
+        "stack_version" : "1.3.0",
+        "service_name" : "HCATALOG",
+        "stack_name" : "HDP",
+        "service_version" : "0.5.0",
+        "comments" : "This is comment for HCATALOG service"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/ZOOKEEPER";,
+      "StackServices" : {
+        "user_name" : "root",
+        "stack_version" : "1.3.0",
+        "service_name" : "ZOOKEEPER",
+        "stack_name" : "HDP",
+        "service_version" : "3.4.5",
+        "comments" : "This is comment for ZOOKEEPER service"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HDFS";,
+      "StackServices" : {
+        "user_name" : "root",
+        "stack_version" : "1.3.0",
+        "service_name" : "HDFS",
+        "stack_name" : "HDP",
+        "service_version" : "1.1.2",
+        "comments" : "Apache Hadoop Distributed File System"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/WEBHCAT";,
+      "StackServices" : {
+        "user_name" : "root",
+        "stack_version" : "1.3.0",
+        "service_name" : "WEBHCAT",
+        "stack_name" : "HDP",
+        "service_version" : "0.5.0",
+        "comments" : "This is comment for WEBHCAT service"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/OOZIE";,
+      "StackServices" : {
+        "user_name" : "root",
+        "stack_version" : "1.3.0",
+        "service_name" : "OOZIE",
+        "stack_name" : "HDP",
+        "service_version" : "3.2.0",
+        "comments" : "System for workflow coordination and execution of Apache 
Hadoop jobs"
+      }
     }
-  }, {
-    "name" : "OOZIE",
-    "version" : "3.2.0",
-    "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.2",
-    "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
-    }
-  }, {
-    "name" : "HIVE",
-    "version" : "0.10.0",
-    "user" : "root",
-    "comment" : "Data warehouse system for ad-hoc queries & analysis of large 
datasets and table & storage management service",
-    "components" : [ {
-      "name" : "HIVE_METASTORE",
-      "category" : "MASTER",
-      "client" : false,
-      "master" : true
-    }, {
-      "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" : "HDFS",
-    "version" : "1.1.2",
-    "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" : "NAGIOS",
-    "version" : "3.2.3",
-    "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" : "SQOOP",
-    "version" : "1.4.2",
-    "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" : "PIG",
-    "version" : "0.10.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.5",
-    "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" : "HCATALOG",
-    "version" : "0.5.0",
-    "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" : "ZOOKEEPER",
-    "version" : "3.4.5",
-    "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" : "WEBHCAT",
-    "version" : "0.5.0",
-    "user" : "root",
-    "comment" : "This is comment for WEBHCAT service",
-    "components" : [ {
-      "name" : "WEBHCAT_SERVER",
-      "category" : "MASTER",
-      "client" : false,
-      "master" : true
-    } ],
-    "clientOnlyService" : false,
-    "clientComponent" : {
-      "name" : "WEBHCAT_SERVER",
-      "category" : "MASTER",
-      "client" : false,
-      "master" : true
-    }
-  }, {
-    "name" : "HUE",
-    "version" : "2.2.0",
-    "user" : "root",
-    "comment" : "Hue is a graphical user interface to operate and develop\n    
  applications for Apache Hadoop.",
-    "components" : [ {
-      "name" : "HUE_SERVER",
-      "category" : "MASTER",
-      "client" : false,
-      "master" : true
-    } ],
-    "clientOnlyService" : false,
-    "clientComponent" : {
-      "name" : "HUE_SERVER",
-      "category" : "MASTER",
-      "client" : false,
-      "master" : true
-    }
-  } ]
-}
+  ]
+}
\ No newline at end of file

Modified: 
incubator/ambari/trunk/ambari-web/app/assets/data/wizard/stack/hdp/version130/HBASE.json
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/assets/data/wizard/stack/hdp/version130/HBASE.json?rev=1467025&r1=1467024&r2=1467025&view=diff
==============================================================================
--- 
incubator/ambari/trunk/ambari-web/app/assets/data/wizard/stack/hdp/version130/HBASE.json
 (original)
+++ 
incubator/ambari/trunk/ambari-web/app/assets/data/wizard/stack/hdp/version130/HBASE.json
 Thu Apr 11 18:11:04 2013
@@ -1,60 +1,281 @@
 {
-  "name" : "HBASE",
-  "version" : "0.94.5",
-  "user" : "mapred",
-  "comment" : "Non-relational distributed database and centralized service for 
configuration management & synchronization",
-  "properties" : [ {
-    "name" : "hbase.cluster.distributed",
-    "value" : "true",
-    "description" : "The mode the cluster will be in. Possible values are\n    
  false for standalone mode and true for distributed mode.  If\n      false, 
startup will run all HBase and ZooKeeper daemons together\n      in the one 
JVM.\n    ",
-    "filename" : "hbase-site.xml"
-  }, {
-    "name" : "hbase.master.lease.thread.wakefrequency",
-    "value" : "3000",
-    "description" : "The interval between checks for expired region server 
leases.\n    This value has been reduced due to the other reduced values above 
so that\n    the master will notice a dead region server sooner. The default is 
15 seconds.\n    ",
-    "filename" : "hbase-site.xml"
-  }, {
-    "name" : "hbase.superuser",
-    "value" : "hbase",
-    "description" : "List of users or groups (comma-separated), who are 
allowed\n    full privileges, regardless of stored ACLs, across the cluster.\n  
  Only used when HBase security is enabled.\n    ",
-    "filename" : "hbase-site.xml"
-  }, {
-    "name" : "hbase.zookeeper.property.clientPort",
-    "value" : "2181",
-    "description" : "Property from ZooKeeper's config zoo.cfg.\n    The port 
at which the clients will connect.\n    ",
-    "filename" : "hbase-site.xml"
-  }, {
-    "name" : "hbase.regionserver.optionalcacheflushinterval",
-    "value" : "10000",
-    "description" : "\n      Amount of time to wait since the last time a 
region was flushed before\n      invoking an optional cache flush. Default 
60,000.\n    ",
-    "filename" : "hbase-site.xml"
-  }, {
-    "name" : "hbase.zookeeper.useMulti",
-    "value" : "true",
-    "description" : "Instructs HBase to make use of ZooKeeper's multi-update 
functionality.\n    This allows certain ZooKeeper operations to complete more 
quickly and prevents some issues\n    with rare Replication failure scenarios 
(see the release note of HBASE-2611 for an example).В·\n    IMPORTANT: only 
set this to true if all ZooKeeper servers in the cluster are on version 3.4+\n  
  and will not be downgraded.  ZooKeeper versions before 3.4 do not support 
multi-update and will\n    not fail gracefully if multi-update is invoked (see 
ZOOKEEPER-1495).\n    ",
-    "filename" : "hbase-site.xml"
-  } ],
-  "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
-  }
-}
+  "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations?fields=*";,
+  "items" : [
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/zookeeper_sessiontimeout";,
+      "StackConfigurations" : {
+        "property_description" : "ZooKeeper Session Timeout",
+        "property_value" : "60000",
+        "stack_version" : "1.3.0",
+        "property_name" : "zookeeper_sessiontimeout",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase_master_heapsize";,
+      "StackConfigurations" : {
+        "property_description" : "HBase Master Heap Size",
+        "property_value" : "1024",
+        "stack_version" : "1.3.0",
+        "property_name" : "hbase_master_heapsize",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hstore_compactionthreshold";,
+      "StackConfigurations" : {
+        "property_description" : "HBase HStore compaction threshold.",
+        "property_value" : "3",
+        "stack_version" : "1.3.0",
+        "property_name" : "hstore_compactionthreshold",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hfile_blockcache_size";,
+      "StackConfigurations" : {
+        "property_description" : "HFile block cache size.",
+        "property_value" : "0.25",
+        "stack_version" : "1.3.0",
+        "property_name" : "hfile_blockcache_size",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/security.client.protocol.acl";,
+      "StackConfigurations" : {
+        "property_description" : "ACL for HRegionInterface protocol 
implementations (ie. \n    clients talking to HRegionServers)\n    The ACL is a 
comma-separated list of user and group names. The user and \n    group list is 
separated by a blank. For e.g. \"alice,bob users,wheel\". \n    A special value 
of \"*\" means all users are allowed.",
+        "property_value" : "*",
+        "stack_version" : "1.3.0",
+        "property_name" : "security.client.protocol.acl",
+        "service_name" : "HBASE",
+        "type" : "hbase-policy.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hregion_blockmultiplier";,
+      "StackConfigurations" : {
+        "property_description" : "HBase Region Block Multiplier",
+        "property_value" : "2",
+        "stack_version" : "1.3.0",
+        "property_name" : "hregion_blockmultiplier",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase.zookeeper.useMulti";,
+      "StackConfigurations" : {
+        "property_description" : "Instructs HBase to make use of ZooKeeper's 
multi-update functionality.\n    This allows certain ZooKeeper operations to 
complete more quickly and prevents some issues\n    with rare Replication 
failure scenarios (see the release note of HBASE-2611 for an example).В·\n    
IMPORTANT: only set this to true if all ZooKeeper servers in the cluster are on 
version 3.4+\n    and will not be downgraded.  ZooKeeper versions before 3.4 do 
not support multi-update and will\n    not fail gracefully if multi-update is 
invoked (see ZOOKEEPER-1495).\n    ",
+        "property_value" : "true",
+        "stack_version" : "1.3.0",
+        "property_name" : "hbase.zookeeper.useMulti",
+        "service_name" : "HBASE",
+        "type" : "hbase-site.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase_conf_dir";,
+      "StackConfigurations" : {
+        "property_description" : "Config Directory for HBase.",
+        "property_value" : "/etc/hbase",
+        "stack_version" : "1.3.0",
+        "property_name" : "hbase_conf_dir",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase.zookeeper.property.clientPort";,
+      "StackConfigurations" : {
+        "property_description" : "Property from ZooKeeper's config zoo.cfg.\n  
  The port at which the clients will connect.\n    ",
+        "property_value" : "2181",
+        "stack_version" : "1.3.0",
+        "property_name" : "hbase.zookeeper.property.clientPort",
+        "service_name" : "HBASE",
+        "type" : "hbase-site.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase_log_dir";,
+      "StackConfigurations" : {
+        "property_description" : "Log Directories for HBase.",
+        "property_value" : "/var/log/hbase",
+        "stack_version" : "1.3.0",
+        "property_name" : "hbase_log_dir",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase_tmp_dir";,
+      "StackConfigurations" : {
+        "property_description" : "Hbase temp directory",
+        "property_value" : "/var/log/hbase",
+        "stack_version" : "1.3.0",
+        "property_name" : "hbase_tmp_dir",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hfile_max_keyvalue_size";,
+      "StackConfigurations" : {
+        "property_description" : "HBase Client Maximum key-value Size",
+        "property_value" : "10485760",
+        "stack_version" : "1.3.0",
+        "property_name" : "hfile_max_keyvalue_size",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase_regionserver_heapsize";,
+      "StackConfigurations" : {
+        "property_description" : "Log Directories for HBase.",
+        "property_value" : "1024",
+        "stack_version" : "1.3.0",
+        "property_name" : "hbase_regionserver_heapsize",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hregion_majorcompaction";,
+      "StackConfigurations" : {
+        "property_description" : "HBase Major Compaction.",
+        "property_value" : "86400000",
+        "stack_version" : "1.3.0",
+        "property_name" : "hregion_majorcompaction",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/client_scannercaching";,
+      "StackConfigurations" : {
+        "property_description" : "Base Client Scanner Caching",
+        "property_value" : "100",
+        "stack_version" : "1.3.0",
+        "property_name" : "client_scannercaching",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/security.masterregion.protocol.acl";,
+      "StackConfigurations" : {
+        "property_description" : "ACL for HMasterRegionInterface protocol 
implementations\n    (for HRegionServers communicating with HMaster)\n    The 
ACL is a comma-separated list of user and group names. The user and \n    group 
list is separated by a blank. For e.g. \"alice,bob users,wheel\". \n    A 
special value of \"*\" means all users are allowed.",
+        "property_value" : "*",
+        "stack_version" : "1.3.0",
+        "property_name" : "security.masterregion.protocol.acl",
+        "service_name" : "HBASE",
+        "type" : "hbase-policy.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase.cluster.distributed";,
+      "StackConfigurations" : {
+        "property_description" : "The mode the cluster will be in. Possible 
values are\n      false for standalone mode and true for distributed mode.  
If\n      false, startup will run all HBase and ZooKeeper daemons together\n    
  in the one JVM.\n    ",
+        "property_value" : "true",
+        "stack_version" : "1.3.0",
+        "property_name" : "hbase.cluster.distributed",
+        "service_name" : "HBASE",
+        "type" : "hbase-site.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase.master.lease.thread.wakefrequency";,
+      "StackConfigurations" : {
+        "property_description" : "The interval between checks for expired 
region server leases.\n    This value has been reduced due to the other reduced 
values above so that\n    the master will notice a dead region server sooner. 
The default is 15 seconds.\n    ",
+        "property_value" : "3000",
+        "stack_version" : "1.3.0",
+        "property_name" : "hbase.master.lease.thread.wakefrequency",
+        "service_name" : "HBASE",
+        "type" : "hbase-site.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/regionserver_handlers";,
+      "StackConfigurations" : {
+        "property_description" : "HBase RegionServer Handler",
+        "property_value" : "30",
+        "stack_version" : "1.3.0",
+        "property_name" : "regionserver_handlers",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase.regionserver.optionalcacheflushinterval";,
+      "StackConfigurations" : {
+        "property_description" : "\n      Amount of time to wait since the 
last time a region was flushed before\n      invoking an optional cache flush. 
Default 60,000.\n    ",
+        "property_value" : "10000",
+        "stack_version" : "1.3.0",
+        "property_name" : "hbase.regionserver.optionalcacheflushinterval",
+        "service_name" : "HBASE",
+        "type" : "hbase-site.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase_pid_dir";,
+      "StackConfigurations" : {
+        "property_description" : "Log Directories for HBase.",
+        "property_value" : "/var/run/hbase",
+        "stack_version" : "1.3.0",
+        "property_name" : "hbase_pid_dir",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hstorefile_maxsize";,
+      "StackConfigurations" : {
+        "property_description" : "Maximum HStoreFile Size",
+        "property_value" : "1073741824",
+        "stack_version" : "1.3.0",
+        "property_name" : "hstorefile_maxsize",
+        "service_name" : "HBASE",
+        "type" : "global.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
+      "href" : 
"http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/security.admin.protocol.acl";,
+      "StackConfigurations" : {
+        "property_description" : "ACL for HMasterInterface protocol 
implementation (ie. \n    clients talking to HMaster for admin operations).\n   
 The ACL is a comma-separated list of user and group names. The user and \n    
group list is separated by a blank. For e.g. \"alice,bob users,wheel\". \n    A 
special value of \"*\" means all users are allowed.",
+        "property_value" : "*",
+        "stack_version" : "1.3.0",
+        "property_name" : "security.admin.protocol.acl",
+        "service_name" : "HBASE",
+        "type" : "hbase-policy.xml",
+        "stack_name" : "HDP"
+      }
+    }
+  ]
+}
\ No newline at end of file

Modified: 
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step5_controller.js
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/wizard/step5_controller.js?rev=1467025&r1=1467024&r2=1467025&view=diff
==============================================================================
--- 
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step5_controller.js 
(original)
+++ 
incubator/ambari/trunk/ambari-web/app/controllers/wizard/step5_controller.js 
Thu Apr 11 18:11:04 2013
@@ -30,12 +30,27 @@ App.WizardStep5Controller = Em.Controlle
 
   isReassignWizard: function () {
     return this.get('content.controllerName') == 'reassignMasterController';
-  }.property(),
+  }.property('content.controllerName'),
 
   isReassignHive: function () {
     return this.get('servicesMasters').objectAt(0) && 
this.get('servicesMasters').objectAt(0).component_name == 'HIVE_SERVER' && 
this.get('isReassignWizard');
   }.property('isReassignWizard', 'servicesMasters'),
 
+  isSubmitDisabled: function () {
+    if (!this.get('isReassignWizard')) {
+      return false;
+    }
+    var reassigned = false;
+    var arr1 = App.HostComponent.find().filterProperty('componentName', 
this.get('content.reassign.component_name')).mapProperty('host.hostName');
+    var arr2 = this.get('servicesMasters').mapProperty('selectedHost');
+    arr1.forEach(function (host) {
+      if (!arr2.contains(host)) {
+        reassigned = true;
+      }
+    }, this);
+    return !reassigned;
+  }.property('[email protected]'),
+
   hosts:[],
 
   servicesMasters:[],
@@ -637,6 +652,12 @@ App.WizardStep5Controller = Em.Controlle
     else {
       return -1;
     }
+  },
+
+  submit: function () {
+    if (!this.get('isSubmitDisabled')){
+      App.router.send('next');
+    }
   }
 });
 

Modified: incubator/ambari/trunk/ambari-web/app/templates/wizard/step5.hbs
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/templates/wizard/step5.hbs?rev=1467025&r1=1467024&r2=1467025&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/templates/wizard/step5.hbs (original)
+++ incubator/ambari/trunk/ambari-web/app/templates/wizard/step5.hbs Thu Apr 11 
18:11:04 2013
@@ -82,5 +82,5 @@
 </div>
 <div class="btn-area">
   <a class="btn pull-left" {{action back href="true"}}>&larr; {{t 
common.back}}</a>
-  <a class="btn btn-success pull-right" {{action next}}>{{t common.next}} 
&rarr;</a>
+  <a class="btn btn-success pull-right" {{bindAttr 
disabled="isSubmitDisabled"}} {{action submit target="controller"}}>{{t 
common.next}} &rarr;</a>
 </div>


Reply via email to