def METHOD_NAME(self):
    """
    Create mandatory directories and install files from given templates
    using the drivers context before starting zookeeper.
    """
    super(ZookeeperStandalone, self).METHOD_NAME()
    self.zkdata_path = os.path.join(self.runpath, "zkdata")
    self.zklog_path = os.path.join(self.runpath, "zklog")
    self.etc_path = os.path.join(self.runpath, "etc")
    self.env["ZOO_LOG_DIR"] = self.zklog_path
    for directory in (self.zkdata_path, self.zklog_path, self.etc_path):
        if self.cfg.path_cleanup is False:
            makedirs(directory)
        else:
            makeemptydirs(directory)
    self.config = os.path.join(self.runpath, "etc", "zookeeper.cfg")
    self._host = self._host or socket.getfqdn()
    if self._port == 0:
        raise RuntimeError("Zookeeper doesn't support random port")
    instantiate(self.cfg.cfg_template, self.context_input(), self.config)