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 e.g.
System.setProperties("javax.security.auth.useSubjectCredsOnly","false");
System.setProperty("java.security.krb5.conf","D:\\host\\workspace\\projectname\\src\\main\\resources\\krb5.conf");
However when we deploy in PCF it is unable to read those file which are set as system properties.
Question
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 ?
相关问题
- Dependency injection into Logback Appenders with S
- Deserialize duplicate keys to list using Jackson
- How can I access the repository from the entity in
- Prevent Swagger from automatically adding some mod
- Creating Unknown Number of Beans With Configuratio
相关文章
- How to load @Configuration classes from separate J
- Using Spring Dynamic Languages Support from Groovy
- Spring JMS : Set ErrorHandler for @JmsListener ann
- Securing REST endpoint using spring security
- Listening to successful login with Spring Security
- ModelMapper: Choose mapping based on Child class
- How is SecurityContextLogoutHandler's clearAut
- Configure Spring for CORS
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