public boolean isRunningCmd(ZooKeeper zk) {

		List<String> hostnameNotOk = new ArrayList<String>();

		for (int i = 0; i < retryTimesInline; ++i) {
			List<String> hostnameList = getZkHostNameList(zk);
			if (hostnameList == null
					|| hostnameList.size() < hostNameTaskAll.size()) {
				try {
					Thread.sleep(timeoutInline);
					setErrorReason("Retry times...[5s] : " + i
							+ "Work HostName is not enough");

					MonkeyOut.info(getClass(), getErrorReason());
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
				continue;
			}

			hostnameNotOk.clear();
			for (String s : hostNameTaskAll) {
				if (!hostnameList.contains(s)) {
					hostnameNotOk.add(s);
				}
			}

			if (hostnameNotOk.size() > 0) {
				try {
					Thread.sleep(timeoutInline);
					setErrorReason("Retry times...[5s] : " + i
							+ " Not Working: " + hostnameNotOk);
					MonkeyOut.info(getClass(), getErrorReason());
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
				continue;
			}

			return true;
		}
		return false;
	}