def _get_hive_warehouse_dir(hive_cursor):
    """Return the directory path used by default to store databases in Hive."""
    hive_cursor.execute("SET hive.metastore.warehouse.dir")
    return hive_cursor.fetchone()[0].split('=')[1]