码迷,mamicode.com
首页 > 其他好文 > 详细

.hivehistory

时间:2015-06-08 13:19:32      阅读:290      评论:0      收藏:0      [点我收藏+]

标签:

在当前用户的家目录下有个.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;







.hivehistory

标签:

原文地址:http://www.cnblogs.com/lishouguang/p/4560587.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!