[
https://issues.apache.org/jira/browse/HDFS-3533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13557236#comment-13557236
]
Christoph Rupp commented on HDFS-3533:
--------------------------------------
A note for everyone else who runs into this issue: the Thread.sleep(1000) is
necessary.
> NPE in DFSClient$DFSInputStream.openInfo
> ----------------------------------------
>
> Key: HDFS-3533
> URL: https://issues.apache.org/jira/browse/HDFS-3533
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: hdfs-client
> Affects Versions: 0.20.203.0
> Reporter: Amareshwari Sriramadasu
> Attachments: cannot-seek-after-eof-dn-logs.txt,
> cannot-seek-after-eof-nn-logs.txt, nn-logs-npe.txt, npe-dn-logs.txt
>
>
> I'm seeing the following NPE:
> java.lang.NullPointerException
> at
> org.apache.hadoop.hdfs.DFSClient$DFSInputStream.openInfo(DFSClient.java:1633)
> at
> org.apache.hadoop.hdfs.DFSClient$DFSInputStream.<init>(DFSClient.java:1593)
> at org.apache.hadoop.hdfs.DFSClient.open(DFSClient.java:428)
> at
> org.apache.hadoop.hdfs.DistributedFileSystem.open(DistributedFileSystem.java:187)
> at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:456)
> Here, the file gets opened while it's being written.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira