I am facing an issue where getResourceAsStream is returning Null when trying to read a conf file due to which I am unable to read the conf file. I have gone through few details but still nothing has worked so far:
Below is the project structure. I have added the metastore.conf in the resource folder of the source root
I am using the below code:
val fileStream = getClass.getResourceAsStream("metastore.conf")
val configLines = Source.fromInputStream(fileStream).getLines
Image for my project structure: