简体   繁体   中英

Spring Boot Micro-service fails Kerberos Authentication when deployed on Pivotal Cloud Foundry Platform

We have developed a Spring Boot Application to query data from Hbase on HDP 2.5.
The application works fine when we run it on our local windows machines as it is able to find the jaas.conf & krb5.conf file which have been kept under resources folder of the application and we have provided them as system properties in our code as eg


However when we deploy in PCF it is unable to read those file which are set as system properties.


What is the way to set environment variables in PCF ?
How do we place files in PCF so that they are available to the classpath of an application ?

You can specify an environment variable in your deployment manifest file. Here are the details .

This is assuming your jar file was packaged with krb5.conf file.

The other option is to use Config Server. Here is an introduction on Spring Cloud Config

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM