AnsweredAssumed Answered

ClassCastException when running HBaseTestingUtility (MapR 4.0)

Question asked by vladr on Jan 14, 2015
Latest reply on Jan 15, 2015 by nabeel
We are running unit tests for our application on top of  MapR HBase (0.98.4). Essentially what we see is
the failure to run HBase mini cluster with the following exception.

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.xxx.si.HBaseSuite
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.992 sec <<< FAILURE! - in com.xxx.si.HBaseSuite
com.xxx.si.HBaseSuite  Time elapsed: 2.992 sec  <<< ERROR!
java.lang.RuntimeException: java.lang.ClassCastException: com.mapr.fs.MapRFileSystem cannot be cast to org.apache.hadoop.hdfs.DistributedFileSystem
at org.apache.hadoop.hdfs.MiniDFSCluster.getFileSystem(MiniDFSCluster.java:1964)
at org.apache.hadoop.hdfs.MiniDFSCluster.getFileSystem(MiniDFSCluster.java:1957)
at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniDFSCluster(HBaseTestingUtility.java:521)
at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:846)
at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:771)
at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:742)
at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:729)
at com.xxx.si.HStoreSetup.setupHTableSource(HStoreSetup.java:107)
at com.xxx.si.HStoreSetup.setupHBaseHarness(HStoreSetup.java:138)
at com.xxx.si.HStoreSetup.<init>(HStoreSetup.java:73)
at com.xxx.si.HBaseSuite.setUp(HBaseSuite.java:31)


This may be configuration issue (at least I hope so)

-Vlad

Outcomes