hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bing Li <sarah.lib...@gmail.com>
Subject Got a hadoop server IPC version mismatch ERROR in TestCliDriver avro_joins.q
Date Sun, 13 Jan 2013 19:22:49 GMT
Hi, guys
    I applied the patches for HIVE-895 ( add SerDe for Avro serialized data
) and HIVE-3273 (Add avro jars into hive execution classpath ) on
Hive-0.9.0.
    And then I ran the following command with hadoop-1.0.3 and avro-1.6.3
         ant test -Dtestcase=TestCliDriver -Dqfile=avro_joins.q
-Dtest.silent=false

    But I got an ERROR from hadoop in unit test. ( I can ran avro_joins.q
successfully in a real hadoop-1.0.3 cluster).

    I found that IPC version 7 is from hadoop 2.x and version 4 is from
hadoop-1.x, but I didn't set hadoop 2.x in any properties files.
    Do you know how this happened in unit test?

Thanks,
- Bing

ERROR
============================
    [junit] Caused by: org.apache.hadoop.ipc.RemoteException: Server IPC
version 7 cannot communicate with client version 4
    [junit]      at org.apache.hadoop.ipc.Client.call(Client.java:740)
    [junit]      at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)
    [junit]      at $Proxy1.getProtocolVersion(Unknown Source)
    [junit]      at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:359)
    [junit]      at
org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:106)
    [junit]      at
org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:207)
    [junit]      at
org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:170)
    [junit]      at
org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:82)
    [junit]      at
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1378)
    [junit]      at
org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:66)
    [junit]      at
org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1390)
    [junit]      at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:196)
    [junit]      at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:95)
    [junit]      at
org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java:367)
    [junit]      ... 10 more
    [junit] Job Submission failed with exception
'java.lang.RuntimeException(org.apache.hadoop.ipc.RemoteException: Server
IPC version 7 cannot communicate with client version 4)'

Mime
View raw message