---
title: "hbase-how to know which regionservers are stuck when shutdown a cluster"
author: "leibnitz"
date: "2014-10-22T15:09:42Z"
tags: []
categories: ["编程语言"]
slug: "hbase-how-to-know-which-regionservers-are-stuck-when-shutdown-a-cluster"
draft: false
lastmod: "2014-10-22T15:09:42Z"
id: 2146486
url: "https://leibnitz.iteye.com/blog/2146486"
---

u know,when u shutdowning a hbase cluster,sometimes it costs very long time to complete.and now how to fiind what regionservers are kept on alive is simple and directly by following these steps:

  

```
1.run shutdown shell stop-hbase.sh
2.issue zk-client zkCli.sh
3.run command 'ls /hbase/rs'

then u can see some unnormal RSs are lied there,so u can goto that and check the logs
```

 

**some clues**

  for a online cluster,it is always to avoid causing too long time to complete shutdowning,as this will lead the clients cost much time to get responses,so u can :

  1.flush all the regions in this cluster

  2.shutdown

   this will decrease reasonablely the shutdown time then use 'shutdwon without flushing previously'