def run_hive_script(script):
    if not os.path.isfile(script):
        raise RuntimeError("Hive script: {0} does not exist.".format(script))
    return run_hive(['-f', script])
Runs the contents of the given script in hive and returns stdout.
dataset/ETHPy150Open spotify/luigi/luigi/contrib/hive.py/run_hive_script