博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
.hivehistory
阅读量:4544 次
发布时间:2019-06-08

本文共 500 字,大约阅读时间需要 1 分钟。

在当前用户的家目录下有个.hivestory文件,里面存放了用户执行的hive操作记录,如下:
 
  1. [hadoop@hadoop1 hive-0.14]$ cat ~/.hivehistory
  2. show databases;
  3. quit
  4. ;
  5. quit;
  6. create table pokes(foo int, bar string);
  7. load data local inpath 'examples/files/kv1.txt' into table pokes
  8. ;
  9. show tables;
  10. show databases;
  11. use default
  12. ;
  13. show tables;
  14. select * from pokes
  15. ;
  16. select count(*) from pokes;
  17. select * from pokes where foo=86
  18. ;
  19. select bar from pokes where foo=86;
  20. select bar from pokes where foo=238;

转载于:https://www.cnblogs.com/lishouguang/p/4560587.html

你可能感兴趣的文章
关于AutoCAD 2014的securityload…
查看>>
BM和KMP字符串匹配算法学习
查看>>
常用基本命令四(用户管理命令) - 黑猴子
查看>>
项目管理知识1
查看>>
在window环境下安装Python中的pip
查看>>
A大龙插件官方群3:621816328
查看>>
oi再见,你好明天。
查看>>
2018 Multi-University Training Contest 1 - D Distinct Values (STL+双指针)
查看>>
js学习笔记一-语法结构
查看>>
键盘对应的键值
查看>>
goLang 纳秒转 毫秒 转 英文时间格式
查看>>
微信小程序的坑坑
查看>>
图片轮播(Jquery)
查看>>
hdu 1704 Rank(floyd传递闭包)
查看>>
Educational Codeforces Round 27 G. Shortest Path Problem?(Guass异或线性基)
查看>>
【BZOJ3622】已经没有什么好害怕的了(动态规划+广义容斥)
查看>>
HDOJ 1023 Train Problem II
查看>>
途牛订单的服务化演进
查看>>
软件工程之四则运算
查看>>
ABAP 根据权限显示或隐藏状态栏的按钮
查看>>