You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Arpit Agarwal (JIRA)" <ji...@apache.org> on 2019/01/25 20:50:00 UTC
[jira] [Created] (HDDS-1013) NPE while listing directories
Arpit Agarwal created HDDS-1013:
-----------------------------------
Summary: NPE while listing directories
Key: HDDS-1013
URL: https://issues.apache.org/jira/browse/HDDS-1013
Project: Hadoop Distributed Data Store
Issue Type: Bug
Components: Ozone Filesystem
Reporter: Arpit Agarwal
The following sequence of steps on a fresh ozone install results in an NPE:
{code}
hadoop@50ddd1e1b186:~$ ozone sh volume create /volume1
2019-01-25 20:42:55 INFO RpcClient:257 - Creating Volume: volume1, with hadoop as owner and quota set to 1152921504606846976 bytes.
hadoop@50ddd1e1b186:~$ ozone sh bucket create /volume1/bucket1
2019-01-25 20:43:20 INFO RpcClient:386 - Creating Bucket: volume1/bucket1, with Versioning false and Storage Type set to DISK
hadoop@50ddd1e1b186:~$ ozone fs -fs o3fs://bucket1.volume1/ -mkdir /dir1
hadoop@50ddd1e1b186:~$ ozone fs -fs o3fs://bucket1.volume1/ -mkdir /dir2
hadoop@50ddd1e1b186:~$ ozone fs -fs o3fs://bucket1.volume1/ -mkdir /dir1/dir11
hadoop@50ddd1e1b186:~$ ozone fs -fs o3fs://bucket1.volume1/ -mkdir /dir2/dir21
hadoop@50ddd1e1b186:~$ ozone fs -fs o3fs://bucket1.volume1/ -ls /
-ls: Fatal internal error
java.lang.NullPointerException
at org.apache.hadoop.fs.ozone.OzoneFileSystem.innerGetFileStatusForDir(OzoneFileSystem.java:708)
at org.apache.hadoop.fs.ozone.OzoneFileSystem$ListStatusIterator.addSubDirStatus(OzoneFileSystem.java:553)
at org.apache.hadoop.fs.ozone.OzoneFileSystem$ListStatusIterator.processKey(OzoneFileSystem.java:530)
at org.apache.hadoop.fs.ozone.OzoneFileSystem$OzoneListingIterator.iterate(OzoneFileSystem.java:885)
at org.apache.hadoop.fs.ozone.OzoneFileSystem.listStatus(OzoneFileSystem.java:594)
at org.apache.hadoop.fs.shell.PathData.getDirectoryContents(PathData.java:269)
at org.apache.hadoop.fs.shell.Command.recursePath(Command.java:439)
at org.apache.hadoop.fs.shell.Ls.processPathArgument(Ls.java:226)
at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:286)
at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:270)
at org.apache.hadoop.fs.shell.FsCommand.processRawArguments(FsCommand.java:120)
at org.apache.hadoop.fs.shell.Command.run(Command.java:177)
at org.apache.hadoop.fs.FsShell.run(FsShell.java:327)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
at org.apache.hadoop.fs.FsShell.main(FsShell.java:390)
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org