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 2016/03/21 14:32:57 UTC
Review Request 45105: DB connection check installs JDK with incorrect
permissions. umask 027, non root
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45105/
-----------------------------------------------------------
Review request for Ambari and Dmitro Lisnichenko.
Bugs: AMBARI-15490
https://issues.apache.org/jira/browse/AMBARI-15490
Repository: ambari
Description
-------
**STR**
1) Setup umask 027, non root agent
2) During the wizard set Oozie server and Ambari-server on different hosts
3) On service configuration step set Oozie db as "Existing MySQL Database" and
hit "Test Connection" button
4) Deploy the cluster
To reproduce this DB connection check should be executed before any host
command (BEFORE-ANY hook setups JDK as well)
**Result**
On the host with Oozie server (where DB connection check was executed) JDK is
installed with incorrect permissions. Services will fail to start.
/usr/jdk64/jdk1.8.0_60/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
[root@c6406 ~]# ll /usr/jdk64/jdk1.8.0_60/jre/lib/amd64/jli/libjli.so
-rwxr-x--- 1 vagrant vagrant 102352 Aug 4 2015 /usr/jdk64/jdk1.8.0_60/jre/lib/amd64/jli/libjli.so
[root@c6406 ~]# ll /usr/jdk64/jdk1.8.0_60/lib/amd64/jli/libjli.so
-rwxr-x--- 1 vagrant vagrant 102990 Aug 4 2015 /usr/jdk64/jdk1.8.0_60/lib/amd64/jli/libjli.so
Diffs
-----
ambari-server/src/main/resources/custom_actions/scripts/check_host.py 9b79290
Diff: https://reviews.apache.org/r/45105/diff/
Testing
-------
mvn clean test
Thanks,
Andrew Onischuk
Re: Review Request 45105: DB connection check installs JDK with
incorrect permissions. umask 027, non root
Posted by Dmitro Lisnichenko <dl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45105/#review124546
-----------------------------------------------------------
Ship it!
Ship It!
- Dmitro Lisnichenko
On March 21, 2016, 3:32 p.m., Andrew Onischuk wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45105/
> -----------------------------------------------------------
>
> (Updated March 21, 2016, 3:32 p.m.)
>
>
> Review request for Ambari and Dmitro Lisnichenko.
>
>
> Bugs: AMBARI-15490
> https://issues.apache.org/jira/browse/AMBARI-15490
>
>
> Repository: ambari
>
>
> Description
> -------
>
> **STR**
> 1) Setup umask 027, non root agent
> 2) During the wizard set Oozie server and Ambari-server on different hosts
> 3) On service configuration step set Oozie db as "Existing MySQL Database" and
> hit "Test Connection" button
> 4) Deploy the cluster
>
> To reproduce this DB connection check should be executed before any host
> command (BEFORE-ANY hook setups JDK as well)
>
> **Result**
> On the host with Oozie server (where DB connection check was executed) JDK is
> installed with incorrect permissions. Services will fail to start.
>
>
>
> /usr/jdk64/jdk1.8.0_60/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
>
> [root@c6406 ~]# ll /usr/jdk64/jdk1.8.0_60/jre/lib/amd64/jli/libjli.so
> -rwxr-x--- 1 vagrant vagrant 102352 Aug 4 2015 /usr/jdk64/jdk1.8.0_60/jre/lib/amd64/jli/libjli.so
> [root@c6406 ~]# ll /usr/jdk64/jdk1.8.0_60/lib/amd64/jli/libjli.so
> -rwxr-x--- 1 vagrant vagrant 102990 Aug 4 2015 /usr/jdk64/jdk1.8.0_60/lib/amd64/jli/libjli.so
>
>
> Diffs
> -----
>
> ambari-server/src/main/resources/custom_actions/scripts/check_host.py 9b79290
>
> Diff: https://reviews.apache.org/r/45105/diff/
>
>
> Testing
> -------
>
> mvn clean test
>
>
> Thanks,
>
> Andrew Onischuk
>
>