private void initFromScript() throws IOException {
    File scriptFile = new File(this.initScript);
    if (!scriptFile.isFile()) {
      LOG.info("No init script detected. Skipping");
      return;
    }

    String initCommands = FileUtils.readFileToString(scriptFile, StandardCharsets.UTF_8);
    LOG.info("Initial setup (" + initScript + "):\n" + initCommands);

    try {
      cliDriver.processLine(initCommands);
      LOG.info("Result from cliDrriver.processLine in createSources=0");
    } catch (CommandProcessorException e) {
      Assert.fail("Failed during createSources processLine with code=" + e.getResponseCode());
    }
  }
Clear out any side effects of running tests
itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java