Hadoop Can't Find Java

B

bluethundr

Guest
Hello

I am trying to get hadoop/hbase running on my MacBook pro. When I run the startup scripts as the hadoop user which I added it seems to look for Java here:

Code:
/System/Library/Frameworks/JavaVM.framework/Versions/Current/bin/java

My Java_Home is set here:

Code:
bash-3.2# echo $JAVA_HOME
/System/Library/Frameworks/JavaVM.framework/Versions/Current

These are the contents of my Current directory:

Code:
drwxr-xr-x   8 root  wheel     272 Sep 12 17:27 .
drwxr-xr-x  12 root  wheel     408 Sep 30 18:46 ..
lrwxr-xr-x   1 root  wheel      28 Sep 12 17:27 CodeResources -> _CodeSignature/CodeResources
drwxr-xr-x  37 root  wheel    1258 Jul 20 19:36 Commands
drwxr-xr-x   4 root  wheel     136 Jul 20 19:28 Frameworks
-rwxr-xr-x   1 root  wheel  191840 Jul 20 19:28 JavaVM
drwxr-xr-x  33 root  wheel    1122 Sep 12 17:27 Resources
drwxr-xr-x   3 root  wheel     102 Jul 20 19:28 _CodeSignature

The problem seems to be that Hadoop is looking for the JVM to be called 'java' in the 'bin' subdir of Current. But on my Mac it seems to be called 'JavaVM' and living on the root of Current. How do I tell hadoop the correct name of my JVM? I am on Snow Leopard 10.6.1
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top