May be its class path issue. Hadoop jars are not matching with server. May be 
client compiled with another version(here tez and hive) and server(Namenode) 
running with another version.

From: "david.buett...@iventuregroup.com" <david.buett...@iventuregroup.com>
Reply-To: "user@bigtop.apache.org" <user@bigtop.apache.org>
Date: Wednesday, 5 October 2022 at 7:11 PM
To: "user@bigtop.apache.org" <user@bigtop.apache.org>
Subject: Bigtop 3.1.1 hive with tez

Hi,

I’m trying to get hive running with tez but I get the error:


 java.lang.ClassCastException: 
org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$GetFileInfoRequestProto
 cannot be cast to com.google.protobuf.Message

anyone knows how to fix this error and get tez up and running?

tez-site.xml is:


<configuration>
<property>
<name>tez.lib.uris</name>
<value>${fs.defaultFS}/apps/tez/tez.tar.gz</value>
</property>

Full error message:


java.lang.ClassCastException: 
org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$GetFileInfoRequestProto
 cannot be cast to com.google.protobuf.Message

        at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:233)

        at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:123)

        at com.sun.proxy.$Proxy12.getFileInfo(Unknown Source)

        at 
org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:965)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:422)

        at 
org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeMethod(RetryInvocationHandler.java:165)

        at 
org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invoke(RetryInvocationHandler.java:157)

        at 
org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeOnce(RetryInvocationHandler.java:95)

        at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:359)

        at com.sun.proxy.$Proxy13.getFileInfo(Unknown Source)

        at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1731)

        at 
org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1752)

        at 
org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1749)

        at 
org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)

        at 
org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1764)

        at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1760)

        at 
org.apache.tez.common.TezCommonUtils.getTezBaseStagingPath(TezCommonUtils.java:88)

        at 
org.apache.tez.common.TezCommonUtils.getTezSystemStagingPath(TezCommonUtils.java:146)

        at 
org.apache.tez.dag.app.DAGAppMaster.serviceInit(DAGAppMaster.java:484)

        at 
org.apache.hadoop.service.AbstractService.init(AbstractService.java:164)

        at org.apache.tez.dag.app.DAGAppMaster$9.run(DAGAppMaster.java:2600)

        at java.security.AccessController.doPrivileged(Native Method)

        at javax.security.auth.Subject.doAs(Subject.java:422)

        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)

        at 
org.apache.tez.dag.app.DAGAppMaster.initAndStartAppMaster(DAGAppMaster.java:2597)

        at org.apache.tez.dag.app.DAGAppMaster.main(DAGAppMaster.java:2384)

2022-10-05 13:37:03,743 [WARN] [main] |service.AbstractService|: When stopping 
the service org.apache.tez.dag.app.DAGAppMaster

java.lang.NullPointerException

        at 
org.apache.tez.dag.app.DAGAppMaster.initiateStop(DAGAppMaster.java:2111)

        at 
org.apache.tez.dag.app.DAGAppMaster.serviceStop(DAGAppMaster.java:2126)

        at 
org.apache.hadoop.service.AbstractService.stop(AbstractService.java:220)

        at 
org.apache.hadoop.service.ServiceOperations.stop(ServiceOperations.java:54)

        at 
org.apache.hadoop.service.ServiceOperations.stopQuietly(ServiceOperations.java:102)

        at 
org.apache.hadoop.service.AbstractService.init(AbstractService.java:172)

        at org.apache.tez.dag.app.DAGAppMaster$9.run(DAGAppMaster.java:2600)

        at java.security.AccessController.doPrivileged(Native Method)

        at javax.security.auth.Subject.doAs(Subject.java:422)

        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)

        at 
org.apache.tez.dag.app.DAGAppMaster.initAndStartAppMaster(DAGAppMaster.java:2597)

        at org.apache.tez.dag.app.DAGAppMaster.main(DAGAppMaster.java:2384)

2022-10-05 13:37:03,743 [ERROR] [main] |app.DAGAppMaster|: Error starting 
DAGAppMaster

java.lang.ClassCastException: 
org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$GetFileInfoRequestProto
 cannot be cast to com.google.protobuf.Message

        at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:233)

        at 
org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:123)

        at com.sun.proxy.$Proxy12.getFileInfo(Unknown Source)

        at 
org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:965)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:422)

        at 
org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeMethod(RetryInvocationHandler.java:165)

        at 
org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invoke(RetryInvocationHandler.java:157)

        at 
org.apache.hadoop.io.retry.RetryInvocationHandler$Call.invokeOnce(RetryInvocationHandler.java:95)

        at 
org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:359)

        at com.sun.proxy.$Proxy13.getFileInfo(Unknown Source)

        at org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1731)

        at 
org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1752)

        at 
org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1749)

        at 
org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)

        at 
org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1764)

        at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1760)

        at 
org.apache.tez.common.TezCommonUtils.getTezBaseStagingPath(TezCommonUtils.java:88)

        at 
org.apache.tez.common.TezCommonUtils.getTezSystemStagingPath(TezCommonUtils.java:146)

        at 
org.apache.tez.dag.app.DAGAppMaster.serviceInit(DAGAppMaster.java:484)

        at 
org.apache.hadoop.service.AbstractService.init(AbstractService.java:164)

        at org.apache.tez.dag.app.DAGAppMaster$9.run(DAGAppMaster.java:2600)

        at java.security.AccessController.doPrivileged(Native Method)

        at javax.security.auth.Subject.doAs(Subject.java:422)

        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1878)

        at 
org.apache.tez.dag.app.DAGAppMaster.initAndStartAppMaster(DAGAppMaster.java:2597)

        at org.apache.tez.dag.app.DAGAppMaster.main(DAGAppMaster.java:2384)

2022-10-05 13:37:03,745 [INFO] [shutdown-hook-0] |app.DAGAppMaster|: 
DAGAppMasterShutdownHook invoked


Kind Regards,

David

Reply via email to