[ 
https://issues.apache.org/jira/browse/HDFS-14242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16755386#comment-16755386
 ] 

Siyao Meng commented on HDFS-14242:
-----------------------------------

Unrelated test failure org.apache.hadoop.hdfs.TestClientMetrics#testGetMetrics()

> OIV WebImageViewer: NPE when param op is not specified
> ------------------------------------------------------
>
>                 Key: HDFS-14242
>                 URL: https://issues.apache.org/jira/browse/HDFS-14242
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: tools
>    Affects Versions: 3.2.0, 3.1.1
>            Reporter: Siyao Meng
>            Assignee: Siyao Meng
>            Priority: Major
>         Attachments: HDFS-14242.001.patch
>
>
> {code:bash|title=Repro. Tab 1: Start WebImageViewer}
> $ hdfs oiv -i fsimage_0000000000011467437
> 2019-01-28 23:30:20,536 INFO offlineImageViewer.FSImageHandler: Loading 6 
> strings
> 2019-01-28 23:30:20,545 INFO offlineImageViewer.FSImageHandler: Loading 
> 2031774 inodes.
> 2019-01-28 23:30:22,602 INFO offlineImageViewer.FSImageHandler: Loading inode 
> references
> 2019-01-28 23:30:22,610 INFO offlineImageViewer.FSImageHandler: Loaded 0 
> inode references
> 2019-01-28 23:30:22,610 INFO offlineImageViewer.FSImageHandler: Loading inode 
> directory section
> 2019-01-28 23:30:22,739 INFO offlineImageViewer.FSImageHandler: Loaded 31758 
> directories
> 2019-01-28 23:30:22,800 INFO offlineImageViewer.WebImageViewer: 
> WebImageViewer started. Listening on /127.0.0.1:5978. Press Ctrl+C to stop 
> the viewer.
> {code}
> {code:bash|title=Repro. Tab 2: curl /webhdfs/v1 without params}
> # NPE without op (null/empty op)
> $ curl http://127.0.0.1:5978/webhdfs/v1/
> {"RemoteException":{"exception":"NullPointerException","javaClassName":"java.lang.NullPointerException","message":null}}
> # Okay with op
> $ curl http://127.0.0.1:5978/webhdfs/v1/\?op\=LISTSTATUS
> {"FileStatuses":{"FileStatus":[
> {"owner":"hdfs","replication":0,"pathSuffix":"tmp","modificationTime":1534356863827,"childrenNum":3,"length":0,"permission":"1777","type":"DIRECTORY","blockSize":0,"accessTime":0,"group":"supergroup","fileId":16388},{"owner":"hdfs","replication":0,"pathSuffix":"user","modificationTime":1534273588466,"childrenNum":3,"length":0,"permission":"755","type":"DIRECTORY","blockSize":0,"accessTime":0,"group":"supergroup","fileId":16386}
> ]}}
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to