Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
On SuSE11, the same sysvinit script as used for RHEL6 is being installed.
On RHEL6, this contains the chkconfig header specifying that ambari-server and
ambari-agent services should start as late as possible:
head -2 /etc/init.d/ambari-server
#!/usr/bin/env bash
chkconfig: 345 95 20
head -2 /etc/init.d/ambari-agent
#!/usr/bin/env bash
chkconfig: 345 95 20
However, these instructions are not honored by Suse, leading to the init
scrips being scheduled as the first ones to start, before networking and other
essentials:
ls -l /etc/init.d/rc3.d/|grep ambari
lrwxrwxrwx 1 root root 15 Jan 23 20:57 K01ambari-agent -> ../ambari-agent
lrwxrwxrwx 1 root root 16 Jan 23 20:57 K01ambari-server -> ../ambari-server
lrwxrwxrwx 1 root root 15 Jan 23 20:09 S01ambari-agent -> ../ambari-agent
lrwxrwxrwx 1 root root 16 Jan 23 20:57 S01ambari-server -> ../ambari-server
The ambari-server fails to automatically start after reboot on an Suse11
system due to the service starting before the network (with the following
error, also attached in the logs):
1) Error injecting constructor, java.net.UnknownHostException:
ip-172-31-23-241: ip-172-31-23-241: unknown error
This especially happens on system where DNS is being used for resolve
hostnames (such as on AWS or many users).
STR:
Install a SuSE11 SP4, preferably on AWS or remove any references from
/etc/hosts.
Install the Ambari repo, the packages and run the setup:
wget -nv <http://public-
repo-1.hortonworks.com/ambari/suse11/2.x/updates/2.4.2.0/ambari.repo> -O
/etc/zypp/repos.d/ambari.repo
zypper -n install ambari-agent ambari-server
ambari-server setup
/etc/init.d/ambari-server start
reboot
Notice the ambari-server does not come up after reboot.
How to fix:
As per <https://www.novell.com/support/kb/doc.php?id=7002295>, the solution is
to set # Required-Start: $ALL in the script headers.
Attachments
Attachments
Issue Links
- links to