Hadoop Common
  1. Hadoop Common
  2. HADOOP-7634

Cluster setup docs specify wrong owner for task-controller.cfg

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.20.204.0
    • Fix Version/s: 1.1.0
    • Component/s: documentation, security
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The cluster setup docs indicate task-controller.cfg must be owned by the user running TaskTracker but the code checks for root. We should update the docs to reflect the real requirement.

      1. hadoop-7634.patch
        0.8 kB
        Eli Collins

        Activity

        Hide
        Eli Collins added a comment -

        Patch attached.

        Show
        Eli Collins added a comment - Patch attached.
        Hide
        Aaron T. Myers added a comment -

        +1.

        Note that the file can actually be owned by anyone, it just can't be writable by anyone but root. The error message displayed is correct:

        11/09/16 17:59:06 INFO mapred.TaskController: Invalid permissions or ownership on conf file /etc/hadoop/conf/taskcontroller.cfg
        11/09/16 17:59:06 INFO mapred.TaskController: Must be owned by root and not writable by group or other
        
        $ ls -l taskcontroller.cfg 
        -rw-r--r-- 1 root atm 185 2011-09-16 17:53 taskcontroller.cfg
        
        Show
        Aaron T. Myers added a comment - +1. Note that the file can actually be owned by anyone, it just can't be writable by anyone but root. The error message displayed is correct: 11/09/16 17:59:06 INFO mapred.TaskController: Invalid permissions or ownership on conf file /etc/hadoop/conf/taskcontroller.cfg 11/09/16 17:59:06 INFO mapred.TaskController: Must be owned by root and not writable by group or other $ ls -l taskcontroller.cfg -rw-r--r-- 1 root atm 185 2011-09-16 17:53 taskcontroller.cfg
        Hide
        Eli Collins added a comment -

        If the file can be owned by anyone should we update the error message to not indicate "Must be owned by root"?

        Show
        Eli Collins added a comment - If the file can be owned by anyone should we update the error message to not indicate "Must be owned by root"?
        Hide
        Aaron T. Myers added a comment -

        Sorry, Eli - I should have said "group-owned by anyone." You are right that it must be owned by root.

        The error message really is completely correct: "Must be owned by root and not writable by group or other."

        Show
        Aaron T. Myers added a comment - Sorry, Eli - I should have said "group-owned by anyone." You are right that it must be owned by root. The error message really is completely correct: "Must be owned by root and not writable by group or other."
        Hide
        Eli Collins added a comment -

        Thanks atm. I've committed this.

        Show
        Eli Collins added a comment - Thanks atm. I've committed this.
        Hide
        Matt Foley added a comment -

        Closed upon release of Hadoop-1.1.0.

        Show
        Matt Foley added a comment - Closed upon release of Hadoop-1.1.0.

          People

          • Assignee:
            Eli Collins
            Reporter:
            Eli Collins
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development