[hadoop@hadoop1 hive-0.14]$ cat ~/.hivehistoryshow databases;quit;quit;create table pokes(foo int, bar string);load data local inpath ‘examples/files/kv1.txt‘ into table pokes;show tables;show databases;use default;show tables;select * from pokes;select count(*) from pokes;select * from pokes where foo=86;select bar from pokes where foo=86;select bar from pokes where foo=238;
原文:http://www.cnblogs.com/lishouguang/p/4560587.html