设置JAVA_HOME的时候遇到
➜ hbase-1.4.8 bin/start-hbase.sh
Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java...
running master, logging to /Users/cengchaoqin/Service/hbase-1.4.8/bin/../logs/hbase-cengchaoqin-master-localhost.out
Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java...
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
解决:
命令 /usr/libexec/java_home 后面使用-V选项列出所有版本的JAVA_HOME
➜ bin /usr/libexec/java_home -V
Matching Java Virtual Machines (1):
1.8.0_162, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home
把/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home 写在JAVA_HOME的位置。
➜ hbase-1.4.8 bin/start-hbase.sh
running master, logging to /Users/c/Service/hbase-1.4.8/bin/../logs/hbase-cengchaoqin-master-localhost.out
成功🙆
网友评论