Return-Path: X-Original-To: apmail-ambari-commits-archive@www.apache.org Delivered-To: apmail-ambari-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9901917DD9 for ; Wed, 1 Oct 2014 15:27:00 +0000 (UTC) Received: (qmail 54150 invoked by uid 500); 1 Oct 2014 15:27:00 -0000 Delivered-To: apmail-ambari-commits-archive@ambari.apache.org Received: (qmail 54053 invoked by uid 500); 1 Oct 2014 15:27:00 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 53904 invoked by uid 99); 1 Oct 2014 15:27:00 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Oct 2014 15:27:00 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 1EB99882DC0; Wed, 1 Oct 2014 15:27:00 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jonathanhurley@apache.org To: commits@ambari.apache.org Date: Wed, 01 Oct 2014 15:27:07 -0000 Message-Id: In-Reply-To: <40e9343cc626462684eec2ec7bc78a78@git.apache.org> References: <40e9343cc626462684eec2ec7bc78a78@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [09/50] [abbrv] git commit: AMBARI-7573. Slider View: Rename view parameters to shorter forms AMBARI-7573. Slider View: Rename view parameters to shorter forms Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5dee23ff Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5dee23ff Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5dee23ff Branch: refs/heads/branch-alerts-dev Commit: 5dee23ff408c3d8de22e3241400b4cec0abf49ab Parents: b803c9e Author: Srimanth Gunturi Authored: Tue Sep 30 15:01:45 2014 -0700 Committer: Srimanth Gunturi Committed: Tue Sep 30 15:07:19 2014 -0700 ---------------------------------------------------------------------- contrib/views/slider/docs/index.md | 2 +- .../view/slider/SliderAppsViewController.java | 12 ++++++------ .../assets/data/resource/slider-properties.json | 12 ++++++------ .../ui/app/controllers/slider_controller.js | 2 +- .../ui/app/mappers/slider_apps_mapper.js | 2 +- .../src/main/resources/ui/app/routes/main.js | 12 ++++++------ contrib/views/slider/src/main/resources/view.xml | 18 +++++++++--------- 7 files changed, 30 insertions(+), 30 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/5dee23ff/contrib/views/slider/docs/index.md ---------------------------------------------------------------------- diff --git a/contrib/views/slider/docs/index.md b/contrib/views/slider/docs/index.md index 79229d5..358ce2d 100644 --- a/contrib/views/slider/docs/index.md +++ b/contrib/views/slider/docs/index.md @@ -71,7 +71,7 @@ Restart HDFS and YARN services. From *Ambari-Admin* create a *Slider Apps View* with the below parameters populated * slider.security.enabled = true -* yarn.resourcemanager.principal = `rm/_HOST@EXAMPLE.COM` +* yarn.rm.kerberos.principal = `rm/_HOST@EXAMPLE.COM` * dfs.namenode.kerberos.principal = `nn/_HOST@EXAMPLE.COM` * view.kerberos.principal = `view-principal` * view.kerberos.principal.keytab = `/etc/security/keytabs/view-principal.headless.keytab` \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ambari/blob/5dee23ff/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewController.java ---------------------------------------------------------------------- diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewController.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewController.java index f06e8f3..4549bbf 100644 --- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewController.java +++ b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewController.java @@ -31,16 +31,16 @@ import com.google.inject.ImplementedBy; @ImplementedBy(SliderAppsViewControllerImpl.class) public interface SliderAppsViewController { - public static final String PROPERTY_HDFS_ADDRESS = "hdfs.address"; - public static final String PROPERTY_YARN_RM_ADDRESS = "yarn.resourcemanager.address"; - public static final String PROPERTY_YARN_RM_WEBAPP_ADDRESS = "yarn.resourcemanager.webapp.address"; - public static final String PROPERTY_YARN_RM_SCHEDULER_ADDRESS = "yarn.resourcemanager.scheduler.address"; + public static final String PROPERTY_HDFS_ADDRESS = "hdfs.url"; + public static final String PROPERTY_YARN_RM_ADDRESS = "yarn.rm.url"; + public static final String PROPERTY_YARN_RM_WEBAPP_ADDRESS = "yarn.rm.webapp.url"; + public static final String PROPERTY_YARN_RM_SCHEDULER_ADDRESS = "yarn.rm.scheduler.url"; public static final String PROPERTY_ZK_QUOROM = "zookeeper.quorum"; public static final String PROPERTY_GANGLIA_SERVER_HOSTNAME = "ganglia.server.hostname"; - public static final String PROPERTY_GANGLIA_CUSTOM_CLUSTERS = "ganglia.custom.clusters"; + public static final String PROPERTY_GANGLIA_CUSTOM_CLUSTERS = "ganglia.additional.clusters"; public static final String PROPERTY_SLIDER_USER = "slider.user"; public static final String PROPERTY_SLIDER_SECURITY_ENABLED = "slider.security.enabled"; - public static final String PROPERTY_YARN_RM_PRINCIPAL = "yarn.resourcemanager.principal"; + public static final String PROPERTY_YARN_RM_PRINCIPAL = "yarn.rm.kerberos.principal"; public static final String PROPERTY_HDFS_NN_PRINCIPAL = "dfs.namenode.kerberos.principal"; public static final String PROPERTY_VIEW_PRINCIPAL = "view.kerberos.principal"; public static final String PROPERTY_VIEW_PRINCIPAL_KEYTAB= "view.kerberos.principal.keytab"; http://git-wip-us.apache.org/repos/asf/ambari/blob/5dee23ff/contrib/views/slider/src/main/resources/ui/app/assets/data/resource/slider-properties.json ---------------------------------------------------------------------- diff --git a/contrib/views/slider/src/main/resources/ui/app/assets/data/resource/slider-properties.json b/contrib/views/slider/src/main/resources/ui/app/assets/data/resource/slider-properties.json index 6901ab6..2c9d0f6 100644 --- a/contrib/views/slider/src/main/resources/ui/app/assets/data/resource/slider-properties.json +++ b/contrib/views/slider/src/main/resources/ui/app/assets/data/resource/slider-properties.json @@ -13,19 +13,19 @@ "visible" : true, "instance_data" : { }, "properties" : { - "hdfs.address" : "hdfs://slider-1.c.pramod-thangali.internal:8020", - "yarn.resourcemanager.address" : "slider-2.c.pramod-thangali.internal:8050", - "yarn.resourcemanager.scheduler.address" : "slider-2.c.pramod-thangali.internal:8030", - "yarn.resourcemanager.webapp.address" : "slider-2.c.pramod-thangali.internal:8088", + "hdfs.url" : "hdfs://slider-1.c.pramod-thangali.internal:8020", + "yarn.rm.url" : "slider-2.c.pramod-thangali.internal:8050", + "yarn.rm.scheduler.url" : "slider-2.c.pramod-thangali.internal:8030", + "yarn.rm.webapp.url" : "slider-2.c.pramod-thangali.internal:8088", "zookeeper.quorum" : "slider-1.c.pramod-thangali.internal:2181,slider-2.c.pramod-thangali.internal:2181,slider-3.c.pramod-thangali.internal:2181", "ganglia.server.hostname" : "bvc", - "ganglia.custom.clusters" : "'HBaseCluster1','7000','AccumuloCluster1','7001','HBaseCluster2','7002'", + "ganglia.additional.clusters" : "'HBaseCluster1','7000','AccumuloCluster1','7001','HBaseCluster2','7002'", "slider.user" : "John Dow", "slider.security.enabled" : "false", "dfs.namenode.kerberos.principal" : null, "view.kerberos.principal" : null, "view.kerberos.principal.keytab" : null, - "yarn.resourcemanager.principal" : null + "yarn.rm.kerberos.principal" : null } }, "resources" : [ http://git-wip-us.apache.org/repos/asf/ambari/blob/5dee23ff/contrib/views/slider/src/main/resources/ui/app/controllers/slider_controller.js ---------------------------------------------------------------------- diff --git a/contrib/views/slider/src/main/resources/ui/app/controllers/slider_controller.js b/contrib/views/slider/src/main/resources/ui/app/controllers/slider_controller.js index e59f707..6af6f58 100644 --- a/contrib/views/slider/src/main/resources/ui/app/controllers/slider_controller.js +++ b/contrib/views/slider/src/main/resources/ui/app/controllers/slider_controller.js @@ -72,7 +72,7 @@ App.SliderController = Ember.Controller.extend({ */ initGangliaProperties: function () { var sliderConfigs = App.SliderApp.store.all('sliderConfig'), - gangliaClusters = sliderConfigs.findBy('viewConfigName', 'ganglia.custom.clusters'), + gangliaClusters = sliderConfigs.findBy('viewConfigName', 'ganglia.additional.clusters'), gangliaHost = sliderConfigs.findBy('viewConfigName', 'ganglia.server.hostname'); App.set('gangliaClusters', this.formatGangliaClusters(gangliaClusters.get('value'))); App.set('gangliaHost', gangliaHost.get('value')); http://git-wip-us.apache.org/repos/asf/ambari/blob/5dee23ff/contrib/views/slider/src/main/resources/ui/app/mappers/slider_apps_mapper.js ---------------------------------------------------------------------- diff --git a/contrib/views/slider/src/main/resources/ui/app/mappers/slider_apps_mapper.js b/contrib/views/slider/src/main/resources/ui/app/mappers/slider_apps_mapper.js index efc85b2..ac05646 100644 --- a/contrib/views/slider/src/main/resources/ui/app/mappers/slider_apps_mapper.js +++ b/contrib/views/slider/src/main/resources/ui/app/mappers/slider_apps_mapper.js @@ -169,7 +169,7 @@ App.SliderAppsMapper = App.Mapper.createWithMixins(App.RunPeriodically, { var yarnUI = "http://"+window.location.hostname+":8088"; var viewConfigs = App.SliderApp.store.all('sliderConfig'); if (!Em.isNone(viewConfigs)) { - var viewConfig = viewConfigs.findBy('viewConfigName', 'yarn.resourcemanager.webapp.address'); + var viewConfig = viewConfigs.findBy('viewConfigName', 'yarn.rm.webapp.url'); if (!Em.isNone(viewConfig)) { yarnUI = viewConfig.get('value'); } http://git-wip-us.apache.org/repos/asf/ambari/blob/5dee23ff/contrib/views/slider/src/main/resources/ui/app/routes/main.js ---------------------------------------------------------------------- diff --git a/contrib/views/slider/src/main/resources/ui/app/routes/main.js b/contrib/views/slider/src/main/resources/ui/app/routes/main.js index 9388f2a..4233758 100644 --- a/contrib/views/slider/src/main/resources/ui/app/routes/main.js +++ b/contrib/views/slider/src/main/resources/ui/app/routes/main.js @@ -52,16 +52,16 @@ App.SliderAppsRoute = Ember.Route.extend({ // Load sliderConfigs to storage App.SliderApp.store.pushMany('sliderConfig', Em.A([ - Em.Object.create({id: 1, required: true, viewConfigName: 'hdfs.address', displayName: 'hdfsAddress', linkedService: 'HDFS'}), - Em.Object.create({id: 2, required: true, viewConfigName: 'yarn.resourcemanager.address', displayName: 'yarnResourceManager', linkedService: 'YARN'}), - Em.Object.create({id: 3, required: true, viewConfigName: 'yarn.resourcemanager.webapp.address', displayName: 'yarnResourceManagerWebapp', linkedService: 'YARN'}), - Em.Object.create({id: 4, required: true, viewConfigName: 'yarn.resourcemanager.scheduler.address', displayName: 'yarnResourceManagerScheduler'}), + Em.Object.create({id: 1, required: true, viewConfigName: 'hdfs.url', displayName: 'hdfsAddress', linkedService: 'HDFS'}), + Em.Object.create({id: 2, required: true, viewConfigName: 'yarn.rm.url', displayName: 'yarnResourceManager', linkedService: 'YARN'}), + Em.Object.create({id: 3, required: true, viewConfigName: 'yarn.rm.webapp.url', displayName: 'yarnResourceManagerWebapp', linkedService: 'YARN'}), + Em.Object.create({id: 4, required: true, viewConfigName: 'yarn.rm.scheduler.url', displayName: 'yarnResourceManagerScheduler'}), Em.Object.create({id: 5, required: true, viewConfigName: 'zookeeper.quorum', displayName: 'zookeeperQuorum', linkedService: 'ZOOKEEPER'}), Em.Object.create({id: 6, required: false, viewConfigName: 'ganglia.server.hostname', displayName: 'gangliaServer'}), - Em.Object.create({id: 7, required: false, viewConfigName: 'ganglia.custom.clusters', displayName: 'gangliaClusters'}), + Em.Object.create({id: 7, required: false, viewConfigName: 'ganglia.additional.clusters', displayName: 'gangliaClusters'}), Em.Object.create({id: 8, required: false, viewConfigName: 'slider.user', displayName: 'sliderUser'}), Em.Object.create({id: 9, required: true, viewConfigName: 'slider.security.enabled', displayName: 'sliderSecurityEnabled'}), - Em.Object.create({id: 10, required: false, requireDependsOn: 9, viewConfigName: 'yarn.resourcemanager.principal', displayName: 'yarnResourceManagerPrincipal'}), + Em.Object.create({id: 10, required: false, requireDependsOn: 9, viewConfigName: 'yarn.rm.kerberos.principal', displayName: 'yarnResourceManagerPrincipal'}), Em.Object.create({id: 11, required: false, requireDependsOn: 9, viewConfigName: 'dfs.namenode.kerberos.principal', displayName: 'dfsNamenodeKerberosPrincipal'}), Em.Object.create({id: 12, required: false, requireDependsOn: 9, viewConfigName: 'view.kerberos.principal', displayName: 'viewKerberosPrincipal'}), Em.Object.create({id: 13, required: false, requireDependsOn: 9, viewConfigName: 'view.kerberos.principal.keytab', displayName: 'ViewKerberosPrincipalKeytab'}) http://git-wip-us.apache.org/repos/asf/ambari/blob/5dee23ff/contrib/views/slider/src/main/resources/view.xml ---------------------------------------------------------------------- diff --git a/contrib/views/slider/src/main/resources/view.xml b/contrib/views/slider/src/main/resources/view.xml index e66112f..b2f8129 100644 --- a/contrib/views/slider/src/main/resources/view.xml +++ b/contrib/views/slider/src/main/resources/view.xml @@ -19,22 +19,22 @@ limitations under the License. Kerberos, LDAP, Custom. Binary/Htt 1.0.0 - hdfs.address + hdfs.url The URL to access HDFS service via its protocol. Typically this is the fs.defaultFS property in the core-site.xml configuration file. For example: hdfs://hdfs.namenode.host:8020. true - yarn.resourcemanager.address + yarn.rm.url The URL to the YARN ResourceManager, used to provide YARN Application data. For example: http://yarn.resourcemanager.host:8050 true - yarn.resourcemanager.webapp.address + yarn.rm.webapp.url The URL to the YARN ResourceManager Web Application, used to provide YARN UI. Typically this is the yarn.resourcemanager.webapp.address config from yarn-site.xml configuration file. For example: http://yarn.resourcemanager.host:8088 true - yarn.resourcemanager.scheduler.address + yarn.rm.scheduler.url The URL to the YARN ResourceManager Scheduler, which schedules YARN Applications. For example: http://yarn.resourcemanager.host:8030 true @@ -49,8 +49,8 @@ limitations under the License. Kerberos, LDAP, Custom. Binary/Htt false - ganglia.custom.clusters - Custom Ganglia clusters which can be used by applications created in Slider Apps view. Value is comma separated list of cluster-name and port pairs. Typically this is the additional_clusters in the ganglia-env configuration. For example: Application1:8881,Application2:8882 + ganglia.additional.clusters + Ganglia clusters which can be used by applications created in Slider Apps view. Value is comma separated list of cluster-name and port pairs. Typically this is the additional_clusters in the ganglia-env configuration. For example: Application1:8881,Application2:8882 false @@ -64,13 +64,13 @@ limitations under the License. Kerberos, LDAP, Custom. Binary/Htt true - yarn.resourcemanager.principal + yarn.rm.kerberos.principal Kerberos principal used to access YARN ResourceManager. For example: rm/_HOST@EXAMPLE.COM optional dfs.namenode.kerberos.principal - Kerberos principal used to access YARN ResourceManager. For example: nn/_HOST@EXAMPLE.COM + Kerberos principal used to access HDFS NameNode. For example: nn/_HOST@EXAMPLE.COM optional @@ -80,7 +80,7 @@ limitations under the License. Kerberos, LDAP, Custom. Binary/Htt view.kerberos.principal.keytab - Path to the Kerberos principal keytab. For example: /etc/security/keytabs/ambari.headless.keytab + Path to the Kerberos principal keytab used for view's user. For example: /etc/security/keytabs/ambari.headless.keytab optional