Description
When I tried to use graceful rolling restart, I got:
Unloading hor8n00.gq1.ygridcore.net region(s) Exception in thread "main" java.lang.NoClassDefFoundError: {-XX:OnOutOfMemoryError=kill -9 %p Caused by: java.lang.ClassNotFoundException: {-XX:OnOutOfMemoryError=kill -9 %p at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: {-XX:OnOutOfMemoryError=kill -9 %p. Program will exit.
It turns out that there is extra
{ in bin/hbase: {code}if [ "${HBASE_NOEXEC}" != "" ]; then
"$JAVA" -Dproc_$COMMAND {-XX:OnOutOfMemoryError="kill -9 %p" $JAVA_HEAP_MAX $HBASE_OPTS -classpath "$CLASSPATH" $CLASS "$@"