You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Surendra Singh Lilhore (Jira)" <ji...@apache.org> on 2019/08/21 07:04:00 UTC

[jira] [Comment Edited] (HDFS-14257) NPE when given the Invalid path to create target dir

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

Surendra Singh Lilhore edited comment on HDFS-14257 at 8/21/19 7:03 AM:
------------------------------------------------------------------------

{quote}I guess this JIRA was supposed to fix NPE for the Router and make the behavior in sync with the Namenode
{quote}
[~ayushtkn], Do you know why NPE came here ? Just fixing NPE is not a solution for this, we have to check why the NPE came here.
{quote}Doing this resolution to home directory for all will change the CLI behavior, which according to compat guidelines shall be an incompatible change.
{quote}
Fixing a bug in CLI is not a incompatible change. 

Let's take others opinion on this.

[~aajisaka], [~jojochuang] What do you think on this ?

 


was (Author: surendrasingh):
{quote}I guess this JIRA was supposed to fix NPE for the Router and make the behavior in sync with the Namenode
{quote}
[~ayushtkn], Do you know why NPE came here ?

> NPE when given the Invalid path to create target dir
> ----------------------------------------------------
>
>                 Key: HDFS-14257
>                 URL: https://issues.apache.org/jira/browse/HDFS-14257
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Harshakiran Reddy
>            Assignee: hemanthboyina
>            Priority: Major
>              Labels: RBF
>         Attachments: HDFS-14257.001.patch, HDFS-14257.002.patch, HDFS-14257.patch
>
>
> bin> ./hdfs dfs -mkdir hdfs://{color:red}hacluster2 /hacluster1{color}dest2/
> {noformat}
> -mkdir: Fatal internal error
> java.lang.NullPointerException
>         at org.apache.hadoop.fs.FileSystem.fixRelativePart(FileSystem.java:2714)
>         at org.apache.hadoop.hdfs.DistributedFileSystem.fixRelativePart(DistributedFileSystem.java:3229)
>         at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1618)
>         at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1742)
>         at org.apache.hadoop.fs.shell.Mkdir.processNonexistentPath(Mkdir.java:74)
>         at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:287)
>         at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:269)
>         at org.apache.hadoop.fs.shell.FsCommand.processRawArguments(FsCommand.java:121)
>         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)
> bin>
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

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