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

WebHdfsFileSystem.getFileBlockLocations throws IllegalArgumentException when accessing another cluster.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • caching, hdfs-client
    • None

    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

        1. HDFS-5830.001.patch
          2 kB
          Yongjun Zhang

        Activity

          People

            yzhangal Yongjun Zhang
            yzhangal Yongjun Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: