hive-dev-box icon indicating copy to clipboard operation
hive-dev-box copied to clipboard

JAVA_HOME is hard coded

Open belugabehr opened this issue 5 years ago • 4 comments

https://github.com/kgyrtkirk/hive-dev-box/blob/5c6f22e2d9329c17f7fde4dc2a1ad32f7beff11b/tools/install_conf#L86

I'm not sure that this will work when using alternatives to swap between Java versions. Maven will respect JAVA_HOME above all else.

belugabehr avatar Jul 28 '20 17:07 belugabehr

@kgyrtkirk Still stuck on this effort. Do you have any cycles to take a look so I can be unblocked on this? Thanks!

belugabehr avatar Jul 31 '20 13:07 belugabehr

you could have exported the right JAVA_HOME; i've added a commit - but you will still need to load the new env

kgyrtkirk avatar Jul 31 '20 13:07 kgyrtkirk

@kgyrtkirk Thanks. Sorry, can you please provide me the steps for enabling JDK 11? What do I need to do to use this new commit and where do I put it? Thanks!

belugabehr avatar Jul 31 '20 14:07 belugabehr

it should be already available; use:

sw java 11
. /etc/profile.d/java.sh

kgyrtkirk avatar Jul 31 '20 14:07 kgyrtkirk