Uploaded image for project: 'Cookbooks'
  1. Cookbooks
  2. COOK-33

clarify how to set JAVA_HOME

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: hadoop
    • Labels:
      None
    • Rank:
      1|hzyqxz:

      Description

      (continuing the discussion from https://github.com/caskdata/hadoop_cookbook/commit/b9e037ea540c39fddcdcb38c609cb53f7a0b3fb4#commitcomment-10702569)

      The start scripts for most Hadoop services require JAVA_HOME to be set, but it is not clear how to do that reliably. The suggestion in the thread linked to above was to use the java cookbook to set /etc/profile.d/jdk.sh. But this only affects interactive logins. If Chef is running from cron or some other automatic way, JAVA_HOME won't be set.

      I actually independently came up with the solution that was reverted in the above commit, but now I'm not sure why that was wrong too. How does anyone get this to work reliably?

        Attachments

          Activity

            People

            • Assignee:
              chris Chris Gianelloni
              Reporter:
              petere Peter Eisentraut
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: