You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2011/09/13 21:39:09 UTC

[jira] [Created] (HADOOP-7632) NPE in copyToLocal

NPE in copyToLocal
------------------

                 Key: HADOOP-7632
                 URL: https://issues.apache.org/jira/browse/HADOOP-7632
             Project: Hadoop Common
          Issue Type: Bug
          Components: fs
    Affects Versions: 0.23.0
            Reporter: Todd Lipcon
            Priority: Critical
             Fix For: 0.23.0


[todd@c0309 hadoop-trunk-home]$ ./bin/hadoop fs -copyToLocal /hbase/.META./1028785192/ /tmp/meta/
copyToLocal: Fatal internal error
java.lang.NullPointerException
        at org.apache.hadoop.fs.shell.PathData.getPathDataForChild(PathData.java:182)
        at org.apache.hadoop.fs.shell.CommandWithDestination.processPaths(CommandWithDestination.java:115)
        at org.apache.hadoop.fs.shell.Command.recursePath(Command.java:329)
        at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:302)
        at org.apache.hadoop.fs.shell.CommandWithDestination.processPaths(CommandWithDestination.java:116)
        at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:272)
        at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:255)
        at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:239)
        at org.apache.hadoop.fs.shell.CommandWithDestination.processArguments(CommandWithDestination.java:105)
        at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:185)
        at org.apache.hadoop.fs.shell.Command.run(Command.java:149)


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (HADOOP-7632) NPE in copyToLocal

Posted by "Daryn Sharp (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daryn Sharp resolved HADOOP-7632.
---------------------------------

    Resolution: Duplicate
    
> NPE in copyToLocal
> ------------------
>
>                 Key: HADOOP-7632
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7632
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.23.0
>            Reporter: Todd Lipcon
>            Assignee: Daryn Sharp
>            Priority: Critical
>             Fix For: 0.23.0
>
>
> [todd@c0309 hadoop-trunk-home]$ ./bin/hadoop fs -copyToLocal /hbase/.META./1028785192/ /tmp/meta/
> copyToLocal: Fatal internal error
> java.lang.NullPointerException
>         at org.apache.hadoop.fs.shell.PathData.getPathDataForChild(PathData.java:182)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processPaths(CommandWithDestination.java:115)
>         at org.apache.hadoop.fs.shell.Command.recursePath(Command.java:329)
>         at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:302)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processPaths(CommandWithDestination.java:116)
>         at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:272)
>         at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:255)
>         at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:239)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processArguments(CommandWithDestination.java:105)
>         at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:185)
>         at org.apache.hadoop.fs.shell.Command.run(Command.java:149)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7632) NPE in copyToLocal

Posted by "Daryn Sharp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104814#comment-13104814 ] 

Daryn Sharp commented on HADOOP-7632:
-------------------------------------

It's actually a bit more than that.  The recursion is handled incorrectly in some cases.  I've got a really old patch for this that I can put once 205 work is complete.

> NPE in copyToLocal
> ------------------
>
>                 Key: HADOOP-7632
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7632
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.23.0
>            Reporter: Todd Lipcon
>            Priority: Critical
>             Fix For: 0.23.0
>
>
> [todd@c0309 hadoop-trunk-home]$ ./bin/hadoop fs -copyToLocal /hbase/.META./1028785192/ /tmp/meta/
> copyToLocal: Fatal internal error
> java.lang.NullPointerException
>         at org.apache.hadoop.fs.shell.PathData.getPathDataForChild(PathData.java:182)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processPaths(CommandWithDestination.java:115)
>         at org.apache.hadoop.fs.shell.Command.recursePath(Command.java:329)
>         at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:302)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processPaths(CommandWithDestination.java:116)
>         at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:272)
>         at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:255)
>         at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:239)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processArguments(CommandWithDestination.java:105)
>         at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:185)
>         at org.apache.hadoop.fs.shell.Command.run(Command.java:149)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7632) NPE in copyToLocal

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104731#comment-13104731 ] 

Uma Maheswara Rao G commented on HADOOP-7632:
---------------------------------------------

Hi Todd,

By looking the trace, I think the problem exist here.

{code}
// need a static method for the ctor above
  private static FileStatus getStat(FileSystem fs, Path path)
  throws IOException {  
    FileStatus status = null;
    try {
      status = fs.getFileStatus(path);
    } catch (FileNotFoundException e) {} // ignore FNF
    return status;
  }
{code}

In PathData, it is just ignoring the FileNotFoundException and returning null.



Thanks
Uma


> NPE in copyToLocal
> ------------------
>
>                 Key: HADOOP-7632
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7632
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.23.0
>            Reporter: Todd Lipcon
>            Priority: Critical
>             Fix For: 0.23.0
>
>
> [todd@c0309 hadoop-trunk-home]$ ./bin/hadoop fs -copyToLocal /hbase/.META./1028785192/ /tmp/meta/
> copyToLocal: Fatal internal error
> java.lang.NullPointerException
>         at org.apache.hadoop.fs.shell.PathData.getPathDataForChild(PathData.java:182)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processPaths(CommandWithDestination.java:115)
>         at org.apache.hadoop.fs.shell.Command.recursePath(Command.java:329)
>         at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:302)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processPaths(CommandWithDestination.java:116)
>         at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:272)
>         at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:255)
>         at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:239)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processArguments(CommandWithDestination.java:105)
>         at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:185)
>         at org.apache.hadoop.fs.shell.Command.run(Command.java:149)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (HADOOP-7632) NPE in copyToLocal

Posted by "Daryn Sharp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daryn Sharp reassigned HADOOP-7632:
-----------------------------------

    Assignee: Daryn Sharp

> NPE in copyToLocal
> ------------------
>
>                 Key: HADOOP-7632
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7632
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.23.0
>            Reporter: Todd Lipcon
>            Assignee: Daryn Sharp
>            Priority: Critical
>             Fix For: 0.23.0
>
>
> [todd@c0309 hadoop-trunk-home]$ ./bin/hadoop fs -copyToLocal /hbase/.META./1028785192/ /tmp/meta/
> copyToLocal: Fatal internal error
> java.lang.NullPointerException
>         at org.apache.hadoop.fs.shell.PathData.getPathDataForChild(PathData.java:182)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processPaths(CommandWithDestination.java:115)
>         at org.apache.hadoop.fs.shell.Command.recursePath(Command.java:329)
>         at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:302)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processPaths(CommandWithDestination.java:116)
>         at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:272)
>         at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:255)
>         at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:239)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processArguments(CommandWithDestination.java:105)
>         at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:185)
>         at org.apache.hadoop.fs.shell.Command.run(Command.java:149)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7632) NPE in copyToLocal

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13105259#comment-13105259 ] 

Uma Maheswara Rao G commented on HADOOP-7632:
---------------------------------------------

Thanks Daryn!

> NPE in copyToLocal
> ------------------
>
>                 Key: HADOOP-7632
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7632
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.23.0
>            Reporter: Todd Lipcon
>            Assignee: Daryn Sharp
>            Priority: Critical
>             Fix For: 0.23.0
>
>
> [todd@c0309 hadoop-trunk-home]$ ./bin/hadoop fs -copyToLocal /hbase/.META./1028785192/ /tmp/meta/
> copyToLocal: Fatal internal error
> java.lang.NullPointerException
>         at org.apache.hadoop.fs.shell.PathData.getPathDataForChild(PathData.java:182)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processPaths(CommandWithDestination.java:115)
>         at org.apache.hadoop.fs.shell.Command.recursePath(Command.java:329)
>         at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:302)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processPaths(CommandWithDestination.java:116)
>         at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:272)
>         at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:255)
>         at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:239)
>         at org.apache.hadoop.fs.shell.CommandWithDestination.processArguments(CommandWithDestination.java:105)
>         at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:185)
>         at org.apache.hadoop.fs.shell.Command.run(Command.java:149)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira