Hadoop Common
  1. Hadoop Common
  2. HADOOP-6782

TestAvroRpc fails with avro-1.3.1 and avro-1.3.2

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.21.0
    • Component/s: None
    • Labels:
      None

      Description

      I tried to upgrade Hadoop-common to use avro-1.3.1. TestAvroRpc fails with following exceptions.
      Same exception is seen with avro-1.3.2 as well.

      org.apache.avro.AvroRuntimeException: Not in union ["string"]: org.apache.avro.AvroRuntimeException: java.lang.NoSuchMethodException: org.apache.hadoop.ipc.TestAvroRpc$TestImpl.echo(java.lang.String)
      at org.apache.avro.generic.GenericData.resolveUnion(GenericData.java:340)
      at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:67)
      at org.apache.avro.reflect.ReflectDatumWriter.write(ReflectDatumWriter.java:116)
      at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:55)
      at org.apache.avro.specific.SpecificResponder.writeError(SpecificResponder.java:81)
      at org.apache.avro.ipc.Responder.respond(Responder.java:137)
      at org.apache.hadoop.ipc.AvroRpcEngine$TunnelResponder.call(AvroRpcEngine.java:183)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.hadoop.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:342)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1350)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1346)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:396)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:738)
      at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1344)
      2010-05-20 13:50:39,227 INFO ipc.Server (Server.java:run(1358)) - IPC Server handler 0 on 54672, call call(org.apache.hadoop.ipc.AvroRpcEngine$BufferListWritable@7bcd280b) from 127.0.0.1:54673: error: java.io.IOException: org.apache.avro.AvroRuntimeException: Not in union ["string"]: org.apache.avro.AvroRuntimeException: Not in union ["string"]: org.apache.avro.AvroRuntimeException: java.lang.NoSuchMethodException: org.apache.hadoop.ipc.TestAvroRpc$TestImpl.echo(java.lang.String)
      java.io.IOException: org.apache.avro.AvroRuntimeException: Not in union ["string"]: org.apache.avro.AvroRuntimeException: Not in union ["string"]: org.apache.avro.AvroRuntimeException: java.lang.NoSuchMethodException: org.apache.hadoop.ipc.TestAvroRpc$TestImpl.echo(java.lang.String)
      at org.apache.avro.generic.GenericData.resolveUnion(GenericData.java:340)
      at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:67)
      at org.apache.avro.reflect.ReflectDatumWriter.write(ReflectDatumWriter.java:116)
      at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:55)
      at org.apache.avro.specific.SpecificResponder.writeError(SpecificResponder.java:81)
      at org.apache.avro.ipc.Responder.respond(Responder.java:146)
      at org.apache.hadoop.ipc.AvroRpcEngine$TunnelResponder.call(AvroRpcEngine.java:183)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.hadoop.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:342)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1350)
      at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1346)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:396)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:738)
      at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1344)

        Issue Links

          Activity

            People

            • Assignee:
              Doug Cutting
              Reporter:
              Jitendra Nath Pandey
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development