0

我有一些插入语句要在 Hive 中运行。我打算将它们放在 .hql 文件中并通过 beeline -f 选项运行它。有没有办法可以在插入之间回显一些日志消息,以便我知道进度。喜欢 :

echo "开始插入......" insert1

echo "插入 1 完成"

插入2

echo "插入脚本完成"

我尝试使用 linux shell 命令 echo as !echo "" 来放置 echo 语句

但它没有将 echo 识别为命令

4

2 回答 2

0
set msg = "Starting Insert";
set msg;

insert into .... ;

set msg = "Insert complete";
set msg;
于 2017-03-29T02:36:16.697 回答
0

!sh 回声...


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

insert ...

!sh echo "Insert 1 complete"

insert ...

!sh echo "Insert script is complete"
于 2017-03-29T05:21:13.523 回答