spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arun Lists <>
Subject Reading resource files in a Spark application
Date Wed, 14 Jan 2015 02:35:59 GMT
In some classes, I initialize some values from resource files using the
following snippet:

new File(cls.getResource(fileName).toURI)

This works fine in SBT. When I run it using spark-submit, I get a
bunch of errors because the classes cannot be initialized. What can I
do to make such initialization that is Spark friendly?


View raw message