Excepción en el subproceso "main" org.apache.hadoop.ipc.RemoteException: el servidor IPC versión 9 no puede comunicarse con el cliente versión 4. ¿Cómo resolver esto?

Estoy usando hadoop 2.7.0 y java oracle jdk1.7.0_79 con NetBeans IDE 8.0.2. Cuando intento comunicarme con Hadoop usando el archivo Java, aparece el siguiente error. ¿Hay algún problema de dependencia involucrado? ¿O cómo puedo resolver este error?

He visto publicaciones con problemas relacionados, pero ninguna de ellas fue útil para transmitir la respuesta con claridad. Entonces, por favor, ayúdame aquí. ¡Gracias!

    Exception in thread "main" org.apache.hadoop.ipc.RemoteException: Server IPC version 9 cannot communicate with client version 4
at org.apache.hadoop.ipc.Client.call(Client.java:1066)
at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)
at com.sun.proxy.$Proxy1.getProtocolVersion(Unknown Source)
at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396)
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.hadoop.mapreduce.lib.input.FileInputFormat.setInputPaths(FileInputFormat.java:352)
at pir.PIR.run(PIR.java:317)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at pir.PIR.main(PIR.java:256)

Respuestas a la pregunta(1)

Su respuesta a la pregunta