[ https://issues.apache.org/jira/browse/RANGER-4686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17829711#comment-17829711 ]
Fateh Singh commented on RANGER-4686: ------------------------------------- Hi All Hbase unit tests have been ignore using @org.junit.Ignore in the HBaseRangerAuthorizationTest.java file so they are not running all these while (https://issues.apache.org/jira/browse/RANGER-4686) I think it is critical to get these to work. I have this patch (attached with JIRA) which fix the issues on my fork (enterprise codebase) but it fails when I tried in the apache codebase with the below error java.lang.NoSuchFieldError: PROVIDED at org.apache.hadoop.hdfs.server.blockmanagement.BlockStoragePolicySuite.createDefaultSuite(BlockStoragePolicySuite.java:86) at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.<init>(BlockManager.java:461) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:795) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:731) at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1137) at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:406) at org.apache.hadoop.hdfs.DFSTestUtil.formatNameNode(DFSTestUtil.java:251) at org.apache.hadoop.hdfs.MiniDFSCluster.configureNameService(MiniDFSCluster.java:1066) at org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:952) at org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:884) at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:800) at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniDFSCluster(HBaseTestingUtility.java:667) at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniDFSCluster(HBaseTestingUtility.java:640) at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:1129) at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:1104) at org.apache.ranger.authorization.hbase.HBaseRangerAuthorizationTest.setup(HBaseRangerAuthorizationTest.java:103) at java.lang.reflect.Method.invoke(Method.java:498) There is a possibility that it could be due to my local setup/intellij issues but I am not sure. Can someone help try it out and if works I can go ahead and create pull request. If it does not work, any help would be appreciated as I think open-sourcing this patch would be good for the community. > Make existing hbase unit test cases to work > ------------------------------------------- > > Key: RANGER-4686 > URL: https://issues.apache.org/jira/browse/RANGER-4686 > Project: Ranger > Issue Type: Bug > Components: Ranger > Reporter: Fateh Singh > Assignee: Fateh Singh > Priority: Major > Attachments: hbase-unit-tests-apache.patch > > > HBase unit tests were ignored in RANGER-2432: Upgrade Hadoop Version to 3.1.1. > They need to be reintroduced to prevent regressions while making code changes. > They currently fail when trying to create mini hbase cluster -- This message was sent by Atlassian Jira (v8.20.10#820010)