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)'

Reply via email to