AnsweredAssumed Answered

[Security] Authentication issues with JBOSS7

Question asked by wlimam on Oct 12, 2015
Latest reply on Jun 1, 2017 by maprcommunity
Hi,

In my client machine i have a JEE application running on JBOSS 7 server. The Mapr cluster is in a remote machine and the security is enabled. When trying to connect to the cluster using FileSystem.get(URI.create(url), conf) i got a LoginException. The user who run the application has a valid mapr ticket generated with maprlogin utility and he can access to the cluster with no problem. When running the same code in a java main application i got no error and it works fine. It is obvious that jboss cannot use the mapr ticket when connecting to the cluster.

The following is the stacktrace of the exception


    
      Caused by: javax.security.auth.login.LoginException: PBOX000053: No CallbackHandler available to collect authentication information
     at org.jboss.security.auth.spi.UsernamePasswordLoginModule.getUsernameAndPassword(UsernamePasswordLoginModule.java:335) ~
     at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:222) ~[picketbox-4.0.14.Final-
     at org.jboss.security.auth.spi.UsersRolesLoginModule.login(UsersRolesLoginModule.java:171) ~[picketbox-4.0.14.Final-
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_71]
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_71]
     at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_71]
     at javax.security.auth.login.LoginContext.invoke(LoginContext.java:762) ~[?:1.7.0_71]
     at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203) ~[?:1.7.0_71]
     at javax.security.auth.login.LoginContext$4.run(LoginContext.java:690) ~[?:1.7.0_71]
     at javax.security.auth.login.LoginContext$4.run(LoginContext.java:688) ~[?:1.7.0_71]
     at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_71]
     at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:687) ~[?:1.7.0_71]
     at javax.security.auth.login.LoginContext.login(LoginContext.java:595) ~[?:1.7.0_71]
     at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:724) ~[hadoop-common-2.7.0-mapr-1509.jar:?]
     at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:688) ~[hadoop-common-2.7.0-mapr-1509.jar:?]
     at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:572) ~[hadoop-common-2.7.0-mapr-1509.jar:?]
     at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2848) ~[hadoop-common-2.7.0-mapr-1509.jar:?]
     at org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2838) ~[hadoop-common-2.7.0-mapr-1509.jar:?]
     at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2704) ~[hadoop-common-2.7.0-mapr-1509.jar:?]
     at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:407) ~[hadoop-common-2.7.0-mapr-1509.jar:?]


Outcomes