In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Customized big data platform one-click installation of OS
Big data platform one-click installation of OS series
One-click installation of OS on big data platform [customized OS image creation]
Set up a script
Name the script freely, as long as you can understand it.
Image package description
Os1.1.iso is used to install server and client operating systems
Hdp.iso is used to install the hdp service
1. Architecture diagram:
Server side
Client
two。 Principle analysis
Install system-install local yum source-install http source-install and configure ntp service-configure key-install jdk- install mysql- compilation install ambari platform
3. Server script analysis
(1) create_local_yum.sh # install local yum source
#! / bin/bashiso_path=/dev/sr0echo "Iso file path is:" / dev/sr0yum_path=/mnt/vrv/echo 'Creating mount directory:' / mnt/vrv/mkdir-p / mnt/vrv/mount / dev/sr0 / mnt/vrvecho 'Updating / etc/yum.repos.d/ files...'rm-rf / etc/yum.repos.d/*touch / etc/yum.repos.d/vrv.repoecho "[vrv-local] name=vrv-localbaseurl= file:///mnt/vrv/ Gpgcheck=0enabled=1 "> / etc/yum.repos.d/vrv.repoyum clean all & & echo 'yum repository has been updatedupdated hosts hosts = `/ sbin/ifconfig-a | grep inet | grep-v 127.0.0.1 | grep-v inet6 | awk' {print $2}'| tr-d" addr: "`echo" $host_ip os-manager "> > / usr/bin/os/hosts#echo" $host_ip os-manager "> > / etc/hosts
(2) update_master.sh # install https source, configure master node, and configure ntp
#! / bin/bash# add hosts file content to native / etc/hosts # cat hosts > > / etc/hosts;#echo "add hosts to / etc/hosts file complete" Host_ip= `/ sbin/ifconfig-a | grep inet | grep-v 127.0.0.1 | grep-v inet6 | awk'{print $2}'| tr-d "addr:" `suffix_ip=$ {host_ip%.*} suffix_ip=$ {suffix_ip%.*} cd / mnt/vrv/Packages/#rpm-ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpmyum-y install mkisofs vim httpd createrepo perl python bind-utils openssh-clients ntp vim wget unzip bind & & chkconfig httpd on & & mkdir-p / var/www/html/centos & & mkdir-p / var/www/html/centos/Packages/Packages & & mkdir-p / var/www/html/ambari/ & & mkdir-p / var/www/html/vmp-extend/ & & echo "copy file..." & & cp-rf / mnt/vrv/Packages/* / var/www/html/centos/Packages/Packages/ & & echo "copy file completed" In the generation source... "& & createrepo / var/www/html/centos/Packages/Packages/ & & rm-rf / etc/yum.repos.d/* & & echo" http source copy completed Update yum... "cp-rf / mnt/vrv/system/* / var/www/html/touch / etc/yum.repos.d/vrv-http.repoecho" [vrv-http] name=vrv-httpbaseurl= http://$host_ip/centos/Packages/Packagesgpgcheck=0enabled=1" > > / etc/yum.repos.d/vrv-http.reposervice httpd restart & & chkconfig httpd on & & yum clean allecho "http source has been configured" echo "start to configure dns..." echo "start to configure ntp.. . "chkconfig ntpd on # cp ntp.conf / etc/ntp.conf # writes to the ntp.conf file echo" driftfile / var/lib/ntp/driftrestrict default kod nomodify notrap nopeer noqueryrestrict-6 default kod nomodify notrap nopeer noqueryrestrict 127.0.0.1 restrict-6:: 1restrict $suffix_ip.0.0 mask 255.255.0.0 nomodify notraprestrict 0.vrv.pool.ntp.org mask 255.255.255.255 nomodify notrap noqueryrestrict 1.vrv.pool.ntp.org mask 255.255.255.255 nomodify notrap noqueryrestrict 2.vrv.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery#server 210.72.145.44server 127.127.1.0 # local clockfudge 127.127.1.0 stratum 10 includefile / etc/ntp/crypto/pwkeys / etc/ntp/keys "> / etc/ntp.confservice ntpd restart & & echo" ntp configuration complete! "ln-s / usr/share/zoneinfo/Asia/Shanghai / etc/localtimehwclock-- systohc-- localtime## configuration hdp yum # echo "start configuring ambari..." mkdir-p / var/www/html/ambari/mkdir-p / var/www/html/vmp-extend/cp-rf / mnt/vrv/vrv/AMBARI-2.2.1.0/centos6/2.2.1.0-161Universe * / var/www/html/ambari/cp-rf / mnt/vrv/vrv/vmp-extend-1.0/* / var/www/html/vmp-extend/createrepo / var/www/html/vmp-extend/createrepo / var/www/html/ambari/# writes to the file touch / etc/yum.repos.d/ambari.repotouch / etc/yum.repos.d/vmp-extend.repoecho "[ambari-2.x] name=Ambari 2.xbaseurl = http://$host_ip/ambari/gpgcheck=0enabled=1priority=1" > > / etc/yum.repos.d/ambari.repoecho" # cd / mnt/vrv/vrv/vmp-extend-1 .0#chmod 777 vmp-extend-1.0.sh#sh vmp-extend-1.0.sh [vmp-extend-1.0] name=vmp-extend-1.0baseurl= http://$host_ip/vmp-extend/gpgcheck=0enabled=1priority=1" > > / etc/yum.repos.d/vmp-extend.repoyum clean all & & echo "ambari configuration complete" # configure selinux#echo "start configuring selinux..." sed-I 's/enforcing/disabled/ '/ etc/selinux/config & & echo "selinux configuration complete" # configuration iptalbes#echo "start configuring iptables..." service iptables stop & & chkconfig iptables off & & service ip6tables stop & & chkconfig ip6tables off & & echo "iptables configuration complete" # close THP#echo "close THP..." echo "if test-f / sys/kernel/mm/redhat_transparent_hugepage/defrag Then echo never > / sys/kernel/mm/redhat_transparent_hugepage/defrag fi "> > / etc/rc.local & & echo" closed THP completed "echo" update master node completed "
(3) generate_ssh.sh # configure ssh key and install jdk and mysql
#! / bin/bashif [$#-lt 2]; then echo "HELP generate_ssh.sh-- generate ssh key for login without typing password This script should run on the namenode machine and user should edit the ip-list file USAGE:. / generate_ssh.sh user pasaword EXAMPLE:. / generate_ssh root adminHELP "exit 0 fi yum-y install expect & & echo" expect installation completed "user=$1ip=$HOSTNAMEpass=$2rm-rf / root/.ssh/*echo" # # "echo" generate the rsa public key On $HOSTNAME... "echo" # # "expect-c" set timeout-1 spawn ssh-keygen-t rsa expect\ "* id_rsa*\" send\ "\ r\" expect\ "* passphrase*\" send\ "r\" expect\ "* again*\" send\ "\ r\ "expect eof" cat / usr/bin/os/hosts | while read linedo# extract ip ip_i=$ {line% *} full_hostname_i=$ {ip_i##*} ip_i=$ {ip_i% *} hostname_i=$ {line##*} expect-c "set timeout-1 spawn ssh-copy-id-I / root/.ssh/id_rsa.pub" $hostname_i expect\ "yes/no\" send\ "yes\ r\" expect\ "password:\" send\ "$pass\ r\" expect\ "#\" expect eof "doneecho" ssh configuration completed "# install jdkecho" jdk installation "rpm-e java-1.6.0-openjdk-1.6.0.38-1.13.10.4.el6.x86_64rpm-e jdk-1. 7.0_80-fcs.x86_64rpm-e java-1.7.0-openjdk-1.7.0.99-2.6.5.1.el6.x86_64cd / mnt/vrv/Packages/rpm-ivh jdk-7u80-linux-x64.rpmecho "jdk installation completed" # installation mysqlecho "installation mysql" cd / mnt/vrv/Packages/rpm-e mysql-5.1.73-7.el6.x86_64.rpm-- nodepsrpm-e-- nodeps mysql-libs- 5.1.73-7.el6.x86_64.rpmyum remove-y mysql-libsrm-fr / usr/lib/mysqlrm-fr / usr/include/mysqlrm-f / etc/my.cnfrm-fr / var/lib/mysqlrpm-ivh MySQL-server-5.5.50-1.linux2.6.x86_64.rpmrpm-ivh MySQL-client-5.5.50-1.linux2.6.x86_64.rpmecho never > / sys/kernel/mm/redhat_transparent_hugepage/enabledservice mysql restartservice httpd restartecho " Install mysql complete "echo" initialize MySQL "mysqladmin-uroot password 123456.echo" initialize mysql complete "touch / etc/my.cnfecho" [client] default-character-set= UTF8 [mysqld] character_set_server=utf8lower_case_table_names=1 "> > / etc/my.cnfservice mysql restart
(4) mysql_start.sh # is mainly used to configure mysql configuration
Echo "install ambari" rpm-e vmp-i18n-2.1.1.0yum-y install ambari-serverecho "install ambari complete" mysql-uroot-pvrv123456. -e "grant all on *. * to root@'%' identified by 'vrv123456.';flush privileges; CREATE USER' ambari'@'%' IDENTIFIED BY 'ambari';grant all privileges on *. * to' ambari'@'%' identified by 'ambari' with grant option;CREATE USER' ambari'@'localhost' IDENTIFIED BY 'ambari';grant all privileges on *. * to' ambari'@'localhost' identified by 'ambari' with grant option;CREATE USER' ambari'@'os-manager' IDENTIFIED BY 'ambari' Grant all privileges on *. * to 'ambari'@'os-manager' identified by' ambari' with grant option; flush privileges; CREATE USER 'hive'@'%' IDENTIFIED BY' hive';grant all privileges on *. * to 'hive'@'%' identified by' hive' with grant option;CREATE USER 'hive'@'localhost' IDENTIFIED BY' hive';grant all privileges on *. * to 'hive'@'localhost' identified by' hive' with grant option;CREATE USER 'hive'@'os-manager' IDENTIFIED BY' hive' Grant all privileges on *. * to 'hive'@'os-manager' identified by' hive' with grant option; flush privileges;CREATE USER 'oozie'@'%' IDENTIFIED BY' oozie';GRANT ALL PRIVILEGES ON *. * TO 'oozie'@'%';FLUSH PRIVILEGES;create database ambari default charset='UTF8';create database hive default charset='UTF8';create database oozie default charset='UTF8';quit "mysql-uroot-p123456. -e "use ambari;SOURCE / var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql;quit"
(5) jiaohu.sh # automatically configure ambari (need to be set up in advance)
#! / bin/bash# modify parameter echo never > / sys/kernel/mm/redhat_transparent_hugepage/enabledsysctl vm.swappiness=10# install mysql driver echo "install mysql driver" # yum install mysql-connector-java- ymkdir-p / usr/share/java/cp-rf / mnt/vrv/vrv/vmp-extend-1.0/misc/mysql-connector-java-5.1.36.jar / usr/share/java/mv / usr/share/java/mysql-connector-java-5 .1.36.jar / usr/share/java/mysql-connector-java.jar#cp-rf / mnt/vrv/vmp-extend-1.0/misc/mysql-connector-java-5.1.36.jar / usr/share/java/cp-rf / usr/share/java/mysql-connector-java.jar / usr/lib/ambari-server/echo "install mysql driver completed" ambari-server setup-- jdbc-db=mysql-- jdbc-driver=/usr/share/java/mysql-connector -java.jarexpect-c "spawn ambari-server setupexpect\" * continue*\ "send\" y\ r\ "expect\" * Customize*\ "send\" y\ r\ "expect\" * Enter*\ "send\" root\ r\ "expect\" * JDK*\ "send\" y\ r\ "expect\" * choice*\ "send\" 3\ r\ "expect\" * JAVA*\ "send\" / usr\ / java\ / default\ r\ "expect\" * configuration*\ "send\" y\ r\ "expect\" * choice*\ "send\" 3\ r\ "expect\" * Hostname*\ "send\" os-manager\ r\ "expect\" Port*\ "send\" 3306\ r\ "expect\" * Database*\ "send\" ambari\ r\ "expect\" * Username*\ "send\" ambari\ r\ "expect\" * Database*\ "send\" ambari\ r\ "expect\" * Re-enter*\ "send\" ambari\ r\ "expect\" * properties*\ "send\" y\ r\ "expect eof" cd / mnt/vrv/vrv/vmp-extend-1.0/sh vmp-extend-1.0.shecho "api.csrfPrevention.enabled=false" > > / etc/ambari-server/conf/ambari.propertiesambari-server startyum install dos2*-ydos2unix / usr/bin/os/*.shecho "installation of server is complete"
At this point, the server has been installed.
4. Client script analysis
(1) create_local_yum.sh # install local yum source
#! / bin/bashiso_path=/dev/sr0echo "Iso file path is:" / dev/sr0yum_path=/mnt/vrv/echo 'Creating mount directory:' / mnt/vrv/mkdir-p / mnt/vrv/mount / dev/sr0 / mnt/vrvecho 'Updating / etc/yum.repos.d/ files...'rm-rf / etc/yum.repos.d/*touch / etc/yum.repos.d/vrv.repoecho "[vrv-local] name=vrv-localbaseurl= file:///mnt/vrv/ Gpgcheck=0enabled=1 "> / etc/yum.repos.d/vrv.repoyum clean all & & echo 'yum repository has been updatedupdated hosts hosts = `/ sbin/ifconfig-a | grep inet | grep-v 127.0.0.1 | grep-v inet6 | awk' {print $2}'| tr-d" addr: "`echo" $host_ip os-manager "> > / usr/bin/os/hosts#echo" $host_ip os-manager "> > / etc/hosts
(2) ntp.sh # install ntp service and choose to install mysql
#! / bin/bash# add hosts file content to native / etc/hosts # echo "add hosts to / etc/hosts file complete" Host_ip= `/ sbin/ifconfig-a | grep inet | grep-v 127.0.0.1 | grep-v inet6 | awk'{print $2}'| tr-d "addr:" `suffix_ip=$ {host_ip%.*} suffix_ip=$ {suffix_ip%.*} yum-y install mkisofs vim httpd python createrepo perl bind-utils openssh-clients ntp vim wget unzip bindyum clean allecho "start configuring ntp..." chkconfig ntpd on echo "driftfile / var/lib/ntp/driftrestrict default kod nomodify notrap nopeer noqueryrestrict-6 default kod nomodify notrap nopeer noqueryrestrict 127. 0.0.1 restrict-6:: 1restrict $suffix_ip.0.0 mask 255.255.0.0 nomodify notraprestrict 0.vrv.pool.ntp.org mask 255.255.255.255 nomodify notrap noqueryrestrict 1.vrv.pool.ntp.org mask 255.255.255.255 nomodify notrap noqueryrestrict 2.vrv.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery#server 210.72.145.44#server 192.168.2.11 # local clockfudge 127.127.1.0 stratum 10 includefile / etc/ntp/crypto/pwkeys / etc/ntp/keys "> / etc/ntp.confservice ntpd restart & & echo" ntp configuration complete! "ln-s / usr/share/zoneinfo/Asia/Shanghai / etc/localtimehwclock-- systohc-- localtime# configuration selinux#echo" start configuring selinux... "sed-I's selinux#echo" / etc/selinux/config & & echo "selinux configuration complete" # configure iptalbes#echo "start configuring iptables..." service iptables stop & & chkconfig iptables off & & service ip6tables stop & & chkconfig ip6tables off & & echo "iptables configuration complete" # close THP#echo "close THP..." echo "if test-f / sys/kernel/mm/redhat_transparent_hugepage/defrag Then echo never > / sys/kernel/mm/redhat_transparent_hugepage/defrag fi "> > / etc/rc.local & & echo" closed THP complete "echo" update node complete "# install jdkecho" jdk installation "rpm-e java-1.6.0-openjdk-1.6.0.38-1.13.10.4.el6.x86_64rpm-e jdk-1.7.0_80-fcs.x86_64rpm-e java-1.7.0-openjdk-1. 7.0.99-2.6.5.1.el6.x86_64cd / mnt/vrv/Packages/rpm-ivh jdk-7u80-linux-x64.rpmecho "jdk installation completed" read-p "install mysql Please insert y or n ": nameif [$name =" n "] then echo" does not need to install mysql "elif [$name =" y "] then# install mysqlecho" install "cd / mnt/vrv/Packages/rpm-e mysql-5.1.73-7.el6.x86_64.rpm-nodepsrpm-e-nodeps mysql-libs-5.1.73-7.el6.x86_64.rpmyum remove-y mysql-libsrm-fr / usr/lib/mysqlrm-fr / usr/ in mysql Include/mysqlrm-f / etc/my.cnfrm-fr / var/lib/mysqlrpm-ivh MySQL-server-5.5.50-1.linux2.6.x86_64.rpmrpm-ivh MySQL-client-5.5.50-1.linux2.6.x86_64.rpmecho never > / sys/kernel/mm/redhat_transparent_hugepage/enabledservice mysql startecho "install mysql complete" echo "initialize MySQL" mysqladmin-uroot password vrv123456.echo "initialize mysql complete" echo "add client end Become "touch / etc/my.cnfecho" [client] default-character-set= UTF8 [mysqld] character_set_server=utf8lower_case_table_names=1 "> > / etc/my.cnfservice mysql restartfi
5. One-click command script analysis:
#! / bin/shecho "os 1.1 install script" echo "1. Install os server 2. Reinforcement system 3. Modify the host ip address 4. Modify the hostname 5. Modify network 6. Modify ambari host address 7. Modify the root password 8. Restart the network service 9. Exit "echo" + automatically modify ip and hostname and other related information + "echo" ETHCONF=/etc/sysconfig/network-scripts/ifcfg-eth0 "echo" HOSTS=/etc/hosts "echo" NETWORK=/etc/sysconfig/network "echo" DIR=/data/backup/ `date +% Y% m% d` "echo" NETMASK=255.255.255.0 "echo" install mysql default password is vrv123456. "echo" +- -+ "# Define Path defines variables You can modify ETHCONF=/etc/sysconfig/network-scripts/ifcfg-eth0 HOSTS=/etc/hosts NETWORK=/etc/sysconfig/network DIR=/data/backup/ `date +% Y% m% d`date "= =" echo# defines the change_ip function function Change_ip () {# to determine whether the backup directory exists, with spaces before and after brackets! The exclamation mark means the opposite in shell # if [!-d $DIR]; then mkdir-p $DIR fi echo "Now Change ip address, Doing Backup Interface eth0" cp $ETHCONF $DIR grep "dhcp" $ETHCONF # is used to determine the status of the last operation, which is 0, indicating that the status of the last operation was correct or successful # if [$?-eq 0] Then#read-p interactively enter the variable IPADDR, with a space after the colon. Sed-I modifies the configuration file # read-p "Please insert ip Address:" IPADDR read-p "Please insert gatway Address:" gateway sed-I's hand DHCP Please insert gatway Address. It means to. Print the first three columns # echo-e "IPADDR=$IPADDR\ nNETMASK=$NETMASK\ nGATEWAY= `echo $gateway | awk-F.'{print $1". "$2". "$3". "$4}'`" > > $ETHCONF echo "This IP address Change success!" Else echo-n "This $ETHCONF is static exist, please ensure Change Yes or NO": read i fi if ["$I" = = "y"-o "$I" = = "yes"]; then read-p "Please insert ip Address:" IPADDR read-p "Please insert gateway Address:" gateway count= (`echo | awk-F. '{print $1 ne ne 3 ne 4}') # defines an array. 0 indicates the total number of variable values obtained. 0 indicates the total number of variable values. The number is judged by the conditional statement # Aval$ {# echo [@]} # the input is not correct. You can also use [0-9] to judge the ip# while ["$A"-ne "4"] array-p "Please re Inster ip Address,example 192.168.0.11 ip": IPADDR count= (`number $IPADDR | awk-F. '{print $1 "." $2 "." $3 "." $4}' `"> > $ETHCONF echo" This IP address Change success! "else echo" This $ETHCONF static exist,please exit "exit $? Then# sed-I "shost IS Exist 127.0.0.1 host/g" $HOSTS echo "$host $hostname" > / etc/hosts echo "This hosts change success" else echo "This $host IS Exist." Then sed-I "s / ^ HOSTNAME / # HOSTNAME/g" $NETWORK echo "HOSTNAME=$IPADDR" > $NETWORK else echo "This $host IS Exist." Fi} function Change_rootpassword () {read-p "Please insert you rootpassword": passwordecho $password | passwd-- stdin root} function restart_server () {echo "restart network server...." service network restartifup eth0} function exit_quit () {echo "quit." break} function install_os_server () {cd / usr/bin/os/sh create_local_yum.sh & & sh update_master.sh & &. / generate_ssh.sh root root & & sh mysql_start.sh & & sh jiaohu.sh > > / usr/bin/os/install.os_server.log} function jiagu () {cd / usr/bin/os/sh jiagu.sh > > / usr/bin/os/install.jiagu.log} function Change_ambari_host () {echo "backing up ambari.properties" cp-rf / etc/ambari-server/conf/ambari.properties / etc/ambari-server/conf/ambari.properties.bak read-p "Please insert ip oldhostname (default is os-manager) ": oldhostnameread-p" Please insert ip newhostname ": newhostnamesed-I's change the hostname after the hostname has been modified Restarting service "service ambari-server restartecho" restart ambari completed, visit: http://$newhostname:8080"}function add_key () {cd / usr/bin/os/sh miyao.sh} # PS3 is generally a menu prompt message # PS3= "Please Select Menu": # select is a menu selection command in the format of select $var in.. command.. Do.... Done select i in "install_os_server", "jiagu", "Change_ip", "Change_hosts", "Change_network", "Change_ambari_host", "Change_rootpassword", "restart_server", "add_key" and "exit_quit" do#case, generally used to judge case $I in install_os_server) install_os_server;; jiagu) jiagu;; Change_ip) Change_ip;; Change_hosts) Change_hosts Change_network) Change_network;; Change_ambari_host) Change_ambari_host;; Change_rootpassword) Change_rootpassword;; restart_server) restart_server;; add_key) add_key;; exit_quit) exit_quit *) echo echo "Please Insert $0: install_os_server (1) | jiagu (2) | Change_ip (3) | Change_hosts (4) | Change_network (5) | Change_ambari_host (6) | Change_rootpassword (7) | restart_network_server (8) | add_key (9) | quit (10) |" echo "warm prompt: please press 8 to restart the network service" break;; esac done "
6. Install the operating system:
First of all, when the server starts, press DEL to enter the boot option to select the CD-ROM drive to start.
Mount the image os1.1.iso to begin installation
Select menu vasp server install new system for server installation.
7. Operating system hard disk selection
Select a hard disk for system installation
Installation completed
Default user: root password: root
8. Server settings
Enter the / usr/bin/os/ directory
Cd / usr/bin/os/
Script description:
1.create_local_yum.sh # is used to update the local yum source with some system tools
2.update_master.sh # updates the yum source for ambari and installs the http service and the main service node
3.generate_ssh.sh # Personalized installation of ssh service example:. / generate_ssh.sh root root the first root is the account and the second root is the password.
4.mysql_start.sh # mysql service installation and non-interactive installation database, user name and password
The default password is 123456.
5.jiaohu.sh # run this script to achieve a non-interactive installation of ambari
6.change.sh # run this script with 9 options to install the ambari server and client to manually set the ip address, hostname and root password, and modify the ambari hostname.
7.yum-hdp.sh # runs this script to perform the hdp source operation.
8.jiagu.sh # runs this script for security hardening.
9.miyao.sh # add server public key to customer
Execute sh change.sh
Enter menu options
8.1 modify ip address
Run change.sh to execute 3 for ip address modification
(network card service needs to be restarted)
Enter yes, then enter the ip address and gateway address, and finally confirm the ip address.
Run 8 to restart the service
8.2 install vasp server
Run change.sh Exec 1 for server installation
The installation is completed as shown in the figure:
8.3 modify hosts
Run change.sh to execute 4 for hosts modification
8.4 modify hostnames
Run change.sh to execute 5 for hostname modification
(server needs to be restarted)
# reboot
8.5 modify ambari hostname
Run change.sh to execute 6 for ambari hostname modification
First enter the default vasp-manager and then enter hostname
(need to be the same as the name of hostname)
8.6 modify root password
Run change.sh to execute 7 to modify the root password
8.7 Server update time
9. Configure the platform yum source
Mount hdp.iso
Cd / usr/bin/vasp/
Execute sh yum-hdp.sh
# sh yum-hdp.sh
Please insert source path:/dev/sr0
Please insert target path:/mnt
Enter source path, destination path
Enter the native ip address: 192.168.2.11
Automatically execute # yum clean all & & yum list
Visit http:192.168.2.11/centos to get the yum source address of centos
Visit http:192.168.2.11/ambari to get the yum source address of ambari
Visit http:192.168.2.11/HDP to get the yum source address of HDP
Visit http:192.168.2.11/HDP-UTILS to get the yum source address of HDP-UTILS
Visit http:192.168.2.11/vmp-extend to get the yum source address of vmp-extend
10.vmp management platform
Enter: http://192.168.2.11:8080/ on the web page
/ / mysql initial library password user: root password: 123456.
/ / vmp management platform password user: admin password: admin
Follow-up updates.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.