1.“-e”不进入hive的交互窗口执行sql语句$ bin/hive -e "select id from student;"2.“-f”执行脚本中sql语句 (1)在/opt/module/datas目录下创建hivef.sql文件[1.“-e”不进入hive的交互窗口执行sql语句$ bin/hive -e "select i
1.“-e”不进入hive的交互窗口执行sql语句$ bin/hive -e "select id from student;"2.“-f”执行脚本中sql语句 (1)在/opt/module/datas目录下创建hivef.sql文件[1.“-e”不进入hive的交互窗口执行sql语句$ bin/hive -e "select i