You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/07/16 00:14:49 UTC

[jira] [Commented] (HBASE-8944) Document workaround for MiniDFSCluster exceptions when running tests

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

Hudson commented on HBASE-8944:
-------------------------------

SUCCESS: Integrated in HBase-TRUNK #4255 (See [https://builds.apache.org/job/HBase-TRUNK/4255/])
HBASE-8944. Document workaround for MiniDFSCluster exceptions when running tests (apurtell: rev 1503429)
* /hbase/trunk/src/main/docbkx/troubleshooting.xml

                
> Document workaround for MiniDFSCluster exceptions when running tests
> --------------------------------------------------------------------
>
>                 Key: HBASE-8944
>                 URL: https://issues.apache.org/jira/browse/HBASE-8944
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.94.6, 0.94.6.1
>            Reporter: David Williams
>            Assignee: Andrew Purtell
>             Fix For: 0.98.0
>
>         Attachments: 8944.patch, 8944.patch
>
>
> The HBaseTestingUtility appears to have an unhandled NullPointerException in certain environments.   It works on Apache HBase 0.94.6.1 on Mac OSX but not in certain Linux environments such as CentOS. 
> In Java:
> {code}
> HBaseTestingUtility testingUtility = new HBaseTestingUtility();
> testingUtility.startMiniCluster(1);  // blows up on CentOS Linux but not Mac OSX
> {code}
> Creates this exception:
> {code}
> ERROR in (create-table) (MiniDFSCluster.java:426)
> Uncaught exception, not in assertion.
> expected: nil
>   actual: java.lang.NullPointerException: null
>  at org.apache.hadoop.hdfs.MiniDFSCluster.startDataNodes (MiniDFSCluster.java:426)
>     org.apache.hadoop.hdfs.MiniDFSCluster.<init> (MiniDFSCluster.java:284)
>     org.apache.hadoop.hbase.HBaseTestingUtility.startMiniDFSCluster (HBaseTestingUtility.java:444)
>     org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster (HBaseTestingUtility.java:612)
>     org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster (HBaseTestingUtility.java:568)
>     org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster (HBaseTestingUtility.java:555)
> {code}
> I also created a stack overflow ticket here, with more info:
> http://stackoverflow.com/questions/17625938/hbase-minidfscluster-java-fails-in-certain-environments
> Steps to reproduce:
> 1.  Download a copy of CentOS
> 2.  Install Java
> 3.  Fire up a minicluster as part of the HBaseTestingUtility

--
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