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

David Williams commented on HBASE-8944:
---------------------------------------

Great, sounds good.  I testes 0.94.6.1 against Hadoop 1.1.2 and 1.0.4.  Using 
1.1.2 the tests pass on Mac OSX but not CentOS.  Using 1.0.4 the tests fail as 
well on Mac OSX with this error:

{code}
ERROR in (create-table) (MiniHBaseCluster.java:224)
Uncaught exception, not in assertion.
expected: nil
  actual: java.io.IOException: Shutting down
 at org.apache.hadoop.hbase.MiniHBaseCluster.init (MiniHBaseCluster.java:224)
    org.apache.hadoop.hbase.MiniHBaseCluster.<init> (MiniHBaseCluster.java:87)
    org.apache.hadoop.hbase.MiniHBaseCluster.<init> (MiniHBaseCluster.java:78)
    org.apache.hadoop.hbase.HBaseTestingUtility.startMiniHBaseCluster 
(HBaseTestingUtility.java:657)
    org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster 
(HBaseTestingUtility.java:627)
    org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster 
(HBaseTestingUtility.java:575)
    org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster 
(HBaseTestingUtility.java:562)
    hbase.table_test$test_config.doInvoke (table_test.clj:10)
    clojure.lang.RestFn.invoke (RestFn.java:397)
    hbase.table_test/fn (table_test.clj:19)
    clojure.test$test_var$fn__7145.invoke (test.clj:701)
{code}

So so far the results look something like this:

||hbase version||hadoop version||Mac OSX||CentOS||
|0.94.9|1.2.0|pass|fail|
|0.94.9|1.1.2|pass|fail|
|0.94.6.1|1.2.0|pass|fail|
|0.94.6.1|1.1.2|pass|fail|
|0.94.6.1|1.0.4|fail|fail|

                
> Runtime NullPointerException in MiniDFSCluster on CentOS and other Linux
> ------------------------------------------------------------------------
>
>                 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
>
> 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

Reply via email to