- 第一部分:软件准备与环境规划
Hadoop环境介绍
?Hadoop安装路径
?/usr/local/hadoop
Hive环境规划
?Hive安装路径
?/usr/local/hive
?Hive数据存放路径
?hdfs
?/user/hive/warehouse
?Hive元数据
?第三方数据库
?derby mysql
软件准备
?OS
?ubuntu
?JDK
?java 1.6.0_27
?Hadoop
?hadoop-1.0.0.tar
?Hive
?hive-0.8.1.tar
?
- 第二部分:Hive项目介绍
项目结构
?
Hive配置文件介绍
?
?hive-site.xml????? hive的配置文件
?hive-env.sh??????? hive的运行环境文件
?hive-default.xml.template? 默认模板
?hive-env.sh.template???? hive-env.sh默认配置
?hive-exec-log4j.properties.template?? exec默认配置
??hive-log4j.properties.template log默认配置
hive-site.xml
< property> <name>javax.jdo.option.ConnectionURL</name> <value>jdbc:mysql://localhost:3306/hive?createData baseIfNotExist=true</value> <description>JDBC connect string for a JDBC metastore</description> </property> <property> <name>javax.jdo.option.ConnectionDriverName</name> <value>com.mysql.jdbc.Driver</value> <description>Driver class name for a JDBC metastore</description> </property> <property> <name>javax.jdo.option.ConnectionUserName</name> <value>root</value> <description>username to use against metastore database</description> </property> <property> <name>javax.jdo.option.ConnectionPassword</name> <value>test</value> <description>password to use against metastore database</description> </property>?
hive-env.sh
?配置Hive的配置文件路径
?export HIVE_CONF_DIR= your path
?配置Hadoop的安装路径
?HADOOP_HOME=your hadoop home <