Project: springxd
Issue XD-1526: Exception when accessing CDH4 namenode
Get exception when accessing cdh4 from shell - java.lang.UnsupportedOperationException: This is supposed to be overridden by subclasses. com.google.protobuf.GeneratedMessage.getUnknownFields most likely due to protobuf-java-2.5.0.jar being on the main classpath now Full stack trace: {code} trisberg@carbon:~/Test$ ./spring-xd-1.0.0.BUILD-SNAPSHOT/shell/bin/xd-shell --hadoopDistro cdh4 16:55:22,680 WARN main conf.Configuration:824 - fs.default.name is deprecated. Instead, use fs.defaultFS _____ __ _______ / ___| (-) \ \ / / _ \ \ `--. _ __ _ __ _ _ __ __ _ \ V /| | | | `--. \ '_ \| '__| | '_ \ / _` | / ^ \| | | | /\__/ / |_) | | | | | | | (_| | / / \ \ |/ / \____/| .__/|_| |_|_| |_|\__, | \/ \/___/ | | __/ | |_| |___/ eXtreme Data 1.0.0.BUILD-SNAPSHOT | Admin Server Target: http://localhost:9393 Welcome to the Spring XD shell. For assistance hit TAB or type "help". xd:>hadoop config fs --namenode hdfs://cdh4:8020 xd:>hadoop fs ls / Hadoop configuration changed, re-initializing shell... 16:55:28,853 WARN Spring Shell util.NativeCodeLoader:62 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable -ls: Fatal internal error java.lang.UnsupportedOperationException: This is supposed to be overridden by subclasses. com.google.protobuf.GeneratedMessage.getUnknownFields(GeneratedMessage.java:180) org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$GetFileInfoRequestProto.getSerializedSize(ClientNamenodeProtocolProtos.java:30108) com.google.protobuf.AbstractMessageLite.toByteString(AbstractMessageLite.java:49) org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.constructRpcRequest(ProtobufRpcEngine.java:149) org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:193) com.sun.proxy.$Proxy43.getFileInfo(Unknown Source) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:606) org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:164) org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:83) com.sun.proxy.$Proxy43.getFileInfo(Unknown Source) org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getFileInfo(ClientNamenodeProtocolTranslatorPB.java:629) org.apache.hadoop.hdfs.DFSClient.getFileInfo(DFSClient.java:1545) org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:819) org.apache.hadoop.fs.FileSystem.globStatusInternal(FileSystem.java:1646) org.apache.hadoop.fs.FileSystem.globStatus(FileSystem.java:1592) org.apache.hadoop.fs.FileSystem.globStatus(FileSystem.java:1567) org.apache.hadoop.fs.shell.PathData.expandAsGlob(PathData.java:271) org.apache.hadoop.fs.shell.Command.expandArgument(Command.java:224) org.apache.hadoop.fs.shell.Command.expandArguments(Command.java:207) org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:190) org.apache.hadoop.fs.shell.Command.run(Command.java:154) org.apache.hadoop.fs.FsShell.run(FsShell.java:254) org.springframework.xd.shell.hadoop.FsShellCommands.run(FsShellCommands.java:412) org.springframework.xd.shell.hadoop.FsShellCommands.runCommand(FsShellCommands.java:407) org.springframework.xd.shell.hadoop.FsShellCommands.ls(FsShellCommands.java:110) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:606) org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:196) org.springframework.shell.core.SimpleExecutionStrategy.invoke(SimpleExecutionStrategy.java:64) org.springframework.shell.core.SimpleExecutionStrategy.execute(SimpleExecutionStrategy.java:48) org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:127) org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java:530) org.springframework.shell.core.JLineShell.run(JLineShell.java:178) java.lang.Thread.run(Thread.java:744) {code}
Story points: 3