Added spark local ip variable.