How to install
Ambari on OEL 6
1.
hostname -f should show correct hostname , instead of
localhost.localdomain
hostname -f
masterserver.xx.com
Hint
: /etc/hosts should have correct entry and hostname details should be
top
2.
Get yum repo in /etc/yum.repo
cd
/etc/yum.repo
wget
http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/ambari.repo
3.yum
update
yum
update
(This
action is critical because openssl lib should be updated )
4.
Install using yum
yum install ambari-server
5.
run ambari-setup
yum install ambari-server setup
Accept
all default values .
Checking
SELinux...
SELinux
status is 'enabled'
SELinux
mode is 'permissive'
WARNING:
SELinux is set to 'permissive' mode and temporarily disabled.
OK
to continue [y/n] (y)? y
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): 1
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)? y
Configuring
database...
==============================================================================
Choose
one of the following options:
[1]
- PostgreSQL (Embedded)
[2]
- Oracle
[3]
- MySQL
[4]
- PostgreSQL
[5]
- Microsoft SQL Server (Tech Preview)
[6]
- SQL Anywhere
==============================================================================
Enter
choice (1): 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...
Configuring
local database...
Connecting
to local database...done.
Configuring
PostgreSQL...
Backup
for pg_hba found, reconfiguration not required
Extracting
system views...
.ambari-admin-2.2.2.0.460.jar
.....
Adjusting
ambari-server permissions and ownership...
Ambari
Server 'setup' completed successfully.
6.
Set http_proxy if needed in your network
vi /var/lib/ambari-server/ambari-env.sh
-Dhttp.proxyHost=www-myproxy.idc.com -Dhttp.proxyPort=80
export
AMBARI_JVM_ARGS=$AMBARI_JVM_ARGS' -Xms512m -Xmx2048m
-Djava.security.auth.login.config=/etc/ambari-server/conf/krb5JAASLogin.conf
-Djava.security.krb5.conf=/etc/krb5.conf
-Djavax.security.auth.useSubjectCredsOnly=false
-Dhttp.proxyHost=www-proxy.us.oracle.com -Dhttp.proxyPort=80 '
7
. Verify the hostname in
/etc/ambari-agent/conf/ambari-agent.ini
vi /etc/ambari-agent/conf/ambari-agent.ini
hostname=masterserver.xx.com
url_port=8440
secured_url_port=8441
This
should match with step 1 .
8.
Start ambari server
ambari-server start
9
. Access the URL
http://masterserver.xx.com:8080
Username
: admin
Pass
: admin
10.
Provide the cluster Name
11.
Provide the hostnames ( hostname -f )
12.
Provide server id_rsa
13.
Make sure that password less login works between master and all
nodes
and
permission to .ssh folder of all should be 600
14
. Select the component and proceed with installation
No comments:
Post a Comment