Bigtop
  1. Bigtop
  2. BIGTOP-888

Oozie losing value of JAVA_HOME when spawning sub-shell

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6.0
    • Component/s: None
    • Labels:
      None

      Description

      When starting Oozie server, it fails, despite Oracle JDK 6 being installed and configured in /etc/default/bigtop-utils:

      Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
      At least one of these environment variable is needed to run this program
      

      This appears to be happening when a new instance of the shell is invoked for the subprocess of the init script. This is easy to fix, but I'm suspicious as this seems like a problem we would have seen long before now.

        Activity

        Hide
        Wing Yew Poon added a comment -

        Sean, I'm guessing the reason oozie start didn't work for you but works for some folks is that oozie was using /usr/bin/java and you did not have /usr/bin/java pointing to your JAVA_HOME/bin/java.

        Show
        Wing Yew Poon added a comment - Sean, I'm guessing the reason oozie start didn't work for you but works for some folks is that oozie was using /usr/bin/java and you did not have /usr/bin/java pointing to your JAVA_HOME/bin/java.
        Hide
        Roman Shaposhnik added a comment -

        +1 and committed!

        Show
        Roman Shaposhnik added a comment - +1 and committed!
        Hide
        Sean Mackrory added a comment -

        This was the first time I've tried to run Oozie - I wonder if previously users have had JAVA_HOME set up some other way like /etc/profile or something? In any case - I guess I'll officially "Submit Patch".

        Show
        Sean Mackrory added a comment - This was the first time I've tried to run Oozie - I wonder if previously users have had JAVA_HOME set up some other way like /etc/profile or something? In any case - I guess I'll officially "Submit Patch".
        Hide
        Roman Shaposhnik added a comment -

        This actually looks plausible to me. I'd be +1 on this particular change.

        Show
        Roman Shaposhnik added a comment - This actually looks plausible to me. I'd be +1 on this particular change.
        Hide
        Sean Mackrory added a comment -

        Note: I've attached a patch that resolved the issue for me and makes sense, but as I said in the description I'm very suspicious of this problem because I can't believe it hasn't been a problem for everyone else. Still would like to dig into this more...

        Show
        Sean Mackrory added a comment - Note: I've attached a patch that resolved the issue for me and makes sense, but as I said in the description I'm very suspicious of this problem because I can't believe it hasn't been a problem for everyone else. Still would like to dig into this more...

          People

          • Assignee:
            Sean Mackrory
            Reporter:
            Sean Mackrory
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development