用xshell连接hive库,sql查询结果显示不全怎么处理,使字段显示全部内容。
1、写个shell脚本:
#!/bin/sh#数据库连接hive -e " use test; select * from test where year=2017 and month=2 and day=23 limit 1;" > 2008_2017-2-23.log
2、执行这个脚本,查看日志,即可。