代码改变世界

随笔分类 -  hive

hive内部表与外部表区别

2016-02-24 11:33 by Mandylover, 15236 阅读, 收藏,
摘要: 1.在Hive里面创建一个表: hive> create table wyp(id int, > name string, > age int, > tele string) > ROW FORMAT DELIMITED > FIELDS TERMINATED BY '\t' > STORED AS 阅读全文

hive的使用和深化理解

2016-02-23 17:32 by Mandylover, 343 阅读, 收藏,
摘要: 1.hive中的数据最终是存放在hdfs上的 2.hive本身不是关系型数据库,hive执行sql语句时会把sql语句翻译成mapreduce程序,然后将mapreduce程序提交到hadoop集群中去执行mapreduce程序 3.bin目录下启动hive:./hive后 hive> 接下来导入数 阅读全文

hive的安装步骤

2016-01-12 19:47 by Mandylover, 301 阅读, 收藏,
摘要: 在node2里安装一下hive1.2.1,步骤如下: 1.解压hive的安装包 2.改变目录:mv apache-hive-1.2.1-bin /home/install/hive-1.2 3.vi ~/.bash_profile 进行环境变量的配置: source ~/.bash_profile 阅读全文