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 "Brahma Reddy Battula (JIRA)" <ji...@apache.org> on 2012/05/25 09:13:22 UTC

[jira] [Created] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured

Brahma Reddy Battula created HADOOP-8436:
--------------------------------------------

             Summary: NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir 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, 3.0.0
            Reporter: Brahma Reddy Battula


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 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-8436) NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured

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

Hudson commented on HADOOP-8436:
--------------------------------

Integrated in Hadoop-Mapreduce-trunk #1207 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1207/])
    HADOOP-8436. NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured. Contributed by Brahma Reddy Battula. (harsh) (Revision 1389799)

     Result = SUCCESS
harsh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1389799
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/LocalDirAllocator.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalDirAllocator.java

                
> 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_1.patch, HADOOP-8436_1.patch.txt, HADOOP-8436.patch
>
>
> 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 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

[jira] [Assigned] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured

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

Brahma Reddy Battula reassigned HADOOP-8436:
--------------------------------------------

    Assignee: Brahma Reddy Battula
    
> NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir 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, 3.0.0
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>
> 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 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] [Updated] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured

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

Brahma Reddy Battula updated HADOOP-8436:
-----------------------------------------

    Attachment: HADOOP-8436_1.patch
    
> NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir 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
>         Attachments: HADOOP-8436_1.patch, HADOOP-8436.patch
>
>
> 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 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

[jira] [Commented] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured

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

Hudson commented on HADOOP-8436:
--------------------------------

Integrated in Hadoop-Common-trunk-Commit #2767 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2767/])
    HADOOP-8436. NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured. Contributed by Brahma Reddy Battula. (harsh) (Revision 1389799)

     Result = SUCCESS
harsh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1389799
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/LocalDirAllocator.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalDirAllocator.java

                
> 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_1.patch, HADOOP-8436_1.patch.txt, HADOOP-8436.patch
>
>
> 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 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

[jira] [Commented] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured

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

Hudson commented on HADOOP-8436:
--------------------------------

Integrated in Hadoop-Mapreduce-trunk-Commit #2789 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2789/])
    HADOOP-8436. NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured. Contributed by Brahma Reddy Battula. (harsh) (Revision 1389799)

     Result = FAILURE
harsh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1389799
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/LocalDirAllocator.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalDirAllocator.java

                
> 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_1.patch, HADOOP-8436_1.patch.txt, HADOOP-8436.patch
>
>
> 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 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

[jira] [Updated] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured

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

Brahma Reddy Battula updated HADOOP-8436:
-----------------------------------------

    Status: Patch Available  (was: Open)
    
> NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir 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, 3.0.0
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>         Attachments: HADOOP-8436.patch
>
>
> 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 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] [Updated] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured

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

Harsh J updated HADOOP-8436:
----------------------------

    Affects Version/s:     (was: 3.0.0)
               Status: Open  (was: Patch Available)

Canceling patch until comments are addressed.
                
> NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir 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
>         Attachments: HADOOP-8436.patch
>
>
> 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 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

[jira] [Updated] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured

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

Harsh J updated HADOOP-8436:
----------------------------

    Summary: NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured  (was: NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured)
    
> 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
>         Attachments: HADOOP-8436_1.patch, HADOOP-8436.patch
>
>
> 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 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

[jira] [Commented] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured

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

Brahma Reddy Battula commented on HADOOP-8436:
----------------------------------------------

HI Harsh,

Thanks a lot for reviewing patch...I updated patch..
                
> NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir 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
>         Attachments: HADOOP-8436_1.patch, HADOOP-8436.patch
>
>
> 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 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

[jira] [Commented] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured

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

Harsh J commented on HADOOP-8436:
---------------------------------

Hi,

Does this functionally depend on HADOOP-8437 as per your earlier comment? I don't seem to see the patch relying on it.

The parameter {{dfs.client.buffer.dir}} appears very, very outdated to me, and whatever is using that must be removed or changed to use a new config name. We no longer require buffer directories in DFS writes as we used to in ancient versions of HDFS.

Comments on patch:

{code}
+	  if (null == newLocalDirs) { 
+        throw new IOException(contextCfgItemName + " not configured"); 
+      }
{code}

Indentation issue near {{if}}

{code}
+ fail("not throwing the exception"); 
{code}

Same comment about this as on HADOOP-8437. Please apply a better failure message that makes it easier for us to debug it if it ever fails in future someday.

{code}
+      assertEquals("Incorrect exception message", 
+          CONTEXT+" not configured", e.getMessage()); 
{code}

Probably wanna space between the strings concatenated here.

Thanks!
                
> NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir 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
>         Attachments: HADOOP-8436.patch
>
>
> 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 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

[jira] [Commented] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured

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

Hudson commented on HADOOP-8436:
--------------------------------

Integrated in Hadoop-Hdfs-trunk #1176 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1176/])
    HADOOP-8436. NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured. Contributed by Brahma Reddy Battula. (harsh) (Revision 1389799)

     Result = SUCCESS
harsh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1389799
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/LocalDirAllocator.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalDirAllocator.java

                
> 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_1.patch, HADOOP-8436_1.patch.txt, HADOOP-8436.patch
>
>
> 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 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

[jira] [Updated] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured

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

Brahma Reddy Battula updated HADOOP-8436:
-----------------------------------------

    Status: Open  (was: Patch Available)

Cancelling patch Since it's depend on HADOOP-8437 patch..AS Both patches are applicable to same class.After HADOOP-8437 got committed then will make patch available..
                
> NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir 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, 3.0.0
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>         Attachments: HADOOP-8436.patch
>
>
> 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 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] [Updated] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured

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

Aaron T. Myers updated HADOOP-8436:
-----------------------------------

    Status: Patch Available  (was: Open)

Marking patch available for Brahma.
                
> NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir 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, 3.0.0
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>         Attachments: HADOOP-8436.patch
>
>
> 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 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-8436) NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured

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

Hudson commented on HADOOP-8436:
--------------------------------

Integrated in Hadoop-Hdfs-trunk-Commit #2830 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2830/])
    HADOOP-8436. NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured. Contributed by Brahma Reddy Battula. (harsh) (Revision 1389799)

     Result = SUCCESS
harsh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1389799
Files : 
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/LocalDirAllocator.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalDirAllocator.java

                
> 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_1.patch, HADOOP-8436_1.patch.txt, HADOOP-8436.patch
>
>
> 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 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

[jira] [Updated] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured

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

Brahma Reddy Battula updated HADOOP-8436:
-----------------------------------------

    Attachment: HADOOP-8436.patch

Attaching Patch...
                
> NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir 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, 3.0.0
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>         Attachments: HADOOP-8436.patch
>
>
> 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 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] [Updated] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured

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

Brahma Reddy Battula updated HADOOP-8436:
-----------------------------------------

    Status: Patch Available  (was: Open)
    
> NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir 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
>         Attachments: HADOOP-8436_1.patch, HADOOP-8436.patch
>
>
> 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 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

[jira] [Updated] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured

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

Harsh J updated HADOOP-8436:
----------------------------

    Target Version/s: 2.0.1-alpha, 3.0.0  (was: 2.0.0-alpha, 3.0.0)
    
> NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir 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, 3.0.0
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>
> 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 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-8436) NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured

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

Brahma Reddy Battula commented on HADOOP-8436:
----------------------------------------------


{code}
String newLocalDirs = conf.get(contextCfgItemName);
if (!newLocalDirs.equals(savedLocalDirs)) {
				int minDiskFreeThresholdMb = conf.getInt("hadoop.min.local.disk.freespace.threshold", 1024);
{code}

Here newLocalDirs will become null and it'll throw NPE..

I did fix like this..

{code}
  String newLocalDirs = conf.get(contextCfgItemName);
			if (null == newLocalDirs) {
				throw new IOException("dfs.client.buffer.dir not configured");
			}
      if (!newLocalDirs.equals(savedLocalDirs) ) {
        localDirs = StringUtils.getTrimmedStrings(newLocalDirs);
{code}
                
> NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir 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, 3.0.0
>            Reporter: Brahma Reddy Battula
>
> 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 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-8436) NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir not configured

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

Hadoop QA commented on HADOOP-8436:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12529973/HADOOP-8436.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 1 new or modified test files.

    -1 javac.  The patch appears to cause the build to fail.

Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/1050//console

This message is automatically generated.
                
> NPE In getLocalPathForWrite ( path, conf ) when dfs.client.buffer.dir 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, 3.0.0
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>         Attachments: HADOOP-8436.patch
>
>
> 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 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] [Updated] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured

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

Harsh J updated HADOOP-8436:
----------------------------

    Attachment: HADOOP-8436_1.patch.txt

I improved the test-case a bit more for the NPE scenario and committed this. Thanks Brahma!
                
> 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_1.patch, HADOOP-8436_1.patch.txt, HADOOP-8436.patch
>
>
> 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 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

[jira] [Commented] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured

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

Hadoop QA commented on HADOOP-8436:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12546489/HADOOP-8436_1.patch
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 1 new or modified test files.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 eclipse:eclipse.  The patch built with eclipse:eclipse.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    -1 core tests.  The patch failed these unit tests in hadoop-common-project/hadoop-common:

                  org.apache.hadoop.ha.TestZKFailoverController

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/1514//testReport/
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/1514//console

This message is automatically generated.
                
> 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_1.patch, HADOOP-8436_1.patch.txt, HADOOP-8436.patch
>
>
> 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 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

[jira] [Updated] (HADOOP-8436) NPE In getLocalPathForWrite ( path, conf ) when the required context item is not configured

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

Harsh J updated HADOOP-8436:
----------------------------

          Resolution: Fixed
       Fix Version/s: 3.0.0
    Target Version/s:   (was: 3.0.0)
        Hadoop Flags: Reviewed
              Status: Resolved  (was: Patch Available)
    
> 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_1.patch, HADOOP-8436_1.patch.txt, HADOOP-8436.patch
>
>
> 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 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