-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 23/03/12 04:47, Roman Shaposhnik wrote: >> Hi James, >>> >>> The use of /usr/lib/jvm/default-java works as long as the >>> JAVA_HOME is set. Only tried on Unbuntu though. I also tried >>> OpenJDK 6 in addition to Sun JDK 6. Installing OpenJDK 6 is >>> much easier (no need to wget/tar/change defaults). I will >>> probably file a bug in Hbase, as its jvm detection code >>> doesn't include /usr/lib/jvm/default-java, along with many >>> others that bigtop's detection did as Bruno pointed out >>> earlier. >>> >>> I tried /etc/init.d/hbase-master start with JAVA_HOME set in >>> /etc/default/bigtop-utils. It doesn't seem to work. I added env >>> cmd to the start up script, it cannot find JAVA_HOME (see >>> below). Maybe I am using the wrong command here to start the >>> services? Can you point me how startup scripts make use of >>> /etc/default/bigtop-tuils? > This is really weird and concerning. Can you try adding set -x > right on the second line after #!/bin/bash in both scripts > /etc/init.d/hbase-master and /usr/lib/hbase/bin/hbase and then post > the output?
I think this is a bug - the hbase init script does not use bigtop-detect-java like the hadoop one does. It needs a: # Autodetect JAVA_HOME if not defined if [ -e /usr/libexec/bigtop-detect-javahome ]; then . /usr/libexec/bigtop-detect-javahome elif [ -e /usr/lib/bigtop-utils/bigtop-detect-javahome ]; then . /usr/lib/bigtop-utils/bigtop-detect-javahome fi Block upfront. - -- James Page Software Engineer, Ubuntu Server Team -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCAAGBQJPbENdAAoJEL/srsug59jD4FkP/2PN5DR6wIWFyQa4kBDmp/+z 9eIQUXiH5JhL45HLwqenH6gQSlbVUtAvTpkIXOyPONYDYIlgaPNNzvMOrz/CCzQb Ri2TMC8RvpbcX4AXoex6TF75EBoflxrRgL+5rDABiZ4Lmfey1+Fml63xjRNomaR1 uzOZaHc1wfM6ghWKygqqKvm0kOO1meF52ES8+8Gb+BHSyYfVluGEwWaQ97mxsHCt nSMU/5rm12MgjQx1Spfzw3OkbCk6RuTRtJHYam+4Z/6LQiUfFgHw1XPwm6rMhFGA oN2j45gP0QTq5h/JWD//i6d6OPUf+UeyG30WtdncGBTKgyNg7myPHI4bzvSAckx8 83nzltxqCiYSCetMuGUXEWKG0qRjUpINZOnhAWnQliVh3j8slvMFDNEnbnLOnBWV tJ4jXA1K9P9mFb777tClVrC4MNmqLTX9txYTiFkC+W1M/EuqZJLs+cG6Su8OemyL 8lX+HTzjnpkgU9gwWTxhZtNQS+sz0Om0hKL0Wkm0/awLMxleUohTPem62+C3Ahnh Ei8AlGRqQV04bg5N+q2T3OBQxp2DlHaoHaBmNKCpZVcXZT70YhCs1+9oaIOh0R5f RPD1g3OC340zUAd1zmQ8A5VBoh1M51RaUbfrEem5WZI/dXCCTzHt0s7kcStxwrZC s6ILc327zEzm2jOrJpOx =63NL -----END PGP SIGNATURE-----
