Some properties can be set in System.setProperty(). Like the -Dfile.encoding, can be set as ("file.encoding", "utf-8"). but some cannot, like the heap size, as it is too late to set the heap size. And in the new 0.9 version, I think you can use sparkconf.set() instead of System.setProperty(). It seems the same.


Best Regards,
Chen Jingci

On Thu, Mar 13, 2014 at 1:22 AM, Linlin <> wrote:
Thank you!

I have set the jvm option in sbt for local mode, that works!

not sure how to specify it through System.setProperty(), this is jvm command
line option only?

Thank you for your help!

View this message in context:
Sent from the Apache Spark User List mailing list archive at