hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei-Chiu Chuang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-14242) OIV WebImageViewer: NPE when param op is not specified
Date Wed, 06 Feb 2019 19:51:00 GMT

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

Wei-Chiu Chuang commented on HDFS-14242:
----------------------------------------

+1

> 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message