@Override
  void execute() throws HiveMetaException {
    schemaTool.testConnectionToMetastore();

    System.out.println("Starting creation of logs table");

    File scriptFile = generateLogsTableScript();

    String initScriptDir = scriptFile.getParent();
    String initScriptFile = scriptFile.getName();

    try {
      System.out.println("Initialization script " + initScriptFile);
      if (!schemaTool.isDryRun()) {
        schemaTool.execSql(initScriptDir, initScriptFile);
        System.out.println("Initialization script completed");
      }
    } catch (IOException e) {
      throw new HiveMetaException("Logs table creation FAILED!", e);
    }
  }
Path of the warehouse/compute logs directory.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/tools/schematool/SchemaToolTaskCreateLogsTable.java