In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Apache Ambari is a Web-based tool that supports provisioning, management, and monitoring of Apache Hadoop clusters. Ambari currently supports most Hadoop components, including HDFS, MapReduce, Hive, Pig, Hbase, Zookeper, Sqoop, and Hcatalog.
I. Prophase environmental preparation
1. Install the epel source
two。 Install pdsh
Yum-y install pdsh
3. Configure hosts on master and slave
Cat / etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.40.217 ambari192.168.40.216 slave
4. Set password-free login
Ssh-keygen-t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/ root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): # enter Enter same passphrase again: # enter Your identification has been saved in / root/.ssh/id_rsa.Your public key has been saved in / root/.ssh/id_rsa.pub.The key fingerprint is:01:f9:c3:e6:e2:cc:46:1c:55:68:c4:2d: 2b:eb:77:09 root@localhost.localdomainThe key's randomart p_w_picpath is:+-- [RSA 2048]-+ |. +. +. | |. *. | | = .o | | o *. | |. * S. | = E | | *. . . | | *. O | |. . . | | +-+ [root@ambari ~] # cat ~ / .ssh/id_rsa.pub > ~ / .ssh/authorized_keys [root@ambari ~] # scp ~ / .ssh/authorized_keys master:/root/.ssh/ [root@ambari ~] # scp ~ / .ssh/authorized_keys slave:/root/.ssh/ |
5. Turn off selinux and firewall
Second, install ambari
1. Configure yum Feed
[root@ambari ~] # wget http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.0.1/ambari.repo[root@ambari ~] # mv ambari.repo / etc/yum.repos.d/
two。 Install ambari-server
[root@ambari] # yum-y install ambari-server # process is slow, and the ambari-server package is 80m in size.
3. Local configuration
[root@ambari] # ambari-server setupUsing python / usr/bin/python2.6Setup ambari-serverChecking SELinux...SELinux status is' disabled'Customize user account for ambari-server daemon [yzone] (n)? YEnter user account for ambari-server daemon (root): Adjusting ambari-server permissions and ownership...Checking iptables...Checking JDK... [1] Oracle JDK 1.7 [2] Oracle JDK 1.6 [3]-Custom JDK====Enter choice (1): 1JDK already exists Using / var/lib/ambari-server/resources/jdk-7u67-linux-x64.tar.gzInstalling JDK to / usr/jdk64/Successfully installed JDK to / usr/jdk64/Downloading JCEPolicy archive from http://public-repo-1.hortonworks.com/ARTIFACTS/UnlimitedJCEPolicyJDK7.zip to / var/lib/ambari-server/resources/UnlimitedJCEPolicyJDK7.zipUnlimitedJCEPolicyJDK7.zip... 100%Successfully downloaded JCEPolicy archive to / var/lib/ambari-server/resources/UnlimitedJCEPolicyJDK7.zipInstalling JCE policy...Completing setup...Configuring database...Enter advanced database configuration [yzone] (n)? YConfiguring database...====Choose one of the following options: [1]-PostgreSQL (Embedded) [2]-Oracle [3]-MySQL [4]-PostgreSQL====Enter choice (1): Database name (ambari): Postgres schema (ambari): Username (ambari): Enter Database Password (bigdata): Default properties detected. Using built-in database.Configuring ambari database...Checking PostgreSQL...Running initdb: This may take upto a minute.Initializing database: [OK] About to start PostgreSQLConfiguring local database...Connecting to local database...done.Configuring PostgreSQL...Restarting PostgreSQLExtracting system views.ambari-admin-2.0.1.45.jar.Adjusting ambari-server permissions and ownership...Ambari Server 'setup' completed successfully.### here because the download speed of jdk is too slow. I downloaded jdk ahead of time and put it in the / var/lib/ambari-server/resources/ directory [root@ambari ~] # cd / var/lib/ambari-server/resources/ [root@ambari resources] # mv / root/jdk-7u67-linux-x64.tar.gz.
4. Start the service
[root@ambari ~] # ambari-server startUsing python / usr/bin/python2.6Starting ambari-serverWARNING: The hostname was not found in the reverse DNS lookup. This may result in incorrect behavior. Please check the DNS setup and fix the issue.Ambari Server running with administrator privileges.Organizing resource files at / var/lib/ambari-server/resources...Server PID at: / var/run/ambari-server/ambari-server.pidServer out at: / var/log/ambari-server/ambari-server.outServer log at: / var/log/ambari-server/ambari-server.log
Start ambari error report
WARNING: The hostname was not found in the reverse DNS lookup. This may result in incorrect behavior. Please check the DNS setup and fix the issue. 'This problem is caused by not adding the ip corresponding to the hostname to / etc/hosts.
5. Visit web
Http://ip:8080 default user is admin, password admin
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.