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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.16.2
    • Component/s: None
    • Labels:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: