0% found this document useful (0 votes)
43 views2 pages

CentOS 7 Setup for Cloudera Manager

Pre requisites with postgres script

Uploaded by

safderali1961
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views2 pages

CentOS 7 Setup for Cloudera Manager

Pre requisites with postgres script

Uploaded by

safderali1961
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

# Create 1 m5.

2xlarge named kt with CentOS 7 (x86_64) - with Updates HVM, 80 gb


# On ps
cd downloads
scp -i [Link] [Link] [Link] putnmove clustercmd
umar_prerequisites_tested_centos_7_ami-[Link] centos@<ip>:.

#connect to instance
python umar_prerequisites_tested_centos_7_ami-[Link]
exit

sudo vi /etc/[Link]
LANG=en_US.UTF-8
LC_ALL="en_US.UTF-8"

#edit [Link] so that it looks like above text

sudo su -l postgres -c "postgresql-setup initdb"


sudo vi /var/lib/pgsql/data/pg_hba.conf

# add host all all [Link]/0 md5


# above 1st ident in table, dont do this in prod. no need to tell why

sudo systemctl enable postgresql


sudo systemctl start postgresql

sudo vi /var/lib/pgsql/data/[Link]
# under port add listen_addresses = '*' but not in prod. reason=no need to tell

# take ami and launch 5 [Link] 80gb

sudo sh putnmove cluster /home/centos


sudo sh putnmove [Link] /home/centos
sudo sh clustercmd sudo chmod 400 /home/centos/.ssh/config
sudo sh clustercmd sudo chmod 400 /home/centos/[Link]
sudo su -l postgres
psql

create role scm login password 'Admin@123';


create database scm owner scm encoding 'UTF8';

create role rman login password 'Admin@123';


create database rman owner rman encoding 'UTF8';

create role hue login password 'Admin@123';


create database hue owner hue encoding 'UTF8';

create role hive login password 'Admin@123';


create database metastore owner hive encoding 'UTF8';
alter database metastore set standard_conforming_strings=off;

create role oozie login password 'Admin@123';


create database oozie owner oozie encoding 'UTF8';
create role das login password 'Admin@123';
create database das owner das encoding 'UTF8';

create role schemaregistry login password 'Admin@123';


create database schemaregistry owner schemaregistry encoding 'UTF8';

create role smm login password 'Admin@123';


create database smm owner smm encoding 'UTF8';

\l
\q
exit

sudo vi /etc/[Link].d/[Link]
# from here
[cloudera-manager]
name=Cloudera Manager
baseurl=[Link]
gpgkey = [Link]
gpgcheck=1
autorefresh=0
type=rpm-md
# till here paste

sudo yum clean all


sudo yum makecache
sudo yum install cloudera-manager-server cloudera-manager-daemons -y
sudo su
sudo /opt/cloudera/cm/schema/scm_prepare_database.sh postgresql -h `hostname` scm scm
systemctl start cloudera-scm-server
systemctl enable cloudera-scm-server

go to webui and launch cluster :)

You might also like