protected final void installShutdownHook() {
    ShutdownHook.install(conf, dataFs, this, Thread.currentThread());
    isShutdownHookInstalled = true;
  }
In order to register ShutdownHook, this method is called when HMaster and HRegionServer are
started. For details, please refer to HBASE-26951
hbase-server/src/main/java/org/apache/hadoop/hbase/HBaseServerBase.java