Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-15490

DB connection check installs JDK with incorrect permissions. umask 027, non root

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.2
    • None
    • None

    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

      Attachments

        1. AMBARI-15490.patch
          0.8 kB
          Andrew Onischuk

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: