first version, support hive and shark query engine