Specify java home directory to initialize elastic search.

* Fix in sql scripts.