protected String getServiceUser(ServiceType service) {
    Configuration conf = getConf();
    switch (service) {
      case HADOOP_DATANODE:
      case HADOOP_NAMENODE:
        return conf.get("hbase.it.clustermanager.hadoop.hdfs.user", "hdfs");
      case ZOOKEEPER_SERVER:
        return conf.get("hbase.it.clustermanager.zookeeper.user", "zookeeper");
      default:
        return conf.get("hbase.it.clustermanager.hbase.user", "hbase");
    }
  }
The command format that is used to execute the remote command with sudo. Arguments: 1 SSH
options, 2 user name , 3 "@" if username is set, 4 host, 5 original command, 6 timeout.
hbase-it/src/test/java/org/apache/hadoop/hbase/HBaseClusterManager.java