Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16849

start-build-env.sh behaves incorrectly when username is numeric only

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0, 3.1.4, 3.2.2, 2.10.1
    • Component/s: build
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When username is numaric only, the build environment does not run correctly.
      Here is my case.

      ~/hadoop$ ./start-build-env.sh
      ...
      Successfully tagged hadoop-build-1649860140:latest
      
       _   _           _                    ______
      | | | |         | |                   |  _  \
      | |_| | __ _  __| | ___   ___  _ __   | | | |_____   __
      |  _  |/ _` |/ _` |/ _ \ / _ \| '_ \  | | | / _ \ \ / /
      | | | | (_| | (_| | (_) | (_) | |_) | | |/ /  __/\ V /
      \_| |_/\__,_|\__,_|\___/ \___/| .__/  |___/ \___| \_(_)
                                    | |
                                    |_|
      
      This is the standard Hadoop Developer build environment.
      This has all the right tools installed required to build
      Hadoop from source.
      
      I have no name!@fceab279f8d1:~/hadoop$ whoami
      whoami: cannot find name for user ID 1112533
      I have no name!@fceab279f8d1:~/hadoop$ sudo ls
      sudo: unknown uid 1112533: who are you?
      

      I changed USER_NAME to USER_ID in the script. Then it worked correctly.

        Attachments

        1. userid.patch
          0.4 kB
          Jihyun Cho

          Activity

            People

            • Assignee:
              Jihyun Cho Jihyun Cho
              Reporter:
              Jihyun Cho Jihyun Cho
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: