java - how can i use my executable_jar on ubuntu -


i have created spark application on eclipse used maven build , package it, because os windows, had add line code able run on windows:

system.setproperty("hadoop.home.dir", "c:\\hadoop\\"); 

but , because want access cluster, have use ubuntu, , want use jar, know that line cause error because path doesn't exist on ubuntu, ask suggestion fix easily.

while running jar can specify properties

java -dhadoop.home.dir=/var/hadoop -jar spark.jar  

for may have remove line , can give hadoop home on run time


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -