You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2015/05/15 11:53:52 UTC
[1/6] ambari git commit: AMBARI-11156. Ranger Yarn Plugin Status - to
be shown in Summary for Ranger (alexantonenko)
Repository: ambari
Updated Branches:
refs/heads/trunk 94ba7c0f9 -> d239381eb
AMBARI-11156. Ranger Yarn Plugin Status - to be shown in Summary for Ranger (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/68d02943
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/68d02943
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/68d02943
Branch: refs/heads/trunk
Commit: 68d02943a9d5df28587a7f89a900b4a9d746226a
Parents: 5e8e7ac
Author: Alex Antonenko <hi...@gmail.com>
Authored: Fri May 15 11:01:51 2015 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Fri May 15 12:53:45 2015 +0300
----------------------------------------------------------------------
.../controllers/main/service/info/summary.js | 8 ++++-
.../main/service/info/summary_test.js | 34 ++++++++++++++++----
2 files changed, 34 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/68d02943/ambari-web/app/controllers/main/service/info/summary.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/info/summary.js b/ambari-web/app/controllers/main/service/info/summary.js
index 137b5e4..ca661d3 100644
--- a/ambari-web/app/controllers/main/service/info/summary.js
+++ b/ambari-web/app/controllers/main/service/info/summary.js
@@ -73,6 +73,11 @@ App.MainServiceInfoSummaryController = Em.Controller.extend(App.WidgetSectionMix
serviceName: 'STORM',
type: 'ranger-storm-plugin-properties',
propertyName: 'ranger-storm-plugin-enabled'
+ },
+ {
+ serviceName: 'YARN',
+ type: 'ranger-yarn-plugin-properties',
+ propertyName: 'ranger-yarn-plugin-enabled'
}
],
@@ -95,7 +100,8 @@ App.MainServiceInfoSummaryController = Em.Controller.extend(App.WidgetSectionMix
var displayName = (stackService) ? stackService.get('displayName') : item.serviceName;
return $.extend(item, {
pluginTitle: Em.I18n.t('services.service.summary.ranger.plugin.title').format(displayName),
- isDisplayed: App.Service.find().someProperty('serviceName', item.serviceName),
+ isDisplayed: App.Service.find().someProperty('serviceName', item.serviceName) &&
+ stackService.get('configTypes').hasOwnProperty(item.type),
status: Em.I18n.t('services.service.summary.ranger.plugin.loadingStatus')
});
}),
http://git-wip-us.apache.org/repos/asf/ambari/blob/68d02943/ambari-web/test/controllers/main/service/info/summary_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/controllers/main/service/info/summary_test.js b/ambari-web/test/controllers/main/service/info/summary_test.js
index 18ef3c4..695dbad 100644
--- a/ambari-web/test/controllers/main/service/info/summary_test.js
+++ b/ambari-web/test/controllers/main/service/info/summary_test.js
@@ -62,29 +62,49 @@ describe('App.MainServiceInfoSummaryController', function () {
serviceName: 'HDFS'
}),
Em.Object.create({
- serviceName: 'HIVE'
+ serviceName: 'YARN'
})
]);
sinon.stub(App.StackService, 'find').returns([
Em.Object.create({
serviceName: 'HDFS',
- displayNName: 'HDFS'
+ displayName: 'HDFS',
+ configTypes: {
+ 'ranger-hdfs-plugin-properties': {}
+ }
}),
Em.Object.create({
serviceName: 'HIVE',
- displayNName: 'Hive'
+ displayName: 'Hive',
+ configTypes: {
+ 'ranger-hive-plugin-properties': {}
+ }
}),
Em.Object.create({
serviceName: 'HBASE',
- displayNName: 'HBase'
+ displayName: 'HBase',
+ configTypes: {
+ 'ranger-hbase-plugin-properties': {}
+ }
}),
Em.Object.create({
serviceName: 'KNOX',
- displayNName: 'Knox'
+ displayName: 'Knox',
+ configTypes: {
+ 'ranger-knox-plugin-properties': {}
+ }
}),
Em.Object.create({
serviceName: 'STORM',
- displayNName: 'Storm'
+ displayName: 'Storm',
+ configTypes: {
+ 'ranger-storm-plugin-properties': {}
+ }
+ }),
+ Em.Object.create({
+ serviceName: 'YARN',
+ displayName: 'YARN',
+ configTypes: {}
})
]);
});
@@ -99,7 +119,7 @@ describe('App.MainServiceInfoSummaryController', function () {
controller.set('isRangerPluginsArraySet', item.isRangerPluginsArraySet);
App.set('router.clusterController.isLoaded', item.isLoaded);
expect(controller.get('isRangerPluginsArraySet')).to.equal(item.expectedIsRangerPluginsArraySet);
- expect(controller.get('rangerPlugins').filterProperty('isDisplayed').mapProperty('serviceName').sort()).to.eql(['HDFS', 'HIVE']);
+ expect(controller.get('rangerPlugins').filterProperty('isDisplayed').mapProperty('serviceName').sort()).to.eql(['HDFS']);
});
});
[4/6] ambari git commit: AMBARI-11159. Kerberos: Add
kerberos-setup.sh script back to the resources/scripts directory with
appropriate changes (alexantonenko)
Posted by al...@apache.org.
AMBARI-11159. Kerberos: Add kerberos-setup.sh script back to the resources/scripts directory with appropriate changes (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ea8a8046
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ea8a8046
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ea8a8046
Branch: refs/heads/trunk
Commit: ea8a8046da69a266c267ef299389d43d825505ae
Parents: 3ccfc42
Author: Alex Antonenko <hi...@gmail.com>
Authored: Fri May 15 12:37:50 2015 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Fri May 15 12:53:46 2015 +0300
----------------------------------------------------------------------
.../main/resources/scripts/kerberos-setup.sh | 366 +++++++++++++++++++
1 file changed, 366 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/ea8a8046/ambari-server/src/main/resources/scripts/kerberos-setup.sh
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/scripts/kerberos-setup.sh b/ambari-server/src/main/resources/scripts/kerberos-setup.sh
new file mode 100644
index 0000000..8641616
--- /dev/null
+++ b/ambari-server/src/main/resources/scripts/kerberos-setup.sh
@@ -0,0 +1,366 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#
+# This script is provided as an example of how to parse the Kerberos CSV file.
+# It is for illustrative purposes only and should not be used for any other purpose.
+#
+
+############################
+## NOTE:
+## 1) This script should be executed on NameNode host as that host is guaranteed to have all the users needed while creating keytab file
+## 2) The script has been verified to work in gce environment and
+## vagrant environment documented at ambari wiki: https://cwiki.apache.org/confluence/display/AMBARI/Quick+Start+Guide
+###########################
+
+usage () {
+echo "Usage: keytabs.sh <HOST_PRINCIPAL_KEYTABLE.csv> <SSH_LOGIN_KEY_PATH>";
+echo " <HOST_PRINCIPAL_KEYTABLE.csv>: CSV file generated by 'Enable Security Wizard' of Ambari";
+echo " <SSH_LOGIN_KEY_PATH>: File path to the ssh login key for root user";
+exit 1;
+}
+
+###################
+## processCSVFile()
+###################
+processCSVFile () {
+ csvFile=$1;
+ csvFile=$(printf '%q' "$csvFile")
+ # Remove blank lines
+ sed -i '/^\s*$/d' $csvFile
+ touch generate_keytabs.sh;
+ chmod 755 generate_keytabs.sh;
+
+ echo "#!/bin/bash" > generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ echo "## " >> generate_keytabs.sh;
+ echo "## Ambari Security Script Generator" >> generate_keytabs.sh;
+ echo "## " >> generate_keytabs.sh;
+ echo "## Ambari security script is generated which should be run on the" >> generate_keytabs.sh;
+ echo "## Kerberos server machine." >> generate_keytabs.sh;
+ echo "## " >> generate_keytabs.sh;
+ echo "## Running the generated script will create host specific keytabs folders." >> generate_keytabs.sh;
+ echo "## Each of those folders will contain service specific keytab files with " >> generate_keytabs.sh;
+ echo "## appropriate permissions. There folders should be copied as the appropriate" >> generate_keytabs.sh;
+ echo "## host's '/etc/security/keytabs' folder" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+
+ rm -f commands.mkdir;
+ rm -f commands.chmod;
+ rm -f commands.addprinc;
+ rm -f commands.xst
+ rm -f commands.xst.cp
+ rm -f commands.chown.1
+ rm -f commands.chmod.1
+ rm -f commands.chmod.2
+ rm -f commands.tar
+
+ seenHosts="";
+ seenPrincipals="";
+
+ echo "mkdir -p ./tmp_keytabs" >> commands.mkdir;
+ sed 1d $csvFile | while read line; do
+ hostName=`echo $line|cut -d , -f 1`;
+ service=`echo $line|cut -d , -f 2`;
+ principal=`echo $line|cut -d , -f 3`;
+ localUserName=`echo $line|cut -d , -f 5`;
+ keytabFile=`echo $line|cut -d , -f 6 | cut -d , -f 6 | rev | cut -d '/' -f 1 | rev`;
+ fullKeytabFilePath=`echo $line|cut -d , -f 6`;
+ keytabFilePath=${fullKeytabFilePath%/*};
+ owner=`echo $line|cut -d , -f 7`;
+ group=`echo $line|cut -d , -f 9`;
+ acl=`echo $line|cut -d , -f 11`;
+
+ if [[ $seenHosts != *$hostName* ]]; then
+ echo "mkdir -p ./keytabs_$hostName" >> commands.mkdir;
+ echo "chmod 755 ./keytabs_$hostName" >> commands.chmod;
+ echo "chown -R root:$group `pwd`/keytabs_$hostName" >> commands.chown.1
+ echo "tar -cvf keytabs_$hostName.tar -C keytabs_$hostName ." >> commands.tar
+ seenHosts="$seenHosts$hostName";
+ fi
+
+ if [[ $seenPrincipals != *" $principal"* ]]; then
+ echo -e "kadmin.local -q \"addprinc -randkey $principal\"" >> commands.addprinc;
+ seenPrincipals="$seenPrincipals $principal"
+ fi
+ tmpKeytabFile="`pwd`/tmp_keytabs/$keytabFile";
+ newKeytabPath="`pwd`/keytabs_$hostName$keytabFilePath";
+ newKeytabFile="$newKeytabPath/$keytabFile";
+ if [ ! -f $tmpKeytabFile ]; then
+ echo "kadmin.local -q \"xst -k $tmpKeytabFile $principal\"" >> commands.xst;
+ fi
+ if [ ! -d $newKeytabPath ]; then
+ echo "mkdir -p $newKeytabPath" >> commands.mkdir;
+ fi
+ echo "cp $tmpKeytabFile $newKeytabFile" >> commands.xst.cp
+ echo "chmod $acl $newKeytabFile" >> commands.chmod.2
+ echo "chown $owner:$group $newKeytabFile" >> commands.chown.1
+ done;
+
+
+ echo "" >> generate_keytabs.sh;
+ echo "" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ echo "# Making host specific keytab folders" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ cat commands.mkdir >> generate_keytabs.sh;
+ echo "" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ echo "# Changing permissions for host specific keytab folders" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ cat commands.chmod >> generate_keytabs.sh;
+ echo "" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ echo "# Creating Kerberos Principals" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ cat commands.addprinc >> generate_keytabs.sh;
+ echo "" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ echo "# Creating Kerberos Principal keytabs in host specific keytab folders" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ cat commands.xst >> generate_keytabs.sh;
+ cat commands.xst.cp >> generate_keytabs.sh;
+ echo "" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ echo "# Changing ownerships of host specific keytab files" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ cat commands.chown.1 >> generate_keytabs.sh;
+ echo "" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ echo "# Changing access permissions of host specific keytab files" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ #cat commands.chmod.1
+ cat commands.chmod.2 >> generate_keytabs.sh;
+ echo "" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ echo "# Packaging keytab folders" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ cat commands.tar >> generate_keytabs.sh;
+ echo "" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ echo "# Cleanup" >> generate_keytabs.sh;
+ echo "###########################################################################" >> generate_keytabs.sh;
+ echo "rm -rf ./tmp_keytabs" >> generate_keytabs.sh;
+ echo "" >> generate_keytabs.sh;
+ echo "echo \"****************************************************************************\"" >> generate_keytabs.sh;
+ echo "echo \"****************************************************************************\"" >> generate_keytabs.sh;
+ echo "echo \"** Copy and extract 'keytabs_[hostname].tar' files onto respective hosts. **\"" >> generate_keytabs.sh;
+ echo "echo \"** **\"" >> generate_keytabs.sh;
+ echo "echo \"** Generated keytab files are preserved in the 'tmp_keytabs' folder. **\"" >> generate_keytabs.sh;
+ echo "echo \"****************************************************************************\"" >> generate_keytabs.sh;
+ echo "echo \"****************************************************************************\"" >> generate_keytabs.sh;
+
+ rm -f commands.mkdir >> generate_keytabs.sh;
+ rm -f commands.chmod >> generate_keytabs.sh;
+ rm -f commands.addprinc >> generate_keytabs.sh;
+ rm -f commands.xst >> generate_keytabs.sh;
+ rm -f commands.xst.cp >> generate_keytabs.sh;
+ rm -f commands.chown.1 >> generate_keytabs.sh;
+ rm -f commands.chmod.1 >> generate_keytabs.sh;
+ rm -f commands.chmod.2 >> generate_keytabs.sh;
+ rm -f commands.tar >> generate_keytabs.sh;
+ # generate keytabs
+ sh ./generate_keytabs.sh
+}
+
+########################
+## installKDC () : Install rng tools,pdsh on KDC host and KDC packages on all host. Modify krb5 file
+########################
+installKDC () {
+ csvFile=$1;
+ sshLoginKey=$2;
+ HOSTNAME=`hostname --fqdn`
+ scriptDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+ krb5_new_conf=$scriptDir"/krb5.conf"
+ krb5_conf="/etc/krb5.conf"
+ #export additional path for suse and centos5
+ PATH=$PATH:/usr/lib/mit/sbin/:/usr/kerberos/sbin/:/usr/sbin/:/sbin/
+ # Install rng tools
+ installRngtools
+ # Install kdc server on this host
+ $inst_cmd $server_packages
+ # Configure /etc/krb5.conf
+ cp $krb5_conf $krb5_conf".bak"
+ cp $krb5_new_conf $krb5_conf
+ sed -i "s/\(kdc *= *\).*kerberos.example.com.*/\1$HOSTNAME/" $krb5_conf
+ sed -i "s/\(admin_server *= *\).*kerberos.example.com.*/\1$HOSTNAME/" $krb5_conf
+ # Create principal key and start services
+ if [[ ! -f $principal_file ]]; then
+ echo -ne '\n\n' | kdb5_util create -s
+ fi
+ eval $kdc_service_start
+ eval $kadmin_service_start
+ # Install pdsh on this host
+ $inst_cmd pdsh;
+ chown root:root -R /usr;
+ eval `ssh-agent`
+ ssh-add $sshLoginKey
+ hostNames='';
+
+ # remove empty lines
+ sed -i "/^\s*$/d" $csvFile;
+
+ sed 1d $csvFile > $csvFile.tmp
+ while read line; do
+ hostName=`echo $line|cut -d , -f 1`;
+ if [ -z "$hostNames" ]; then
+ hostNames=$hostName;
+ continue;
+ fi
+ if [[ $hostNames != *$hostName* ]]; then
+ hostNames=$hostNames,$hostName;
+ fi
+ echo "hostNames $hostNames";
+ done < $csvFile.tmp;
+ rm -f $csvFile.tmp
+ # Check all hosts for passwordless ssh
+ OLD_IFS=$IFS
+ IFS=,
+ for host in $hostNames; do
+
+ checkSSH $host
+ done
+ IFS=$OLD_IFS
+ export PDSH_SSH_ARGS_APPEND="-q -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=publickey"
+ pdsh -R ssh -w $hostNames "$inst_cmd $client_packages"
+ pdsh -R ssh -w $hostNames "$inst_cmd pdsh"
+ pdsh -R ssh -w $hostNames chown root:root -R /usr
+ pdcp -R ssh -w $hostNames $krb5_conf $krb5_conf
+}
+
+########################
+## distributeKeytabs () : Distribute the tar on all respective hosts root directory and untar it
+########################
+distributeKeytabs () {
+ shopt -s nullglob
+ filearray=(keytabs_*tar)
+ for i in ${filearray[@]}; do
+ derivedname=${i%.*}
+ derivedname=${derivedname##keytabs_}
+ echo $derivedname
+ scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $i root@$derivedname:/
+ ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@$derivedname "cd /;tar xvf $i --no-overwrite-dir"
+ done
+}
+
+########################
+## getEnvironmentCMD () : get linux distribution type and package manager
+########################
+getEnvironmentCMD () {
+ os=`python -c 'import sys; sys.path.append("/usr/lib/python2.6/site-packages/"); from ambari_commons import OSCheck; print OSCheck.get_os_family()'`
+ version=`python -c 'import sys; sys.path.append("/usr/lib/python2.6/site-packages/"); from ambari_commons import OSCheck; print OSCheck.get_os_major_version()'`
+ os=$os$version;
+ case $os in
+ 'ubuntu12' )
+ pkgmgr='apt-get'
+ inst_cmd="env DEBIAN_FRONTEND=noninteractive /usr/bin/$pkgmgr --allow-unauthenticated --assume-yes install -f "
+ client_packages="krb5-user libpam-krb5 libpam-ccreds auth-client-config"
+ server_packages="krb5-kdc krb5-admin-server $client_packages"
+ rng_tools="rng-tools"
+ principal_file="/etc/krb5kdc/principal"
+ kdc_service_start="service krb5-kdc start || service krb5-kdc status"
+ kadmin_service_start="service krb5-admin-server start || service krb5-admin-server status"
+ ;;
+ 'redhat5' )
+ pkgmgr='yum'
+ inst_cmd="/usr/bin/$pkgmgr -y install "
+ client_packages="krb5-workstation"
+ server_packages="krb5-server krb5-libs krb5-auth-dialog $client_packages"
+ rng_tools="rng-utils"
+ principal_file="/var/kerberos/krb5kdc/principal"
+ kdc_service_start="service kadmin start; service kadmin status"
+ kadmin_service_start="service krb5kdc start || service krb5kdc status"
+ ;;
+ 'redhat6' )
+ pkgmgr='yum'
+ inst_cmd="/usr/bin/$pkgmgr -y install "
+ client_packages="krb5-workstation"
+ server_packages="krb5-server krb5-libs krb5-auth-dialog $client_packages"
+ rng_tools="rng-tools"
+ principal_file="/var/kerberos/krb5kdc/principal"
+ kdc_service_start="service kadmin start; service kadmin status"
+ kadmin_service_start="service krb5kdc start || service krb5kdc status"
+ ;;
+ 'suse11' )
+ pkgmgr='zypper'
+ inst_cmd="/usr/bin/$pkgmgr install --auto-agree-with-licenses --no-confirm "
+ client_packages="krb5-client"
+ server_packages="krb5 krb5-server $client_packages"
+ rng_tools="rng-tools"
+ principal_file="/var/lib/kerberos/krb5kdc/principal"
+ kdc_service_start="service kadmind start || service kadmind status"
+ kadmin_service_start="service krb5kdc start || service krb5kdc status"
+ ;;
+ esac
+}
+
+########################
+## checkUser () : If the user executing the script is not "root" then exit
+########################
+checkUser () {
+ userid=`id -u`;
+ if (($userid != 0)); then
+ echo "ERROR: The script needs to be executed by root user"
+ exit 1;
+ fi
+}
+
+########################
+## checkSSH () : If passwordless ssh for root is not configured then exit
+########################
+checkSSH () {
+ host=$1
+ ssh -oPasswordAuthentication=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $host "exit 0" && return_value=0 || return_value=$? && true
+ if [[ $return_value != 0 ]]; then
+ echo "ERROR: Passwordless ssh for user root is not configured for host $host"
+ exit 1;
+ fi
+}
+
+########################
+## installRngtools () : Install and start rng-tools
+########################
+installRngtools () {
+ $inst_cmd $rng_tools
+ echo $inst_cmd $rng_utils
+ if [ $os == 'ubuntu12' ] || [ $os == 'suse11' ]; then
+ echo "HRNGDEVICE=/dev/urandom" >> /etc/default/rng-tools
+ /etc/init.d/rng-tools start || true
+ elif [ $os == 'redhat5' ]; then
+ /sbin/rngd -r /dev/urandom -o /dev/random -f -t .001 --background
+ else
+ sed -i "s/\(EXTRAOPTIONS *= *\).*/\1\"-r \/dev\/urandom\"/" "/etc/sysconfig/rngd"
+ # start rngd
+ /etc/init.d/rngd start
+ fi
+}
+
+if (($# != 2)); then
+ usage
+fi
+
+set -e
+checkUser
+getEnvironmentCMD
+installKDC $@
+processCSVFile $@
+distributeKeytabs $@
\ No newline at end of file
[2/6] ambari git commit: AMBARI-11155. Bulk Stop shows 'Nothing to
Do' when there are components in started state (alexantonenko)
Posted by al...@apache.org.
AMBARI-11155. Bulk Stop shows 'Nothing to Do' when there are components in started state (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5e8e7ac7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5e8e7ac7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5e8e7ac7
Branch: refs/heads/trunk
Commit: 5e8e7ac789ab02ca99e1ef78a21005c761d194d6
Parents: 94ba7c0
Author: Alex Antonenko <hi...@gmail.com>
Authored: Fri May 15 10:57:45 2015 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Fri May 15 12:53:45 2015 +0300
----------------------------------------------------------------------
ambari-web/app/controllers/main/host.js | 42 ++++++++++++++--------------
1 file changed, 21 insertions(+), 21 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/5e8e7ac7/ambari-web/app/controllers/main/host.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/host.js b/ambari-web/app/controllers/main/host.js
index 02ca468..e5f08b3 100644
--- a/ambari-web/app/controllers/main/host.js
+++ b/ambari-web/app/controllers/main/host.js
@@ -209,7 +209,6 @@ App.MainHostController = Em.ArrayController.extend(App.TableServerMixin, {
skipNonFilterProperties = skipNonFilterProperties || false;
var queryParams = [],
savedFilterConditions = App.db.getFilterConditions(this.get('name')) || [],
- savedSortConditions = App.db.getSortingStatuses(this.get('name')) || [],
colPropAssoc = this.get('colPropAssoc'),
filterProperties = this.get('filterProperties'),
sortProperties = this.get('sortProps'),
@@ -597,8 +596,6 @@ App.MainHostController = Em.ArrayController.extend(App.TableServerMixin, {
var query = [];
var hostNames = [];
var hostsMap = {};
- var context = this,
- shouldRun = false;
data.items.forEach(function (host) {
host.host_components.forEach(function (hostComponent) {
@@ -610,28 +607,20 @@ App.MainHostController = Em.ArrayController.extend(App.TableServerMixin, {
}
}
});
- hostsMap[host.Hosts.host_name].healthStatus = context.dataSource.filterProperty('hostName', host.Hosts.host_name)[0].get('healthStatus');
});
for (var hostName in hostsMap) {
var subQuery = '(HostRoles/component_name.in(%@)&HostRoles/host_name=' + hostName + ')';
var components = hostsMap[hostName];
- var action = operationData.get('action'),
- healthStatus = hostsMap[hostName].healthStatus;
if (components.length) {
query.push(subQuery.fmt(components.join(',')));
}
hostNames.push(hostName);
-
- if ((action === App.HostComponentStatus.started && healthStatus !== 'HEALTHY') || // start all and already started
- (action === App.HostComponentStatus.stopped && healthStatus !== 'UNHEALTHY')) { // stop all and already stopped
- shouldRun = true;
- }
}
hostNames = hostNames.join(",");
- if (query.length && shouldRun) {
+ if (query.length) {
query = query.join('|');
App.ajax.send({
name: 'common.host_components.update',
@@ -642,7 +631,8 @@ App.MainHostController = Em.ArrayController.extend(App.TableServerMixin, {
state: operationData.action
},
context: operationData.message,
- hostName: hostNames
+ hostName: hostNames,
+ noOpsMessage: Em.I18n.t('hosts.host.maintainance.allComponents.context')
},
success: 'bulkOperationForHostComponentsSuccessCallback'
});
@@ -751,7 +741,8 @@ App.MainHostController = Em.ArrayController.extend(App.TableServerMixin, {
},
query: 'HostRoles/component_name=' + operationData.componentName + '&HostRoles/host_name.in(' + hostsWithComponentInProperState.join(',') + ')&HostRoles/maintenance_state=OFF',
context: operationData.message + ' ' + operationData.componentNameFormatted,
- level: 'SERVICE'
+ level: 'SERVICE',
+ noOpsMessage: operationData.componentNameFormatted
},
success: 'bulkOperationForHostComponentsSuccessCallback'
});
@@ -841,7 +832,8 @@ App.MainHostController = Em.ArrayController.extend(App.TableServerMixin, {
context: Em.I18n.t(contextString),
serviceName: service.get('serviceName'),
componentName: operationData.componentName,
- parameters: parameters
+ parameters: parameters,
+ noOpsMessage: operationData.componentNameFormatted
},
success: 'bulkOperationForHostComponentsSuccessCallback'
});
@@ -937,12 +929,20 @@ App.MainHostController = Em.ArrayController.extend(App.TableServerMixin, {
/**
* Show BO popup after bulk request
*/
- bulkOperationForHostComponentsSuccessCallback: function () {
- App.router.get('applicationController').dataLoading().done(function (initValue) {
- if (initValue) {
- App.router.get('backgroundOperationsController').showPopup();
- }
- });
+ bulkOperationForHostComponentsSuccessCallback: function (data, opt, params, req) {
+ if (!data && req.status == 200) {
+ App.ModalPopup.show({
+ header: Em.I18n.t('rolling.nothingToDo.header'),
+ body: Em.I18n.t('rolling.nothingToDo.body').format(params.noOpsMessage || Em.I18n.t('hosts.host.maintainance.allComponents.context')),
+ secondary: false
+ });
+ } else {
+ App.router.get('applicationController').dataLoading().done(function (initValue) {
+ if (initValue) {
+ App.router.get('backgroundOperationsController').showPopup();
+ }
+ });
+ }
},
/**
[6/6] ambari git commit: AMBARI-11157. Add host kerberos client
install does not have command text (alexantonenko)
Posted by al...@apache.org.
AMBARI-11157. Add host kerberos client install does not have command text (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8dbdf1d0
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8dbdf1d0
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8dbdf1d0
Branch: refs/heads/trunk
Commit: 8dbdf1d003b0ab62cd73a928ebe765e047072094
Parents: 68d0294
Author: Alex Antonenko <hi...@gmail.com>
Authored: Fri May 15 12:21:48 2015 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Fri May 15 12:53:46 2015 +0300
----------------------------------------------------------------------
.../app/templates/wizard/step9/step9HostTasksLogPopup.hbs | 6 ++++--
ambari-web/app/utils/ajax/ajax.js | 2 +-
ambari-web/app/views/wizard/step9/hostLogPopupBody_view.js | 1 +
.../test/views/wizard/step9/hostLogPopupBody_view_test.js | 4 +++-
4 files changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/8dbdf1d0/ambari-web/app/templates/wizard/step9/step9HostTasksLogPopup.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/wizard/step9/step9HostTasksLogPopup.hbs b/ambari-web/app/templates/wizard/step9/step9HostTasksLogPopup.hbs
index daa082e..9886a3a 100644
--- a/ambari-web/app/templates/wizard/step9/step9HostTasksLogPopup.hbs
+++ b/ambari-web/app/templates/wizard/step9/step9HostTasksLogPopup.hbs
@@ -44,7 +44,7 @@
<div class="operation-name-icon-wrap">
<i {{bindAttr class="taskInfo.status taskInfo.icon"}}></i>
<a href="#">
- {{taskInfo.role}} {{taskInfo.command}}
+ {{taskInfo.commandDetail}}
</a>
</div>
<div class="show-details"><i class="icon-caret-right"></i></div>
@@ -68,7 +68,9 @@
<a title="Click to Copy" {{action "textTrigger" taskInfo target="view"}} class="task-detail-copy"><i class="icon-copy"></i> {{t common.copy}}</a>
<a title="Open in New Window" {{action openTaskLogInDialog}} class="task-detail-open-dialog"><i class="icon-external-link"></i> {{t common.open}}</a>
</div>
- <span class="task-detail-log-rolename">{{view.openedTask.role}} {{view.openedTask.command}}</span>
+ <span class="task-detail-log-rolename">
+ {{view.openedTask.commandDetail}}
+ </span>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/ambari/blob/8dbdf1d0/ambari-web/app/utils/ajax/ajax.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/ajax/ajax.js b/ambari-web/app/utils/ajax/ajax.js
index 8998158..dab402d 100644
--- a/ambari-web/app/utils/ajax/ajax.js
+++ b/ambari-web/app/utils/ajax/ajax.js
@@ -1675,7 +1675,7 @@ var urls = {
'mock': '/data/wizard/deploy/5_hosts/get_host_state.json'
},
'wizard.step9.load_log': {
- 'real': '/clusters/{cluster}/requests/{requestId}?fields=tasks/Tasks/command,tasks/Tasks/exit_code,tasks/Tasks/start_time,tasks/Tasks/end_time,tasks/Tasks/host_name,tasks/Tasks/id,tasks/Tasks/role,tasks/Tasks/status&minimal_response=true',
+ 'real': '/clusters/{cluster}/requests/{requestId}?fields=tasks/Tasks/command,tasks/Tasks/command_detail,tasks/Tasks/exit_code,tasks/Tasks/start_time,tasks/Tasks/end_time,tasks/Tasks/host_name,tasks/Tasks/id,tasks/Tasks/role,tasks/Tasks/status&minimal_response=true',
'mock': '/data/wizard/deploy/5_hosts/poll_{numPolls}.json',
'format': function () {
return {
http://git-wip-us.apache.org/repos/asf/ambari/blob/8dbdf1d0/ambari-web/app/views/wizard/step9/hostLogPopupBody_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/wizard/step9/hostLogPopupBody_view.js b/ambari-web/app/views/wizard/step9/hostLogPopupBody_view.js
index c81230d..301c403 100644
--- a/ambari-web/app/views/wizard/step9/hostLogPopupBody_view.js
+++ b/ambari-web/app/views/wizard/step9/hostLogPopupBody_view.js
@@ -138,6 +138,7 @@ App.WizardStep9HostLogPopupBodyView = Em.View.extend({
taskInfo.set('id', _task.Tasks.id);
taskInfo.set('requestId', _task.Tasks.request_id);
taskInfo.set('command', _task.Tasks.command.toLowerCase() === 'service_check' ? '' : _task.Tasks.command.toLowerCase());
+ taskInfo.set('commandDetail', App.format.commandDetail(_task.Tasks.command_detail, _task.Tasks.request_inputs));
taskInfo.set('status', App.format.taskStatus(_task.Tasks.status));
taskInfo.set('role', App.format.role(_task.Tasks.role));
taskInfo.set('stderr', _task.Tasks.stderr);
http://git-wip-us.apache.org/repos/asf/ambari/blob/8dbdf1d0/ambari-web/test/views/wizard/step9/hostLogPopupBody_view_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/views/wizard/step9/hostLogPopupBody_view_test.js b/ambari-web/test/views/wizard/step9/hostLogPopupBody_view_test.js
index 530727c..c039c0a 100644
--- a/ambari-web/test/views/wizard/step9/hostLogPopupBody_view_test.js
+++ b/ambari-web/test/views/wizard/step9/hostLogPopupBody_view_test.js
@@ -152,7 +152,8 @@ describe('App.WizardStep9HostLogPopupBodyView', function() {
stderr: 'stderr',
stdout: 'stdout',
host_name: 'host1',
- command: 'Cmd'
+ command: 'Cmd',
+ command_detail: 'TEST SERVICE/COMPONENT_DESCRIPTION'
}
};
@@ -164,6 +165,7 @@ describe('App.WizardStep9HostLogPopupBodyView', function() {
expect(first.get('id')).to.equal(1);
expect(first.get('requestId')).to.equal(2);
expect(first.get('command')).to.equal('cmd');
+ expect(first.get('commandDetail')).to.equal(' Test Component Description');
expect(first.get('role')).to.equal('Pig');
expect(first.get('stderr')).to.equal('stderr');
expect(first.get('stdout')).to.equal('stdout');
[5/6] ambari git commit: AMBARI-11135. Kerberos: Selecting "Manual"
option and then going back to "Existing KDC" option loses KDC host field and
connection tester (alexantonenko)
Posted by al...@apache.org.
AMBARI-11135. Kerberos: Selecting "Manual" option and then going back to "Existing KDC" option loses KDC host field and connection tester (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d239381e
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d239381e
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d239381e
Branch: refs/heads/trunk
Commit: d239381ebce715e56ab840a227dc32c333b7e493
Parents: ea8a804
Author: Alex Antonenko <hi...@gmail.com>
Authored: Fri May 15 12:40:40 2015 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Fri May 15 12:53:46 2015 +0300
----------------------------------------------------------------------
.../main/admin/kerberos/step2_controller.js | 28 ++++++++++++--------
.../main/admin/kerberos/wizard_controller.js | 15 ++++++-----
ambari-web/app/routes/add_kerberos_routes.js | 2 ++
.../configs/service_configs_by_category_view.js | 4 ---
4 files changed, 27 insertions(+), 22 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/d239381e/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js b/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js
index eca8ab2..947ea12 100644
--- a/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js
+++ b/ambari-web/app/controllers/main/admin/kerberos/step2_controller.js
@@ -91,15 +91,15 @@ App.KerberosWizardStep2Controller = App.WizardStep7Controller.extend({
//STEP 2: Load on-site configs by service from local DB
var storedConfigs = this.get('content.serviceConfigProperties');
//STEP 3: Merge pre-defined configs with loaded on-site configs
- var configs = App.config.mergePreDefinedWithStored(
+ this.set('configs', App.config.mergePreDefinedWithStored(
storedConfigs,
advancedConfigs,
- this.get('selectedServiceNames'));
+ this.get('selectedServiceNames')));
App.config.setPreDefinedServiceConfigs(this.get('addMiscTabToPage'));
//STEP 4: Add advanced configs
- App.config.addAdvancedConfigs(configs, advancedConfigs);
- this.filterConfigs(configs);
- this.applyServicesConfigs(configs, storedConfigs);
+ App.config.addAdvancedConfigs(this.get('configs'), advancedConfigs);
+ this.filterConfigs(this.get('configs'));
+ this.applyServicesConfigs(this.get('configs'), storedConfigs);
},
/**
@@ -109,15 +109,21 @@ App.KerberosWizardStep2Controller = App.WizardStep7Controller.extend({
filterConfigs: function (configs) {
var kdcType = this.get('content.kerberosOption');
var configNames = ['ldap_url', 'container_dn', 'create_attributes_template'];
+ var kerberosWizardController = this.controllers.get('kerberosWizardController');
+
+ if (kdcType === Em.I18n.t('admin.kerberos.wizard.step1.option.manual')) {
+ if (kerberosWizardController.get('skipClientInstall')) {
+ kerberosWizardController.overrideVisibility(configs, false, kerberosWizardController.get('exceptionsOnSkipClient'));
+ }
+ return;
+ }
+
configNames.forEach(function (_configName) {
var config = configs.findProperty('name', _configName);
- config.isVisible = kdcType === Em.I18n.t('admin.kerberos.wizard.step1.option.ad');
+ if (config) {
+ config.isVisible = kdcType === Em.I18n.t('admin.kerberos.wizard.step1.option.ad');
+ }
}, this);
- if (kdcType === Em.I18n.t('admin.kerberos.wizard.step1.option.manual')) {
- var host = configs.findProperty('name', 'kdc_host');
- host.isRequiredByAgent = false;
- host.isVisible = false;
- }
},
submit: function () {
http://git-wip-us.apache.org/repos/asf/ambari/blob/d239381e/ambari-web/app/controllers/main/admin/kerberos/wizard_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/kerberos/wizard_controller.js b/ambari-web/app/controllers/main/admin/kerberos/wizard_controller.js
index 10046eb..738af3f 100644
--- a/ambari-web/app/controllers/main/admin/kerberos/wizard_controller.js
+++ b/ambari-web/app/controllers/main/admin/kerberos/wizard_controller.js
@@ -179,14 +179,15 @@ App.KerberosWizardController = App.WizardController.extend({
* @param {Array} itemsArray
* @param newValue
*/
- overrideVisibility: function (itemsArray, newValue) {
- var self = this;
- newValue = newValue || false;
+ overrideVisibility: function (itemsArray, newValue, exceptions) {
+ newValue = newValue || false
- for (var i=0; i < itemsArray.length; i += 1) {
- var isException = self.get('exceptionsOnSkipClient').filterProperty(itemsArray[i].get('category'), itemsArray[i].get('name'));
- if (!isException.length) {
- itemsArray[i].set('isVisible', newValue);
+ for (var i = 0, len = itemsArray.length; i < len; i += 1) {
+ if (!Ember.$.isEmptyObject(itemsArray[i])) {
+ var isException = exceptions.filterProperty(itemsArray[i].category, itemsArray[i].name);
+ if (!isException.length) {
+ itemsArray[i].isVisible = newValue;
+ }
}
}
},
http://git-wip-us.apache.org/repos/asf/ambari/blob/d239381e/ambari-web/app/routes/add_kerberos_routes.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/routes/add_kerberos_routes.js b/ambari-web/app/routes/add_kerberos_routes.js
index 0f9f3e3..ef2d1e7 100644
--- a/ambari-web/app/routes/add_kerberos_routes.js
+++ b/ambari-web/app/routes/add_kerberos_routes.js
@@ -164,7 +164,9 @@ module.exports = App.WizardRoute.extend({
},
back: function(router) {
var controller = router.get('kerberosWizardStep2Controller');
+ var kerberosWizardController = router.get('kerberosWizardController');
if (!controller.get('isBackBtnDisabled')) {
+ kerberosWizardController.overrideVisibility(controller.get('configs'), true, []);
router.transitionTo('step1')
}
},
http://git-wip-us.apache.org/repos/asf/ambari/blob/d239381e/ambari-web/app/views/common/configs/service_configs_by_category_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/configs/service_configs_by_category_view.js b/ambari-web/app/views/common/configs/service_configs_by_category_view.js
index 56f34bf..5cfc3e9 100644
--- a/ambari-web/app/views/common/configs/service_configs_by_category_view.js
+++ b/ambari-web/app/views/common/configs/service_configs_by_category_view.js
@@ -62,10 +62,6 @@ App.ServiceConfigsByCategoryView = Em.View.extend(App.UserPref, App.ConfigOverri
*/
categoryConfigsAll: function () {
var configs = this.get('serviceConfigs').filterProperty('category', this.get('category.name'));
-
- if (this.get('service.serviceName') === 'KERBEROS' && App.router.get('kerberosWizardController.skipClientInstall')) {
- App.router.get('kerberosWizardController').overrideVisibility(configs, false);
- }
return configs;
}.property('serviceConfigs.@each').cacheable(),
[3/6] ambari git commit: AMBARI-11158. Kerberos: Improve Review page
content (alexantonenko)
Posted by al...@apache.org.
AMBARI-11158. Kerberos: Improve Review page content (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3ccfc42b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3ccfc42b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3ccfc42b
Branch: refs/heads/trunk
Commit: 3ccfc42bda19d5f2e642f81ca020674b2ca1590c
Parents: 8dbdf1d
Author: Alex Antonenko <hi...@gmail.com>
Authored: Fri May 15 12:27:53 2015 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Fri May 15 12:53:46 2015 +0300
----------------------------------------------------------------------
.../main/admin/kerberos/step5_controller.js | 31 +++++++++++++++++++-
ambari-web/app/messages.js | 5 ++++
.../app/templates/main/admin/kerberos/step5.hbs | 6 ++--
3 files changed, 37 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/3ccfc42b/ambari-web/app/controllers/main/admin/kerberos/step5_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/kerberos/step5_controller.js b/ambari-web/app/controllers/main/admin/kerberos/step5_controller.js
index 7cad80f..c6cbf0f 100644
--- a/ambari-web/app/controllers/main/admin/kerberos/step5_controller.js
+++ b/ambari-web/app/controllers/main/admin/kerberos/step5_controller.js
@@ -139,5 +139,34 @@ App.KerberosWizardStep5Controller = App.KerberosProgressPageController.extend({
isSubmitDisabled: function () {
return !["COMPLETED", "FAILED"].contains(this.get('status'));
- }.property('status')
+ }.property('status'),
+
+ confirmProperties: function () {
+ var kdc_type = App.router.kerberosWizardController.content.serviceConfigProperties.findProperty('name','kdc_type').value,
+ filterObject = [
+ {
+ key: Em.I18n.t('admin.kerberos.wizard.step1.option.kdc'),
+ properties: ['kdc_type','kdc_host','realm','executable_search_paths']
+ },
+ {
+ key: Em.I18n.t('admin.kerberos.wizard.step1.option.ad'),
+ properties: ['kdc_type','kdc_host','realm','ldap_url','container_dn','executable_search_paths']
+ },
+ {
+ key: Em.I18n.t('admin.kerberos.wizard.step1.option.manual'),
+ properties: ['kdc_type','realm','executable_search_paths']
+ }
+ ],
+ kdcTypeProperties = filterObject.filter(function(item) {
+ return item.key === kdc_type;
+ }),
+ filterBy = kdcTypeProperties.length ? kdcTypeProperties[0].properties : [],
+ returnArray = App.router.kerberosWizardController.content.serviceConfigProperties.filter(function(item) {
+ return filterBy.contains(item.name);
+ }).map(function(item) {
+ item['label'] = Em.I18n.t('admin.kerberos.wizard.step5.'+item['name']+'.label');
+ return item;
+ });
+ return returnArray;
+ }.property('App.router.kerberosWizardController.content.@each.serviceConfigProperties')
});
http://git-wip-us.apache.org/repos/asf/ambari/blob/3ccfc42b/ambari-web/app/messages.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index 0fbdcec..d54cdd7 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -1026,7 +1026,12 @@ Em.I18n.translations = {
'admin.kerberos.wizard.step5.info.body': 'Please review the configuration before continuing the setup process',
'admin.kerberos.wizard.step5.moreInfoNonManual.body': 'Using the <b>Download CSV button</b>, you can download a csv file which contains a list of the principals and keytabs that will automatically be created by Ambari.',
'admin.kerberos.wizard.step5.moreInfoManual.body': 'Important: Use the <b>Download CSV</b> button to obtain a list of the <b>required</b> principals and keytabs that are needed by Ambari to enable Kerberos in the cluster. <b>Do not proceed</b> until you have manually created and distributed the principals and keytabs to the cluster hosts.',
+ 'admin.kerberos.wizard.step5.kdc_type.label': 'KDC Type',
+ 'admin.kerberos.wizard.step5.kdc_host.label': 'KDC Host',
'admin.kerberos.wizard.step5.realm.label': 'Realm Name',
+ 'admin.kerberos.wizard.step5.ldap_url.label': 'LDAP URL',
+ 'admin.kerberos.wizard.step5.container_dn.label': 'Container DN',
+ 'admin.kerberos.wizard.step5.executable_search_paths.label': 'Executable path',
'admin.kerberos.wizard.step5.exitWizard': 'Exit Wizard',
'admin.kerberos.wizard.step5.downloadCSV': 'Download CSV',
'admin.kerberos.wizard.step6.task0.title' : 'Stop Services',
http://git-wip-us.apache.org/repos/asf/ambari/blob/3ccfc42b/ambari-web/app/templates/main/admin/kerberos/step5.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/admin/kerberos/step5.hbs b/ambari-web/app/templates/main/admin/kerberos/step5.hbs
index 3c1adf4..bd3d27d 100644
--- a/ambari-web/app/templates/main/admin/kerberos/step5.hbs
+++ b/ambari-web/app/templates/main/admin/kerberos/step5.hbs
@@ -36,11 +36,9 @@
</div>
<div class="well pre-scrollable">
- <p><strong>{{t installer.step0.clusterName.tooltip.title}}</strong>: {{App.router.clusterController.clusterName}}</p>
- <p><strong>{{t admin.kerberos.wizard.step1.option.manual}}</strong>: {{App.router.kerberosWizardController.skipClientInstall}}</p>
- {{#each App.router.kerberosWizardController.content.serviceConfigProperties}}
+ {{#each confirmProperties}}
{{#if value}}
- <p><strong>{{name}}</strong>: {{value}}</p>
+ <p><strong>{{label}}</strong>: {{value}}</p>
{{/if}}
{{/each}}
</div>