3、Hive基础

常用交互命令 -e 不进入hive的交互窗口执行sql语句 hive -e "select * from student;" -f 执行脚本中的sql语句 (1). 创建hive.sql文件 文件中正确输入sql语句 select * from student; (2). 执行文件中的sql语句 hive -f hive.sql (3). 将执行的结果追加到文件中 hive -f hive.sql
相关文章
相关标签/搜索