在Hive.hql文件中记录消息

在Hive.hql文件中记录消息,hive,hiveql,beeline,Hive,Hiveql,Beeline,我有一些insert语句要在配置单元中运行。我计划将它们放在.hql文件中,并通过beeline-f选项运行它。是否有一种方法可以在插入之间回显一些日志消息,以便了解进度。比如: 回显“开始插入……” 插入1 回显“插入1完成” 插入2 echo“插入脚本已完成” 我尝试使用linux shell命令echo作为 !回声“” 但它不能将echo识别为命令!上海回声 set msg = "Starting Insert"; set msg; insert into .... ; set msg

我有一些insert语句要在配置单元中运行。我计划将它们放在.hql文件中,并通过beeline-f选项运行它。是否有一种方法可以在插入之间回显一些日志消息,以便了解进度。比如:

回显“开始插入……” 插入1

回显“插入1完成”

插入2

echo“插入脚本已完成”

我尝试使用linux shell命令echo作为 !回声“”

但它不能将echo识别为命令!上海回声

set msg = "Starting Insert";
set msg;

insert into .... ;

set msg = "Insert complete";
set msg;

!sh echo "Starting the inserts ........."      

insert ...

!sh echo "Insert 1 complete"

insert ...

!sh echo "Insert script is complete"