天天看點

hive-0.10.0-cdh4.3.0安裝

1.我使用的Hadoop2.0-cdh4.3.0,對應hive配套版本hive-0.10.0-cdh4.3.0。

2.修改hive/conf下hive-site.xml檔案,無則建立hive-site.xml,在底部添加如下内容: 

[html] 

<?xml version="1.0" encoding="UTF-8"?>  

<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>  

<configuration>  

<property>     

  <name>hive.querylog.location</name>     

  <value>/hadoop/hive/logs</value>     

</property>     

<property>    

  <name>hive.aux.jars.path</name>     

  <value>file:///usr/hadoop/hive-0.10.0-cdh4.3.0/lib/hive-hbase-handler-0.10.0-cdh4.3.0.jar,file:///usr/hadoop/hive-0.10.0-cdh4.3.0/lib/hbase-0.94.6-cdh4.3.0.jar,file:///usr/hadoop/hive-0.10.0-cdh4.3.0/lib/zookeeper-3.4.3-cdh4.3.0.jar</value>  

</property>    

</configuration>  

3.啟動hive叢集正常情況結果如下:

[root@master bin]# hive -hiveconf hbase.zookeeper.quorum=slave1  

Logging initialized using configuration in jar:file:/usr/hadoop/hive-0.10.0-cdh4.3.0/lib/hive-common-0.10.0-cdh4.3.0.jar!/hive-log4j.properties  

Hive history file=/hadoop/hive/logs/hive_job_log_5cb84500-a21f-43c8-adb7-05ed6031ad25_1332797293.txt  

hive> 

繼續閱讀