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

OffsetParam should return the default value instead of throwing NPE when the value is unspecified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.7.0
    • 2.7.0
    • webhdfs
    • None
    • Reviewed

    Description

      This is a regression in 2.7 and later.

      hadoop fs -cat over webhdfs works, but hadoop fs -text does not:

      $ hadoop fs -cat webhdfs://myhost.com/tmp/test.1
      ... output ...
      
      $ hadoop fs -text webhdfs://myhost.com/tmp/test.1
      text: org.apache.hadoop.ipc.RemoteException(java.lang.NullPointerException): null
      	at org.apache.hadoop.hdfs.web.JsonUtil.toRemoteException(JsonUtil.java:165)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.validateResponse(WebHdfsFileSystem.java:358)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.access$200(WebHdfsFileSystem.java:91)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.runWithRetry(WebHdfsFileSystem.java:615)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.access$100(WebHdfsFileSystem.java:463)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner$1.run(WebHdfsFileSystem.java:492)
      ...
      

      Attachments

        1. HDFS-7818.v1.txt
          2 kB
          Eric Payne
        2. HDFS-7818.v2.txt
          2 kB
          Eric Payne
        3. HDFS-7818.v3.txt
          3 kB
          Eric Payne
        4. HDFS-7818.v4.txt
          3 kB
          Eric Payne
        5. HDFS-7818.v5.txt
          3 kB
          Eric Payne

        Issue Links

          Activity

            People

              epayne Eric Payne
              epayne Eric Payne
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: