Menu
  • HOME
  • TAGS

Hbase on a VM: Can not access zookeeper after coming out of sleep on a laptop

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.

Pausing program until next startup

java,hibernation

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...

Hibernate Win7 via VBA [Excel]?

excel-vba,hibernation

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...