Hadoop Common
  1. Hadoop Common
  2. HADOOP-7629

regression with MAPREDUCE-2289 - setPermission passed immutable FsPermission (rpc failure)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 1.1.0, 0.23.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      MAPREDUCE-2289 introduced the following change:

      +        fs.setPermission(stagingArea, JOB_DIR_PERMISSION);
      

      JOB_DIR_PERMISSION is an immutable FsPermission which cannot be used in RPC calls, it results in the following exception:

      2011-09-08 16:31:45,187 WARN org.apache.hadoop.ipc.Server: Unable to read call parameters for client 127.0.0.1
      java.lang.RuntimeException: java.lang.NoSuchMethodException: org.apache.hadoop.fs.permission.FsPermission$2.<init>()
              at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:115)
              at org.apache.hadoop.io.WritableFactories.newInstance(WritableFactories.java:53)
              at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:236)
              at org.apache.hadoop.ipc.RPC$Invocation.readFields(RPC.java:104)
              at org.apache.hadoop.ipc.Server$Connection.processData(Server.java:1337)
              at org.apache.hadoop.ipc.Server$Connection.processOneRpc(Server.java:1315)
              at org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1215)
              at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:566)
              at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:363)
      Caused by: java.lang.NoSuchMethodException: org.apache.hadoop.fs.permission.FsPermission$2.<init>()
              at java.lang.Class.getConstructor0(Class.java:2706)
              at java.lang.Class.getDeclaredConstructor(Class.java:1985)
              at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:109)
              ... 8 more
      
      1. hadoop-7629-20s.txt
        1 kB
        Todd Lipcon
      2. hadoop-7629.txt
        2 kB
        Todd Lipcon
      3. hadoop-7629.txt
        5 kB
        Todd Lipcon

        Issue Links

          Activity

          Patrick Hunt created issue -
          Patrick Hunt made changes -
          Field Original Value New Value
          Link This issue is broken by MAPREDUCE-2289 [ MAPREDUCE-2289 ]
          Todd Lipcon made changes -
          Project Hadoop Map/Reduce [ 12310941 ] Hadoop Common [ 12310240 ]
          Key MAPREDUCE-2976 HADOOP-7629
          Affects Version/s 0.22.0 [ 12314296 ]
          Affects Version/s 0.22.0 [ 12314184 ]
          Component/s job submission [ 12313413 ]
          Todd Lipcon made changes -
          Attachment hadoop-7629.txt [ 12494154 ]
          Todd Lipcon made changes -
          Assignee Todd Lipcon [ tlipcon ]
          Todd Lipcon made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Todd Lipcon made changes -
          Attachment hadoop-7629.txt [ 12494352 ]
          Todd Lipcon made changes -
          Link This issue is related to HDFS-2332 [ HDFS-2332 ]
          Todd Lipcon made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Fix Version/s 0.23.0 [ 12315569 ]
          Resolution Fixed [ 1 ]
          Todd Lipcon made changes -
          Attachment hadoop-7629-20s.txt [ 12496836 ]
          Todd Lipcon made changes -
          Fix Version/s 0.20.206.0 [ 12316501 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Todd Lipcon
              Reporter:
              Patrick Hunt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development