Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # dev >> [jira] [Commented] (AVRO-1451) Getting org.apache.hadoop.ipc.RPC$VersionMismatch error when reading avro file from terminal


Copy link to this message
-
[jira] [Commented] (AVRO-1451) Getting org.apache.hadoop.ipc.RPC$VersionMismatch error when reading avro file from terminal

    [ https://issues.apache.org/jira/browse/AVRO-1451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13889692#comment-13889692 ]

Doug Cutting commented on AVRO-1451:
------------------------------------

The avro-tools jar in 1.7.4 includes libraries from Hadoop 0.20.205, which is not compatible with the Hadoop 0.20.2-cdh3u5 cluster you're attempting to run it against.  You could rebuild the avro-tools jar, or it might be simpler to combine the appropriate jar files on the command line with something like:

  java -cp 'avro-tools-1.7.4-nodeps.jar:hadoop-0.20.2-cdh3u5.jar:...' org.apache.avro.tool.Main

(Where I put the "..." you'll need to add other required jars.)
> Getting org.apache.hadoop.ipc.RPC$VersionMismatch error when reading avro file from terminal
> --------------------------------------------------------------------------------------------
>
>                 Key: AVRO-1451
>                 URL: https://issues.apache.org/jira/browse/AVRO-1451
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.7.4
>         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)
>            Reporter: Sudhir Ranjan
>
> 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,

--
This message was sent by Atlassian JIRA
(v6.1.5#6160)