Skip to content

Instantly share code, notes, and snippets.

@winse
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save winse/f1db375990264df7f6bf to your computer and use it in GitHub Desktop.
Save winse/f1db375990264df7f6bf to your computer and use it in GitHub Desktop.
Centos-x86使用public源安装ambari,server安装没问题,但是找不到agent!
winse@Lenovo-PC ~
$ ssh root@cluster
Last login: Sat Jun 21 20:54:19 2014 from 192.168.154.1
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# wget http://public-repo-1.hortonworks.com/ambari/c entos6/1.x/updates/1.6.0/ambari.repo
--2014-06-21 21:36:44-- http://public-repo-1.hortonworks.com/ambari/centos6/1.x /updates/1.6.0/ambari.repo
Resolving public-repo-1.hortonworks.com... 54.230.234.103, 54.230.234.83, 54.230.234.203, ...
Connecting to public-repo-1.hortonworks.com|54.230.234.103|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1074 (1.0K) [binary/octet-stream]
Saving to: “ambari.repo”
100%[=======================================================================================================================================================================================>] 1,074 --.-K/s in 0s
2014-06-21 21:36:49 (35.6 MB/s) - “ambari.repo” saved [1074/1074]
[root@localhost yum.repos.d]# yum install ambari-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ambari-server.noarch 0:1.6.0-46 will be installed
--> Processing Dependency: postgresql-server >= 8.1 for package: ambari-server-1.6.0-46.noarch
--> Running transaction check
---> Package postgresql-server.i686 0:8.4.20-1.el6_5 will be installed
--> Processing Dependency: postgresql-libs(x86-32) = 8.4.20-1.el6_5 for package: postgresql-server-8.4.20-1.el6_5.i686
--> Processing Dependency: postgresql(x86-32) = 8.4.20-1.el6_5 for package: postgresql-server-8.4.20-1.el6_5.i686
--> Processing Dependency: libpq.so.5 for package: postgresql-server-8.4.20-1.el6_5.i686
--> Running transaction check
---> Package postgresql.i686 0:8.4.20-1.el6_5 will be installed
---> Package postgresql-libs.i686 0:8.4.20-1.el6_5 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=================================================================================================================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================================================================================================================
Installing:
ambari-server noarch 1.6.0-46 Updates-ambari 38 M
Installing for dependencies:
postgresql i686 8.4.20-1.el6_5 updates 2.6 M
postgresql-libs i686 8.4.20-1.el6_5 updates 205 k
postgresql-server i686 8.4.20-1.el6_5 updates 3.4 M
Transaction Summary
=================================================================================================================================================================================================================================
Install 4 Package(s)
Total download size: 45 M
Installed size: 96 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): ambari-server-1.6.0-46.noarch.rpm | 38 MB 02:04
(2/4): postgresql-8.4.20-1.el6_5.i686.rpm | 2.6 MB 00:04
(3/4): postgresql-libs-8.4.20-1.el6_5.i686.rpm | 205 kB 00:00
(4/4): postgresql-server-8.4.20-1.el6_5.i686.rpm | 3.4 MB 00:06
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 334 kB/s | 45 MB 02:16
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
Package: centos-release-6-5.el6.centos.11.1.i686 (@base/$releasever)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y
warning: rpmts_HdrFromFdno: Header V4 RSA/SHA1 Signature, key ID 07513cad: NOKEY
Retrieving key from http://public-repo-1.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
Importing GPG key 0x07513CAD:
Userid: "Jenkins (HDP Builds) <jenkin@hortonworks.com>"
From : http://public-repo-1.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : postgresql-libs-8.4.20-1.el6_5.i686 1/4
Installing : postgresql-8.4.20-1.el6_5.i686 2/4
Installing : postgresql-server-8.4.20-1.el6_5.i686 3/4
Installing : ambari-server-1.6.0-46.noarch 4/4
Verifying : postgresql-8.4.20-1.el6_5.i686 1/4
Verifying : ambari-server-1.6.0-46.noarch 2/4
Verifying : postgresql-server-8.4.20-1.el6_5.i686 3/4
Verifying : postgresql-libs-8.4.20-1.el6_5.i686 4/4
Installed:
ambari-server.noarch 0:1.6.0-46
Dependency Installed:
postgresql.i686 0:8.4.20-1.el6_5 postgresql-libs.i686 0:8.4.20-1.el6_5 postgresql-server.i686 0:8.4.20-1.el6_5
Complete!
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# source /etc/profile
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# ambari-server setup
Using python /usr/bin/python2.6
Setup ambari-server
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
Ambari-server daemon is configured to run under user 'root'. Change this setting [y/n] (n)? y
Enter 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): 3
WARNING: JDK must be installed on all hosts and JAVA_HOME must be valid on all hosts.
WARNING: JCE Policy files are required for configuring Kerberos security. If you plan to use Kerberos,please make sure JCE Unlimited Strength Jurisdiction Policy Files are valid on all hosts.
Path to JAVA_HOME: /opt/jdk1.7.0_60/
Validating JDK on Ambari Server...done.
Completing setup...
Configuring database...
Enter advanced database configuration [y/n] (n)?
Default properties detected. Using built-in 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...done.
Configuring PostgreSQL...
Restarting PostgreSQL
Ambari Server 'setup' completed successfully.
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# ambari-server start
Using python /usr/bin/python2.6
Starting ambari-server
Ambari Server running with 'root' 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
Ambari Server 'start' completed successfully.
[root@localhost yum.repos.d]# chkconfig --list ambari-server
ambari-server 0:off 1:off 2:off 3:on 4:on 5:on 6:off
[root@localhost yum.repos.d]#
# http://farm4.staticflickr.com/3903/14491017113_2d985e4c9f_o.png
[root@localhost yum.repos.d]# yum list all ambari-agent
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Error: No matching Packages to list
[root@localhost yum.repos.d]# yum update
[root@localhost yum.repos.d]# yum list all ambari-agent
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Error: No matching Packages to list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment