The code for a scheduled task to run hive queries and execute and sql to load them.