[ https://issues.apache.org/jira/browse/HDFS-13661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16505787#comment-16505787 ]
Takanobu Asanuma commented on HDFS-13661: ----------------------------------------- Uploaded the 1st patch addressing the issue. The patch also improves the display of the command like below. {noformat} # Before $ hadoop fs -ls -R -e / drwxr-xr-x - takanobu supergroup 0 2018-06-08 14:57 /replicated -rw-r--r-- 3 takanobu supergroup Replicated 1024 2018-06-08 14:57 /replicated/replfile drwxr-xr-x - takanobu supergroup RS-6-3-1024k 0 2018-06-08 14:57 /striped -rw-r--r-- 1 takanobu supergroup RS-6-3-1024k 6291456 2018-06-08 14:57 /striped/ec1 -rw-r--r-- 1 takanobu supergroup RS-6-3-1024k 6291456 2018-06-08 14:57 /striped/ec2 -rw-r--r-- 1 takanobu supergroup RS-6-3-1024k 6291456 2018-06-08 14:57 /striped/ec3 # After $ hadoop fs -ls -R -e / drwxr-xr-x None takanobu supergroup 0 2018-06-08 14:57 /replicated -rw-r--r-- 3-Replicated takanobu supergroup 1024 2018-06-08 14:57 /replicated/replfile drwxr-xr-x RS-6-3-1024k takanobu supergroup 0 2018-06-08 14:57 /striped -rw-r--r-- RS-6-3-1024k takanobu supergroup 6291456 2018-06-08 14:57 /striped/ec1 -rw-r--r-- RS-6-3-1024k takanobu supergroup 6291456 2018-06-08 14:57 /striped/ec2 -rw-r--r-- RS-6-3-1024k takanobu supergroup 6291456 2018-06-08 14:57 /striped/ec3 {noformat} > Ls command with e option fails when the filesystem is not HDFS > -------------------------------------------------------------- > > Key: HDFS-13661 > URL: https://issues.apache.org/jira/browse/HDFS-13661 > Project: Hadoop HDFS > Issue Type: Bug > Components: erasure-coding, tools > Affects Versions: 3.1.0, 3.0.3 > Reporter: Takanobu Asanuma > Assignee: Takanobu Asanuma > Priority: Major > Attachments: HDFS-13661.1.patch > > > {noformat} > $ hadoop fs -ls -e file:// > Found 10 items > -ls: Fatal internal error > java.lang.NullPointerException > at org.apache.hadoop.fs.shell.Ls.adjustColumnWidths(Ls.java:308) > at org.apache.hadoop.fs.shell.Ls.processPaths(Ls.java:242) > at org.apache.hadoop.fs.shell.Command.recursePath(Command.java:387) > at org.apache.hadoop.fs.shell.Ls.processPathArgument(Ls.java:226) > at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:285) > at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:269) > at > org.apache.hadoop.fs.shell.FsCommand.processRawArguments(FsCommand.java:120) > at org.apache.hadoop.fs.shell.Command.run(Command.java:176) > at org.apache.hadoop.fs.FsShell.run(FsShell.java:328) > 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:391) > {noformat} -- 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