-
Type:
Bug
-
Status: Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.3.0
-
Fix Version/s: 2.3.0
-
Component/s: caching, hdfs-client
-
Labels:None
-
Target Version/s:
WebHdfsFileSystem.getFileBlockLocations throws IllegalArgumentException when accessing a another cluster (that doesn't have caching support).
java.lang.IllegalArgumentException: cachedLocs should not be null, use a different constructor
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
at org.apache.hadoop.hdfs.protocol.LocatedBlock.<init>(LocatedBlock.java:79)
at org.apache.hadoop.hdfs.web.JsonUtil.toLocatedBlock(JsonUtil.java:414)
at org.apache.hadoop.hdfs.web.JsonUtil.toLocatedBlockList(JsonUtil.java:446)
at org.apache.hadoop.hdfs.web.JsonUtil.toLocatedBlocks(JsonUtil.java:479)
at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getFileBlockLocations(WebHdfsFileSystem.java:1067)
at org.apache.hadoop.fs.FileSystem$4.next(FileSystem.java:1812)
at org.apache.hadoop.fs.FileSystem$4.next(FileSystem.java:1797)