Tech Tips

  1. プログラミング
  2. 175 view

[Hadoop][Hive]EC2上のUbuntu12.04にインストールしてみる

Hiveをインストールしてみる。
とりあえず、動くところまで。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[hadoop@hadoop server]
$wget http://ftp.tsukuba.wide.ad.jp/software/apache/hive/stable/hive-0.10.0.tar.gz
$tar xvf hive-0.10.0.tar.gz
$exit
 
[ubuntu@hadoop server]
$sudo mv /home/hadoop/hive-0.10.0 /usr/local/hive
$sudo chown -R hadoop:hadoop /usr/local/hive
$sudo su - hadoop
 
[hadoop@hadoop server]
$vim .bashrc
export HIVE_HOME=/usr/local/hive
export PATH=$PATH:$HIVE_HOME/bin
$source .bashrc
$mkdir /usr/local/hive/logs
$cp /usr/local/hive/conf/hive-log4j.properties.template /usr/local/hive/conf/log4j.properties
$vim /usr/local/hive/conf/log4j.properties
hive.log.file=hive.log
 
---->
#hive.log.file=hive.log
hive.log.dir=/usr/local/hive/logs/
$cp /usr/local/hive/conf/hive-env.sh.template /usr/local/hive/conf/hive-env.sh
$chmod 755 /usr/local/hive/conf/hive-env.sh
$cp /usr/local/hive/conf/hive-exec-log4j.properties.template /usr/local/hive/conf/hive-exec-log4j.properties
$cp /usr/local/hive/conf/hive-default.xml.template /usr/local/hive/conf/hive-site.xml
$vim /usr/local/hive/conf/hive-site.xml
 481     we are increasing the number of files possibly by a big margin. So, we      merge aggresively.
 482 </property>
---->
 481     we are increasing the number of files possibly by a big margin. So, we      merge aggresively.
 482   </description>
 483 </property>
 
 490     tables/partitions. It was added by MAPREDUCE-1501
 491 </property>
----->
 490     tables/partitions. It was added by MAPREDUCE-1501
 491   </description>
 492 </property>
 
 557     <partition-dir>/c1=1/c2=a/
 558     <partition-dir>/c1=2/c2=b/
 559     <partition-dir>/HIVE_DEFAULT_LIST_BUCKETING_DIR_NAME/HIVE_DEFAULT_LIST_BUCKETING_DIR_NAME/
 560     Note: This config won't impact users if they don't list bucketing.
---->
 557     <partition-dir>/c1=1/c2=a/</partition-dir>
 558     <partition-dir>/c1=2/c2=b/</partition-dir>
 559     <partition-dir>/HIVE_DEFAULT_LIST_BUCKETING_DIR_NAME/HIVE_DEFAULT_LIST_BUCKETING_DIR_NAME/</partition-dir>
 560     Note: This config won't impact users if they don't list bucketing.
$hive
WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files.
Logging initialized using configuration in jar:file:/usr/local/hive/lib/hive-common-0.10.0.jar!/hive-log4j.properties
Hive history file=/tmp/hadoop/hive_job_log_hadoop_201305311457_1645609290.txt
hive> show databases;
OK
default
Time taken: 5.689 seconds
なんとか動いた。
hive-default.xml.templateになんでこんな閉じタグミスが多いんだろう?

プログラミングの最近記事

  1. コマンドで C# コンソールアプリケーションを作成する方法

  2. PubSubClient の便利さと注意点

  3. Java の環境構築方法メモ

  4. PlatformIO IDE for VSCode を使用して VSCode で Ardu…

  5. ROS Docker イメージで発生した GPG error の解消方法

関連記事

PAGE TOP