Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

unable to read file present in hbase classpath

Explorer

I'm using cdp-pvc base cluster on aws. I have distributed a properties file(abc.properties) in /opt/ on all the nodes of the cluster. I've added the HBASE_CLASSPATH in safety valve, where I provided the path for properties file.

sandipkumar_0-1670937786829.png

 


I've created a jar for hbase operations. When I try to read the properties file with the following code.

inputStream = CLASS.class.getClassLoader().getResourceAsStream("abc.properties");

 The Hmaster is not getting healthy and I get inputstream as null in the strerr file.

Please let me know, if anything else is required to make it available in classpath.
 

0 REPLIES 0
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.