Support Questions

Find answers, ask questions, and share your expertise
Announcements
Welcome to the upgraded Community! Read this blog to see What’s New!

unable to read file present in hbase classpath

avatar
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
Labels