1、首先打开 hive DEBUG日志,执行以下命令,直接将日志输出到控制台

hive --hiveconf hive.root.logger=DEBUG,console