private void appendZooKeeperConf(List<String> newLines, File tmpDir) throws Exception {
    try (FileWriter f = new FileWriter(tmpDir.getAbsolutePath()+"/conf/zoo.cfg", true);
         BufferedWriter b = new BufferedWriter(f);
         PrintWriter p = new PrintWriter(b);) {

      p.println("");
      for(String line : newLines) {
        p.println(line);

      }
    }
  }
Update ZooKeeper config file with the provided lines

(unfortunately Accumulo Mini Cluster does not allow to customize the ZooKeeper config
or to add additional system properties for the JVM of ZooKeeper, so we have to append the
ZooKeeper config file directly)
itests/util/src/main/java/org/apache/hadoop/hive/accumulo/AccumuloTestSetup.java