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

JobClient.submitJob(...) should not use "Dr Who" as a default username

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.16.2
    • None
    • None

    Description

      In JobClient line 530, we have

      String user = System.getProperty("user.name");
      job.setUser(user != null ? user : "Dr Who");
      

      Since a ugi is already obtained in the earlier codes, we should get the username from ugi, not System.getProperty("user.name"). Also, Exception should be thrown if the username is null, instead of using a default.

      Attachments

        1. 2833_20080225.patch
          4 kB
          Tsz-wo Sze
        2. 2833_20080227.patch
          7 kB
          Tsz-wo Sze
        3. 2833_20080227b.patch
          8 kB
          Tsz-wo Sze
        4. 2833_20080228.patch
          7 kB
          Tsz-wo Sze

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            szetszwo Tsz-wo Sze
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment