hive java 实例
下载 jdo2-api-2.3-ec hive hdfs 所需jar http://download.csdn.net/download/knight_black_bob/9725194 常见命令 hive 常见命令 create table test(uid string,name string)row format delimited fields terminated by '/t' 见表语句 desc formatted test; 表的约束 desc test; 表的约束 LOAD DATA local INPATH '/root/test3.log' OVERWRITE INTO TABLE test; 本地文件添加数据到hive LOAD DATA INPATH '/user/hadoop/test5.log' OVERWRITE INTO TABLE test; hdfs 添加数据到hive select * from test; 查询数据 select count(1) from test; 做mapreduce操作运算需要 hadoop 权限 hdfs 常见命令 ...