From d59b16f17b795f88e394c74c5ec0d30e715f4308 Mon Sep 17 00:00:00 2001 From: Ken Chen Date: Mon, 8 Jun 2015 11:53:15 +0800 Subject: [PATCH] Add installing keytrustee-keyprovider package We add install keytrustee-keyprovider package to support Key Trustee KMS in CDH plugin. Partial-implements: blueprint cdh-kms-support Change-Id: I7cea6e9be6b9d21d12fccc08055bc71896742668 --- .../hadoop-cloudera/install.d/50-install-cloudera | 4 +++- elements/hadoop-cloudera/pre-install.d/10-add-mirror | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/elements/hadoop-cloudera/install.d/50-install-cloudera b/elements/hadoop-cloudera/install.d/50-install-cloudera index c6309e88..8f3fd620 100755 --- a/elements/hadoop-cloudera/install.d/50-install-cloudera +++ b/elements/hadoop-cloudera/install.d/50-install-cloudera @@ -35,16 +35,18 @@ install-packages \ spark-core \ zookeeper -if [ $DIB_CDH_VERSION != "5.0" ]; then +if [ $DIB_CDH_VERSION \> "5.0" ]; then # CDH5.0 does not have below packages. install-packages \ flume-ng \ + hadoop-kms \ hbase-solr \ impala \ impala-server \ impala-state-store \ impala-catalog \ impala-shell \ + keytrustee-keyprovider \ sentry \ solr-server \ solr-doc \ diff --git a/elements/hadoop-cloudera/pre-install.d/10-add-mirror b/elements/hadoop-cloudera/pre-install.d/10-add-mirror index ea512dcb..72f092ff 100755 --- a/elements/hadoop-cloudera/pre-install.d/10-add-mirror +++ b/elements/hadoop-cloudera/pre-install.d/10-add-mirror @@ -61,6 +61,9 @@ function add_repo_5_3_0 { wget -qO - http://archive-primary.cloudera.com/cm5/ubuntu/precise/amd64/cm/archive.key | apt-key add - + wget -O /etc/apt/sources.list.d/kms.list http://archive.cloudera.com/navigator-keytrustee5/ubuntu/precise/amd64/navigator-keytrustee/cloudera.list + wget -qO - http://archive.cloudera.com/navigator-keytrustee5/ubuntu/precise/amd64/navigator-keytrustee/archive.key | apt-key add - + apt-get update ;; centos | rhel ) @@ -75,6 +78,9 @@ function add_repo_5_3_0 { echo 'baseurl=http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/5.3.0/' >> /etc/yum.repos.d/cloudera-manager.repo echo 'gpgkey = http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/RPM-GPG-KEY-cloudera' >> /etc/yum.repos.d/cloudera-manager.repo echo 'gpgcheck = 1' >> /etc/yum.repos.d/cloudera-manager.repo + + wget -O /etc/yum.repos.d/kms.repo http://archive.cloudera.com/navigator-keytrustee5/redhat/6/x86_64/navigator-keytrustee/navigator-keytrustee5.repo + yum clean all ;; esac @@ -98,6 +104,9 @@ function add_repo_5_4_0 { wget -qO - http://archive-primary.cloudera.com/cm5/ubuntu/precise/amd64/cm/archive.key | apt-key add - + wget -O /etc/apt/sources.list.d/kms.list http://archive.cloudera.com/navigator-keytrustee5/ubuntu/precise/amd64/navigator-keytrustee/cloudera.list + wget -qO - http://archive.cloudera.com/navigator-keytrustee5/ubuntu/precise/amd64/navigator-keytrustee/archive.key | apt-key add - + apt-get update ;; centos | rhel ) @@ -112,6 +121,9 @@ function add_repo_5_4_0 { echo 'baseurl=http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/5.4.0/' >> /etc/yum.repos.d/cloudera-manager.repo echo 'gpgkey = http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/RPM-GPG-KEY-cloudera' >> /etc/yum.repos.d/cloudera-manager.repo echo 'gpgcheck = 1' >> /etc/yum.repos.d/cloudera-manager.repo + + wget -O /etc/yum.repos.d/kms.repo http://archive.cloudera.com/navigator-keytrustee5/redhat/6/x86_64/navigator-keytrustee/navigator-keytrustee5.repo + yum clean all ;; esac