hive安装配置
来源:互联网 发布:硬座火车座位图片知乎 编辑:程序博客网 时间:2024/05/22 14:47
下载hive 0.13.1 解压
在etc/profile里配置环境变量
修改hive/conf下配置文件
#hive-site.xml<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="configuration.xsl"?><configuration> <property> <name>hive.metastore.warehouse.dir</name> <value>hdfs://101.200.200.114:9008/hive/warehouse</value>#hdfs下的目录 <description>location of default database for the warehouse</description> </property> #存放hive相关日志的目录 <property> <name>hive.querylog.location</name> <value>/usr/local/hadoop/apache-hive-0.13.1-bin/yj_data/log</value>#需要自己手动创建对应目录 <description> Location of Hive run time structured log file </description> </property> <!-- <property> <name>hive.metastore.uris</name> <value>10000</value> </property> --> <property> <name>javax.jdo.option.ConnectionURL</name> <value>jdbc:mysql://101.200.200.114:3306/db_hive</value> </property> <property> <name>javax.jdo.option.ConnectionDriverName</name> <value>com.mysql.jdbc.Driver</value> </property> <property> <name>javax.jdo.option.ConnectionUserName</name> <value>root</value> </property> <property> <name>javax.jdo.option.ConnectionPassword</name> <value>root</value> </property> </configuration>#hive-env.shexport HADOOP_HEAPSIZE=1024HADOOP_HOME=/usr/local/hadoop/hadoop-1.2.1export HIVE_CONF_DIR=/usr/local/hadoop/apache-hive-0.13.1-bin/confexport HIVE_AUX_JARS_PATH=/usr/local/hadoop/apache-hive-0.13.1-bin/librz mysql驱动到hive/lib下
创建表
create table cite(citing INT, cited INT) row format delimited fields terminated by ',' stored as textfile;
show tables;
describe cite;
下载数据http://www.nber.org/patents/
导入数据
load data local inpath '/home/xuqiang/hadoop/data/cite75_99.txt'
> overwrite into table cite;
select * from cite limit 10;
select count(1) from cite;
drop table cite;
0 0
- hive安装与配置
- hive安装配置
- Hive安装配置详细
- pig hive 安装配置
- Hadoop&hive安装配置
- Hive安装配置
- Hive安装配置
- hive 安装与配置
- hive安装及配置
- Hive 安装及配置
- hive集群安装配置
- Hive安装配置笔记
- hive 安装配置
- hive安装配置
- hadoop-hive安装配置
- Hive安装及配置
- Hive安装与配置
- hive 安装和配置
- java中的运算符
- 【leetcode】Median of Two Sorted Arrays
- iOS tableViewCell 点击后没有任何变化
- 剑指offer:正则表达式匹配
- LeetCode--54. Spiral Matrix
- hive安装配置
- 1879: 蛤玮买好了礼物 郑轻第八届程序设计大赛
- Java中弱引用、软引用、虚引用及强引用的区别
- nil,Nil,NULL的区别
- 怎么添加项目到SVN上面
- Android客户端发送Get和Post请求
- IOS开发通知与消息机制
- Leetcode 65. Valid Number
- hadoop之sequenceFile