You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@ambari.apache.org by Andrew Onischuk <ao...@hortonworks.com> on 2017/01/31 14:45:23 UTC

Review Request 56125: ambari-server SuSE11 init script not working in certain environments

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/56125/
-----------------------------------------------------------

Review request for Ambari and Dmitro Lisnichenko.


Bugs: AMBARI-19797
    https://issues.apache.org/jira/browse/AMBARI-19797


Repository: ambari


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.


Diffs
-----

  ambari-server/sbin/ambari-server b63f128 

Diff: https://reviews.apache.org/r/56125/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Re: Review Request 56125: ambari-server SuSE11 init script not working in certain environments

Posted by Vitalyi Brodetskyi <vb...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/56125/#review166505
-----------------------------------------------------------


Ship it!




Ship It!

- Vitalyi Brodetskyi


On \u041b\u044e\u0442. 23, 2017, 11:31 \u0434\u043e \u043f\u043e\u043b\u0443\u0434\u043d\u044f, Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56125/
> -----------------------------------------------------------
> 
> (Updated \u041b\u044e\u0442. 23, 2017, 11:31 \u0434\u043e \u043f\u043e\u043b\u0443\u0434\u043d\u044f)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-19797
>     https://issues.apache.org/jira/browse/AMBARI-19797
> 
> 
> Repository: ambari
> 
> 
> 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.
> 
> 
> Diffs
> -----
> 
>   ambari-agent/etc/init.d/ambari-agent 2d597a9 
>   ambari-server/sbin/ambari-server 88d503d 
> 
> Diff: https://reviews.apache.org/r/56125/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>


Re: Review Request 56125: ambari-server SuSE11 init script not working in certain environments

Posted by Dmitro Lisnichenko <dl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/56125/#review166507
-----------------------------------------------------------


Ship it!




Ship It!

- Dmitro Lisnichenko


On Feb. 23, 2017, 1:31 p.m., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56125/
> -----------------------------------------------------------
> 
> (Updated Feb. 23, 2017, 1:31 p.m.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-19797
>     https://issues.apache.org/jira/browse/AMBARI-19797
> 
> 
> Repository: ambari
> 
> 
> 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.
> 
> 
> Diffs
> -----
> 
>   ambari-agent/etc/init.d/ambari-agent 2d597a9 
>   ambari-server/sbin/ambari-server 88d503d 
> 
> Diff: https://reviews.apache.org/r/56125/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>


Re: Review Request 56125: ambari-server SuSE11 init script not working in certain environments

Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/56125/
-----------------------------------------------------------

(Updated Feb. 23, 2017, 11:31 a.m.)


Review request for Ambari and Dmitro Lisnichenko.


Bugs: AMBARI-19797
    https://issues.apache.org/jira/browse/AMBARI-19797


Repository: ambari


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.


Diffs (updated)
-----

  ambari-agent/etc/init.d/ambari-agent 2d597a9 
  ambari-server/sbin/ambari-server 88d503d 

Diff: https://reviews.apache.org/r/56125/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Re: Review Request 56125: ambari-server SuSE11 init script not working in certain environments

Posted by Dmitro Lisnichenko <dl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/56125/#review163661
-----------------------------------------------------------


Ship it!




Ship It!

- Dmitro Lisnichenko


On Jan. 31, 2017, 4:45 p.m., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56125/
> -----------------------------------------------------------
> 
> (Updated Jan. 31, 2017, 4:45 p.m.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-19797
>     https://issues.apache.org/jira/browse/AMBARI-19797
> 
> 
> Repository: ambari
> 
> 
> 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.
> 
> 
> Diffs
> -----
> 
>   ambari-server/sbin/ambari-server b63f128 
> 
> Diff: https://reviews.apache.org/r/56125/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>