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

zhihai xu commented on HADOOP-8436:
-----------------------------------

This patch is missing in branch-2, Will commit it to branch-2 shortly.

> NPE In getLocalPathForWrite ( path, conf ) when the required context item is 
> not configured
> -------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8436
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8436
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.0.0-alpha
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>             Fix For: 3.0.0
>
>         Attachments: HADOOP-8436.patch, HADOOP-8436_1.patch, 
> HADOOP-8436_1.patch.txt
>
>
> Call  dirAllocator.getLocalPathForWrite ( path , conf );
> without configuring  "dfs.client.buffer.dir"..
> {noformat}
> java.lang.NullPointerException
>       at 
> org.apache.hadoop.fs.LocalDirAllocator$AllocatorPerContext.confChanged(LocalDirAllocator.java:261)
>       at 
> org.apache.hadoop.fs.LocalDirAllocator$AllocatorPerContext.getLocalPathForWrite(LocalDirAllocator.java:365)
>       at 
> org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:134)
>       at 
> org.apache.hadoop.fs.LocalDirAllocator.getLocalPathForWrite(LocalDirAllocator.java:113)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to