Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1632

Make the hadoop home world readable and avoid sudo in hadoop-runner

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 0.4.1
    • None
    • Done

    Description

      eyang reporeted in HDDS-1609 that the hadoop-runner image can be started without mounting a real hadoop (usually, it's ounted) AND using a different uid:

      docker run -it  -u $(id -u):$(id -g) apache/hadoop-runner bash
      docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "chdir to cwd (\"/opt/hadoop\") set in config.json failed: permission denied": unknown.
      

      There are two blocking problems here:

      • the /opt/hadoop directory (which is the CWD inside the container) is 700 instead of 755
      • The usage of sudo in started scripts (sudo is not possible if the real user is not added to the /etc/passwd)

      Both of them are addressed by this patch.

      Attachments

        Activity

          People

            elek Marton Elek
            elek Marton Elek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m