Hi All, I actually looked into the Hadoop core source code a bit more and understood that 'IS_HADOOP_SECURE' flag is set not from the configuration files, but from checking if the method 'isSecurityEnabled' exists in UserGroupInformation class in Hadoop core.
I also debugged and found out the problem happens when running subject.getPrincipals(User.class). Since this returns empty set, the .iterator().next() throws NoSuchMethodException. [cid:[email protected]] The question is that a) it seems to be a bug in Hadoop core 1.0.4. Is there any version that fixes this bug? b) We do not care about the security feature in Hadoop core ( at least not at this stage), is there any lower version of Hadoop core that can work with HBase 0.94.15? c) Any other suggestions for us to work around this issue? Thanks very much, YuLing -----Original Message----- From: C, Yuling Sent: Wednesday, April 08, 2015 10:21 AM To: [email protected] Subject: is there any way to configure hbase (0.94.15) so that the flag 'IS_HADOOP_SECURE' becomes false? Hi All, I'm using an HBase client deployed in OSGI Karaf console and in some scenarios, it's causing trouble for me to get connection to HBase server. I dug into the root cause and found in some cases, when the HConnectionManager tries to get connection by calling HConnectionKey(conf), it runs User.getCurrent(), and eventually called UserGroupInformation.getCurrentUser(). In the case when IS_HADOOP_SECURE is on, it throws exception. I was wondering if there's any configuration in HBase that we can use to turn 'IS_HADOOP_SECURE' to false? Thanks very much, YuLing
