Package org.apache.sentry.provider.db.tools.SentrySchemaHelper

Examples of org.apache.sentry.provider.db.tools.SentrySchemaHelper.NestedScriptParser


    return sb.toString();
  }

  // run beeline on the given sentry store scrip, flatten the nested scripts into single file
  private void runBeeLine(String scriptDir, String scriptFile) throws IOException {
    NestedScriptParser dbCommandParser =
        SentrySchemaHelper.getDbCommandParser(dbType);
    dbCommandParser.setDbOpts(getDbOpts());
    // expand the nested script
    String sqlCommands = buildCommand(dbCommandParser, scriptDir, scriptFile);
    File tmpFile = File.createTempFile("schematool", ".sql");
    tmpFile.deleteOnExit();
View Full Code Here

TOP

Related Classes of org.apache.sentry.provider.db.tools.SentrySchemaHelper.NestedScriptParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.