Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of embedded Mode in Hive installation

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the example analysis of embedded mode in Hive installation, which is very detailed and has certain reference value. Friends who are interested must read it!

Upload hive-0.11.0.tar.gz and mysql

[root@master installer] # mv hive-0.11.0.tar.gz / home/hadoop/installer/

[root@master installer] # chown hadoop hive-0.11.0.tar.gz

[root@master installer] # ll

Total 415592

-rw-r--r-- 1 hadoop hadoop 221498499 10-15 09:36 eclipse-jee-indigo-SR2-linux-gtk.tar.gz

-rw-r--r-- 1 root root 63851630 10-15 02:14 hadoop-1.2.1.tar.gz

Drwxr-xr-x 2 root root 4096 10-16 03:41 hadoop-eclipse-plugin-1.2.1

-rw-r--r-- 1 hadoop hadoop 5856049 10-16 03:38 hadoop-eclipse-plugin-1.2.1.zip

-rw-r--r-- 1 root root 58955520 10-24 01:55 hbase-0.94.16-security.tar.gz

-rw-r--r-- 1 hadoop root 74945460 11-13 04:47 hive-0.11.0.tar.gz

[root@master installer] # su-hadoop

Configure environment variables

[hadoop@master ~] $vi .bashrc

Export JAVA_HOME=/usr/java/jdk1.6.0_27

Export HADOOP1_HOME=/home/hadoop/hadoop

Export HBASE_HOME=/home/hadoop/hbase

Export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib

Export HIVE_HOME=/home/hadoop/hive

Export PATH=$PATH:$JAVA_HOME/bin:$HADOOP1_HOME/bin:$HBASE_HOME/bin:$HIVE_HOME/bin

Decompress hive

[hadoop@master ~] $cd installer/

[hadoop@master installer] $tar xzf hive-0.11.0.tar.gz

move

[hadoop@master installer] $mv hive-0.11.0..

[hadoop@master installer] $cd..

Soft connection

[hadoop@master] $ln-s hive-0.11.0/ hive

Bring into effect

[hadoop@master ~] $source .bashrc

[hadoop@master ~] $cd hive

Because it is an embedded schema, use the derby database directly

[hadoop@master hive] $hive

Logging initialized using configuration in JarVera fileVlash HadoopUnix HaveMel 0.11.0 LIBUBUBUBUR CommonMUX 0.11.0.jarbank HAVEMAL log4j.properties

Hive history file=/tmp/hadoop/hive_job_log_hadoop_28062@master_201411130457_482280544.txt

Hive > show tables

OK

Time taken: 20.797 seconds

Hive >

The above is all the content of the article "sample Analysis of embedded patterns in Hive installation". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report