Hi *,

I am trying to set up an OnOutOfMemory kill on hive-env.sh so that JVM
should shutdown on OOM error in Hive Metastore.

Code is :

if [ "$SERVICE" = "metastore" ]; then
  export HADOOP_OPTS="$HADOOP_OPTS -XX:OnOutOfMemoryError=\"kill -9 %p\" "
fi


On starting Hive Metastore is, I am getting,


h...@hadoopdev7.mlan:~> hive --service metastore
Unrecognized option: -9
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unable to determine Hadoop version information.
'hadoop version' returned:
Unrecognized option: -9
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.



Any ideas?





-- 

Regards,
Akash Mishra.


"It's not our abilities that make us, but our decisions."--Albus Dumbledore

Reply via email to