OK, it was working. 
I printed System.getenv(..) for both env variables  and they gave  correct
values.

However it  did not give me the intended result. My intention was to load a
native library from LD_LIBRARY_PATH, but looks like the library is loaded
from value of -Djava.library.path. 

Value of this property is coming as
"-Djava.library.path=/opt/cloudera/parcels/CDH-5.0.0-0.cdh5b2.p0.27/lib/spark/lib:/opt/cloudera/parcels/CDH-5.0.0-0.cdh5b2.p0.27/lib/hadoop/lib/native"

Any idea how to append my custom path to it programatically? 



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/How-to-set-environment-variable-for-a-spark-job-tp3180p3249.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

Reply via email to