How to reference external class to render framework application?

I have a small framework app that will create a spark session with an option enableHiveSupport()

, so I need to pass the config file hive-site.xml

to the app

In eclipse I can pass the hive-site.xml config file by selecting . Build Path -> Configure Build Path -> Add External Class Folder

In playback mode:

I don't know how to achieve this case in a game framework.

Note:

I tried to add the file hive-site.xml

to conf / folder, lib folder , etc. Nothing works.

+3


source to share


1 answer


Place it in some directory under your project (like dir-with-hive) and then in sbt, you should write:

resourceDirectory in Compile := baseDirectory.value / "dir-with-hive"

      



it will add "dir-with-hive" and everything in it to jar and classpath at runtime

-1


source







All Articles