Support Questions
Find answers, ask questions, and share your expertise

Array out of bound issue

We are appending the file to an existing external table to avoid small file issues.However when we are following such procedures we encounter an error. After that we are unable to query the table or read the HDFS file lying underneath the external table.

When i try to read the issue Im getting the below error:

17/10/27 00:14:31 WARN retry.RetryInvocationHandler: Exception while invoking ClientNamenodeProtocolTranslatorPB.getBlockLocations over Not retrying because try once and fail.

org.apache.hadoop.ipc.RemoteException(java.lang.ArrayIndexOutOfBoundsException): java.lang.ArrayIndexOutOfBoundsException at org.apache.hadoop.ipc.Client.getRpcResponse( at at at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke( at com.sun.proxy.$Proxy10.getBlockLocations(Unknown Source) at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.getBlockLocations( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at at at at com.sun.proxy.$Proxy11.getBlockLocations(Unknown Source) at org.apache.hadoop.hdfs.DFSClient.callGetBlockLocations( at org.apache.hadoop.hdfs.DFSClient.getLocatedBlocks( at org.apache.hadoop.hdfs.DFSClient.getLocatedBlocks( at org.apache.hadoop.hdfs.DFSInputStream.fetchLocatedBlocksAndGetLastBlockLength( at org.apache.hadoop.hdfs.DFSInputStream.openInfo( at org.apache.hadoop.hdfs.DFSInputStream.<init>( at at org.apache.hadoop.hdfs.DistributedFileSystem$4.doCall( at org.apache.hadoop.hdfs.DistributedFileSystem$4.doCall( at org.apache.hadoop.fs.FileSystemLinkResolver.resolve( at at at$Cat.getInputStream( at$Cat.processPath( at at at at at at at at at at org.apache.hadoop.fs.FsShell.main( cat: java.lang.ArrayIndexOutOfBoundsException

It seems its unable to retrieve the block location. Is there anyway that it can solved so that we will be able to retrieve the file.


Rising Star

Can you try change the replication factor to see if that help? In the meanwhile, can you provide namenode log segment matching with the time above?

hadoop fs -setrep