AnsweredAssumed Answered

Running MapR PACC With Secure Cluster

Question asked by PETER.EDIKE on Jul 6, 2018
Latest reply on Jul 17, 2018 by PETER.EDIKE

Hello Everyone,


I am presently trying to understand how to deploy an application running off the MapR PACC to use a MapR Secure Cluster. I have read the followoing documentation:

Generating a Service Ticket  and Security Considerations for the MapR PACC 

What I did like to know is If I am going to run a maprlogin command when the containers starts up or the command will be run automatically for me if the relevant environment variables exist


I am asking the above question because I have built a simple java program that connects to MapR DB and reads some random data. I packaged and deployed it to docker towards running with the following environment variables 










But when the application starts up, An attempt to to connect to the database fails with the following exception


Caused by: Unable to obtain MapR credentials
at ~[maprfs-6.0.1-mapr.jar!/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_151]
at sun.reflect.NativeMethodAccessorImpl.invoke( ~[na:1.8.0_151]
at sun.reflect.DelegatingMethodAccessorImpl.invoke( ~[na:1.8.0_151]
at java.lang.reflect.Method.invoke( ~[na:1.8.0_151]
at ~[na:1.8.0_151]
at$000( ~[na:1.8.0_151]
at$ ~[na:1.8.0_151]
at$ ~[na:1.8.0_151]
at Method) ~[na:1.8.0_151]
at ~[na:1.8.0_151]
at ~[na:1.8.0_151]
at ~[hadoop-common-2.7.0-mapr-1803.jar!/:na]
... 67 common frames omitted
Caused by: com.mapr.login.MapRLoginException: Failed to find ticket for cluster '', error =
at com.mapr.login.client.MapRLoginHttpsClient.doesSecurityHaveGoodKey( ~[maprfs-6.0.1-mapr.jar!/:na]
at com.mapr.login.client.MapRLoginHttpsClient.authenticateIfNeeded( ~[maprfs-6.0.1-mapr.jar!/:na]
at com.mapr.login.client.MapRLoginHttpsClient.authenticateIfNeeded( ~[maprfs-6.0.1-mapr.jar!/:na]
at ~[maprfs-6.0.1-mapr.jar!/:na]
... 79 common frames omitted

The same code used to work when the cluster was unsecure


Kind Regards