Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1451

Getting org.apache.hadoop.ipc.RPC$VersionMismatch error when reading avro file from terminal

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7.4
    • Fix Version/s: None
    • Component/s: java
    • Labels:
      None
    • Environment:

      avro-tools-1.7.4.jar
      Hadoop 0.20.2-cdh3u5
      java version "1.6.0_27"
      Java(TM) SE Runtime Environment (build 1.6.0_27-b07)

    • Tags:
      RPC$VersionMismatch

      Description

      java -jar ~/Documents/sudhir/AvroAnalysis/Avrojars/avro-tools-1.7.4.jar totext hdfs://localhost:9000/home/hadoop/avro/part-m-00000.avro hdfs://localhost:9000/home/hadoop/avroToText

      Getting following exception :

      Exception in thread "main" org.apache.hadoop.ipc.RPC$VersionMismatch: Protocol org.apache.hadoop.hdfs.protocol.ClientProtocol version mismatch. (client = 61, server = 63)
      at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:401)
      at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379)
      at org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:118)
      at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:222)
      at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:187)
      at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:89)
      at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1328)
      at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:65)
      at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1346)
      at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:244)
      at org.apache.hadoop.fs.Path.getFileSystem(Path.java:187)
      at org.apache.avro.tool.Util.openFromFS(Util.java:88)
      at org.apache.avro.tool.Util.fileOrStdin(Util.java:60)
      at org.apache.avro.tool.ToTextTool.run(ToTextTool.java:63)
      at org.apache.avro.tool.Main.run(Main.java:84)
      at org.apache.avro.tool.Main.main(Main.java:73)

      Please suggest the resolution.
      Thanks,

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sudhirranjan Sudhir Ranjan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: