AnsweredAssumed Answered

[Security] Authentication issues with JBOSS7 on unsecure cluster

Question asked by oege on Jun 19, 2017
Latest reply on Jun 20, 2017 by maprcommunity

Hey there, currently i'm having problems in connecting to HBase from a java web application deployed on jboss.

I followed this thread [Security] Authentication issues with JBOSS7 and was able to resolve some of my problem, which also were described in the mentioned thread. However, there is a new problem, which i cannot solve without any further help. 

 

Here is my setup. I'm on Windows with the MAPR client installed. My cluster is build using the MAPR Sandbox with all the default settings, i did not change anything. The cluster is unsecured. The cluster is running and i am able to connect to the cluster. I am also able to run queries against the HBase tables from a normal java application, from my jboss web application this fails. I have included the MAPR libraries using a jboss module, with all dependencies. This module is included in my web application using the jboss-deployment-structure.xml in the web app WEB-INF directory. 

 

When trying to connect to one of my HBase tables i got the following error:

Caused by: java.io.IOException: failure to login: MapR user ticket not available! error = com.mapr.security.MutableInt@119966db
at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:751) [hadoop-common-2.7.0-mapr-1607.jar:]
at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:688) [hadoop-common-2.7.0-mapr-1607.jar:]
at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:572) [hadoop-common-2.7.0-mapr-1607.jar:]
at org.apache.hadoop.hbase.security.User$SecureHadoopUser.<init>(User.java:286) [hbase-common-1.1.1-mapr-1602-m7-5.2.0.jar:1.1.1-mapr-1602-m7-5.2.0]
at org.apache.hadoop.hbase.security.User$SecureHadoopUser.<init>(User.java:282) [hbase-common-1.1.1-mapr-1602-m7-5.2.0.jar:1.1.1-mapr-1602-m7-5.2.0]
at org.apache.hadoop.hbase.security.User.getCurrent(User.java:185) [hbase-common-1.1.1-mapr-1602-m7-5.2.0.jar:1.1.1-mapr-1602-m7-5.2.0]
at org.apache.hadoop.hbase.security.UserProvider.getCurrent(UserProvider.java:88) [hbase-common-1.1.1-mapr-1602-m7-5.2.0.jar:1.1.1-mapr-1602-m7-5.2.0]
at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:234) [hbase-client-1.1.1-mapr-1602-m7-5.2.0.jar:1.1.1-mapr-1602-m7-5.2.0]
at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:138) [hbase-client-1.1.1-mapr-1602-m7-5.2.0.jar:1.1.1-mapr-1602-m7-5.2.0]
at de.rewe.hbase.connection.HConnectionProvider.createConnection(HConnectionProvider.java:147) [rsm-bigdata-hbase-mapr-0.0.2-SNAPSHOT.jar:mapr-0.0.2-SNAPSHOT]
... 17 more
Caused by: javax.security.auth.login.LoginException: MapR user ticket not available! error = com.mapr.security.MutableInt@119966db
at com.mapr.security.maprsasl.MaprSecurityLoginModule.login(MaprSecurityLoginModule.java:240) [maprfs-5.2.0-mapr.jar:5.2.0-mapr]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_111]
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:755) [rt.jar:1.8.0_111]
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195) [rt.jar:1.8.0_111]
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682) [rt.jar:1.8.0_111]
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680) [rt.jar:1.8.0_111]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_111]
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) [rt.jar:1.8.0_111]
at javax.security.auth.login.LoginContext.login(LoginContext.java:587) [rt.jar:1.8.0_111]
at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:724) [hadoop-common-2.7.0-mapr-1607.jar:]
... 26 more

 

I wonder why this happens, since the cluster is unsecured. This is also wat maprlogin.bar shows me.

Has anyone an idea how to solve this?

 

Thanks in advance.

Outcomes