hbase,virtual-machine,zookeeper,hibernation
Looks like I will just need to live with this. The fastest workaround is to restart zookeeper. That is actually not so bad - at least not as painful as restarting all of HBase.
You asked three things here. 1- How can I check when the OS goes reboot/shutdown Solution: You can make an empty invisible window, and add WindowListener to it. It will receive windowClosing event on windows. You can find an example HERE 2- How can I save the state of my...
I've just successfully hibernated my comp. Here is the magnificent code: Option Explicit Declare Function SetSuspendState Lib "powrprof.dll" _ (ByVal Hibernate As Boolean, ByVal ForceCritical As Boolean, ByVal DisableWakeEvent As Boolean) As Boolean Sub Yoo() Dim value_hibernate As Integer value_hibernate = SetSuspendState(True, False, False) If value_hibernate <> 1 Then MsgBox...