码迷,mamicode.com
首页 > 其他好文 > 详细

ambari

时间:2018-06-07 14:28:43      阅读:241      评论:0      收藏:0      [点我收藏+]

标签:disable   font   min   具体细节   extension   mba   python2   conf   resources   

技术分享图片

技术分享图片

 

安装过程ambari-server实战:

Step1: Download the Ambari repository on the Ambari Server host

For Redhat/CentOS/Oracle:
  cd /etc/yum.repos.d/
  wget <ambari-repo-url>
ambari-repo-url:http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.1.2/ambari.repo

Step 2: Install, Setup, and Start Ambari Server

For Redhat/CentOS/Oracle:
  yum install ambari-server -y
Run the setup command to configure your Ambari Server, Database, JDK, LDAP, and other options:
       ambari-server setup
Start Ambari Server:
       ambari-server start
具体细节:
[root@master ~]# ambari-server setup
Using python  /usr/bin/python2.6
Setup ambari-server
Checking SELinux...
SELinux status is disabled
Customize user account for ambari-server daemon [y/n] (n)? y
Enter user account for ambari-server daemon (root):
Adjusting ambari-server permissions and ownership...
Checking firewall status...
Checking JDK...
[1] Oracle JDK 1.8 + Java Cryptography Extension (JCE) Policy Files 8
[2] Oracle JDK 1.7 + Java Cryptography Extension (JCE) Policy Files 7
[3] Custom JDK
==============================================================================
Enter choice (1):    #这里选择安装的jdk版本;1就是选择jdk1.8                           
To download the Oracle JDK and the Java Cryptography Extension (JCE) Policy Files you must accept the license terms found at http://www.oracle.com/technetwork/java/javase/terms/license/index.html and not accepting will cancel the Ambari Server setup and you must install the JDK and JCE files manually.
Do you accept the Oracle Binary Code License Agreement [y/n] (y)? 
Downloading JDK from http://public-repo-1.hortonworks.com/ARTIFACTS/jdk-8u40-linux-x64.tar.gz to /var/lib/ambari-server/resources/jdk-8u40-linux-x64.tar.gz
jdk-8u40-linux-x64.tar.gz... 100% (165.2 MB of 165.2 MB)
Successfully downloaded JDK distribution to /var/lib/ambari-server/resources/jdk-8u40-linux-x64.tar.gz
Installing JDK to /usr/jdk64/
Successfully installed JDK to /usr/jdk64/
Downloading JCE Policy archive from http://public-repo-1.hortonworks.com/ARTIFACTS/jce_policy-8.zip to /var/lib/ambari-server/resources/jce_policy-8.zip

Successfully downloaded JCE Policy archive to /var/lib/ambari-server/resources/jce_policy-8.zip
Installing JCE policy...
Completing setup...
Configuring database...
Enter advanced database configuration [y/n] (n)? 
Configuring database...
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 PostgreSQL
Configuring local database...
Connecting to local database...connection timed out...retrying (1)
Connecting to local database...done.
Configuring PostgreSQL...
Restarting PostgreSQL
Extracting system views...
...ambari-admin-2.1.2.377.jar
...
Adjusting ambari-server permissions and ownership...
Ambari Server setup completed successfully.
[root@master ~]# ambari-server start
Using python  /usr/bin/python2.6
Starting ambari-server
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources...
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start....................
Ambari Server start completed successfully.

[root@master java]# java -version    ###我们看到的java 版本是1.7 ,而上面我们选择安装的1.8
java version "1.7.0_79"
OpenJDK Runtime Environment (rhel-2.5.5.4.el6-x86_64 u79-b14)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)

[root@master ~]# which java
/usr/bin/java

[root@master ~]# ll /usr/jdk64/jdk1.8.0_40/bin/java           ##这个才是我们刚刚安装的jdk1.8
-rwxr-xr-x 1 root root 7734 Feb 11 2015 /usr/jdk64/jdk1.8.0_40/bin/java

[root@master ~]# rm /usr/bin/java
rm: remove symbolic link `/usr/bin/java‘? y
[root@master ~]# ln -s /usr/jdk64/jdk1.8.0_40/bin/java /usr/bin/java
[root@master ~]# java -version
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

[root@master ~]# vim /etc/profile

export PATH=$PATH:/usr/jdk64/jdk1.8.0_40/bin

[root@master ~]# source /etc/profile
[root@master ~]# jps
4117 Jps
3814 AmbariServer

 

ambari

标签:disable   font   min   具体细节   extension   mba   python2   conf   resources   

原文地址:https://www.cnblogs.com/shanhua-fu/p/9149607.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!