Hadoop Common
  1. Hadoop Common
  2. HADOOP-7483

Multiple Java installed confuses Hadoop Debian package installer

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.20.204.0, 0.23.0
    • Fix Version/s: None
    • Component/s: build
    • Labels:
      None
    • Environment:

      Java 6, Debian/Ubuntu

      Description

      When openjdk and sun java are both installed on the machine, Hadoop debian package can not determine correct Java to use.

        Issue Links

          Activity

          Harsh J made changes -
          Fix Version/s 0.24.0 [ 12317652 ]
          Hide
          Harsh J added a comment -

          Should we move this issue to Apache Bigtop (TLP now)? I have not heard of such a problem existing in it currently, in its java-home-detector. So I'd rather close it out since Bigtop has, I think, superceded this upstream packaging effort overall.

          Show
          Harsh J added a comment - Should we move this issue to Apache Bigtop (TLP now)? I have not heard of such a problem existing in it currently, in its java-home-detector. So I'd rather close it out since Bigtop has, I think, superceded this upstream packaging effort overall.
          Arun C Murthy made changes -
          Fix Version/s 0.24.0 [ 12317652 ]
          Fix Version/s 0.23.0 [ 12315569 ]
          Hide
          Eli Collins added a comment -

          I don't see how this is the beginning. JAVA_HOME auto-detection is orthogonal to a java package dependency. Regardless of whether we auto-detect JAVA_HOME we need to deal with multiple javas installed on a host - even if we create a package dependency there may be others installed as well.

          CDH has had JAVA_HOME detection for years and it hasn't been a major maintenance mess, but that's a separate discussion.

          Show
          Eli Collins added a comment - I don't see how this is the beginning. JAVA_HOME auto-detection is orthogonal to a java package dependency. Regardless of whether we auto-detect JAVA_HOME we need to deal with multiple javas installed on a host - even if we create a package dependency there may be others installed as well. CDH has had JAVA_HOME detection for years and it hasn't been a major maintenance mess, but that's a separate discussion.
          Hide
          Steve Loughran added a comment -

          Well, as allen said on HADOOP-6605, "My technical objection is that there is a high likelihood of getting this wrong."

          There's a serious risk of the JAVA_HOME autodetector becoming a major maintenance mess. This is the beginning.

          Show
          Steve Loughran added a comment - Well, as allen said on HADOOP-6605 , "My technical objection is that there is a high likelihood of getting this wrong." There's a serious risk of the JAVA_HOME autodetector becoming a major maintenance mess. This is the beginning.
          Eric Yang made changes -
          Link This issue relates to HDFS-2192 [ HDFS-2192 ]
          Eric Yang made changes -
          Link This issue relates to MAPREDUCE-2728 [ MAPREDUCE-2728 ]
          Hide
          Eli Collins added a comment -

          See HADOOP-6605. In summary: IMO Hadoop should auto-detect/prefer the Sun JDK 1.6 over others because it is required, however people veto'd that and would rather require users explicitly set JAVA_HOME (or remove the other versions of java installed on the host).

          Show
          Eli Collins added a comment - See HADOOP-6605 . In summary: IMO Hadoop should auto-detect/prefer the Sun JDK 1.6 over others because it is required, however people veto'd that and would rather require users explicitly set JAVA_HOME (or remove the other versions of java installed on the host).
          Eli Collins made changes -
          Link This issue relates to HADOOP-6605 [ HADOOP-6605 ]
          Eric Yang made changes -
          Field Original Value New Value
          Fix Version/s 0.23.0 [ 12315569 ]
          Affects Version/s 0.20.204.0 [ 12316317 ]
          Affects Version/s 0.23.0 [ 12315569 ]
          Component/s build [ 12311543 ]
          Eric Yang created issue -

            People

            • Assignee:
              Eric Yang
              Reporter:
              Eric Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Development