Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5830

WebHdfsFileSystem.getFileBlockLocations throws IllegalArgumentException when accessing another cluster.

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • 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:

      Description

      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)

        Attachments

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              yzhangal Yongjun Zhang Assign to me
              Reporter:
              yzhangal Yongjun Zhang

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment