hue Upgrade Document

First, identify our two installation packages:

  • hue.zip (This package can also be downloaded from our git repository, and I'll send you a link)
  • huetool.zip

Then stop hue's service at the CDH's management interface:

1, Enter hue

2, Select an instance

3, select Hue Server

4, select Action -> Stop this Hue Server

After stopping the hue service, go into the shell and start installing kerberos:

1, unzip huetool.zip

2, Enter, open krb5.conf

3, Modify kdc, admin_server

[realms]
SUNMNET.COM = {
  kdc = master
  admin_server = master
 }

4, add two new files: master and slaves (which store the host name of the primary node and the host name of the child node, respectively):

master input:

master

slaves input:

slave1
slave2
slave3
slave4

5, enter / usr/java/jdk1.7.0_71/jre/lib/security/under this path, add the

local_policy.jar  US_export_policy.jar

These two jar packages are moved to this path

6, enter the huetool folder and execute the depoly_kerberos.sh script (scripts only need to be executed on the primary node, recommended on the master node):

sh depoly_kerberos.sh

7, prompt when installing:

Initializing database '/var/kerberos/krb5kdc/principal' for realm 'SUNMNET.COM',
master key name 'K/M@SUNMNET.COM'
You will be prompted for the database Master Password.
It is important that you NOT FORGET this password.
Enter KDC database master key:
Re-enter KDC database master key to verify:

Input password:

sunmnet123

8, Start Kerberos in CDH:

Enter the management interface of CDH -> Management -> Security -> Enable Kerberos Service

First page:

  • First line selection: MIT KDC

  • Fill in the second line: master

  • Line 3: SUNMNET.COM

  • Line 4: aes256-cts

  • Line 5 Selection: 5 days

Second page:

  • First line: root/admin@SUNMNET.COM

  • Line 2: sunmnet123 (Here's the password we just set, recommended sunmnet123)

Third page:

  • Check

Fourth page:

  • Full Default

Page 5:

  • Full Default

Then the Kerberos installation is complete

Test Kerberos

First input:

hadoop fs -ls /

It will make an error, and then we enter:

kinit hdfs

We will be prompted to enter the password:

sunmnet123

Then enter:

hadoop fs -ls /

You won't make a mistake at this time

Install openLDAP

1, install migrationtools:

yum install migrationtools -y

2, modify the default configuration:

vim /usr/share/migrationtools/migrate_common.ph

#Modify two rows of data

# Line 71:

DEFAULT_MAIL_DOMAIN = "sunmnet.com";

#Line 74

$DEFAULT_BASE = "dc=sunmnet,dc=com";

3, after the modification is complete, execute the script (only on the primary node, recommended on the master):

sh depoly_ldap.sh

Installation-related dependencies

1, yum installation dependency

yum install ant asciidoc cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-plain gcc gcc-c++ krb5-devel libffi-devel libxml2-devel libxslt-devel make mysql mysql-devel openldap-devel python-devel sqlite-devel gmp-devel

2, Install maven

cd /usr/local/src/

wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz

tar zxf apache-maven-3.1.1-bin.tar.gz

mv apache-maven-3.1.1 /usr/local/maven3

//Reconfiguration of related environment variables

vi /etc/profile

#Add in place

export M2_HOME=/usr/local/maven3

export PATH=$PATH:$JAVA_HOME/bin:$M2_HOME/bin

//Save last and make configuration effective

source /etc/profile

//Verify mvn

mvn -v

3, Install git

Centos6.8 Install git

Install Sentry

1, go to the main interface of CDH, select Add Service -> Sentry Service

2. Create a new Sentry database:

create database sentry DEFAULT CHARACTER SET utf8;

grant all on sentry.* TO 'root'@'%' IDENTIFIED BY 'root';

flush privileges;

3. Next step to complete the installation

Install Sqoop2

Installation is the same as Sentry, but you do not need to create a database

After you have completed the above work, do the following (in order, you must do it in order):

Configure related services

Perform the above in the configuration of each service

Add the above actions:

Search in the configuration of hue: sqoop

Sqoop service selection sqoop2

Compile

After doing all the above, enter

/opt/cloudera/parcels/CDH-5.9.0-1.cdh5.9.0.p0.23/lib/hue

Then back up the hue folder and clone our hue

mv hue hue.bak

git clone hue

When clone is finished, go to the hue folder and execute

make apps

build/env/bin/python tools/app_reg/app_reg.py --install apps/collectioninfo

build/env/bin/python tools/app_reg/app_reg.py --install apps/columnencrypt

build/env/bin/python tools/app_reg/app_reg.py --install apps/httprequest

Sign in to hue

Enter the management interface of CDH, select hue, select hueWEBUI, and then enter our hue interface

User name: ladpadmin, password: sunmnet123

Keywords: Database Maven git Python

Added by MrKaraokeSteve on Fri, 17 May 2019 10:36:05 +0300