Install Hive using Mysql as metadata store On Ubuntu.
来源:互联网 发布:php语言好用吗 编辑:程序博客网 时间:2024/05/16 01:45
This post is about the installation of Hive and use mysql as the metadata store on ubuntu. The environment of my system is ubuntu 12.04, hadoop 1.0.3, hive 0.9.0 and mysql 5.5.
The detail information of installation describes as follows:
step 1: install mysql
$ sudo apt-get install mysql-server
step 2: restart mysql service
$ sudo /etc/init.d/mysql restart or sudo service mysql restart
step 3: modify the configure file of hive hive-site.xml as follows:
<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="configuration.xsl"?><configuration> <property> <name>hive.metastore.local</name> <value>true</value> </property> <property> <name>javax.jdo.option.ConnectionURL</name> <value>jdbc:mysql://localhost:3306/hive?characterEncoding=UTF-8</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>mysql</value> </property></configuration>
step 4: copy the mysql jdbc package to the directory hive-0.9.0/lib.
$ sudo cp *.jar /home/hadoop/hive-0.9.0/lib
step 5: create hive database in mysql shell.
step 6: start hive and create table in hive shell
$ bin/hive$ create table test (id int, name string)
step 7: see the metadata of hive in mysql shell
$ mysql -uroot -pmysql$ use hive;$ show tables;$ select * from TBLS;
- Install Hive using Mysql as metadata store On Ubuntu.
- Install Hive on Ubuntu
- Mysql Install on ubuntu
- install mysql on ubuntu
- Accessing Hive Metadata Using JDBC
- hive metadata mysql存储
- Store metadata on a configuration drive
- how to install OpenFetion using source, not deb, on Ubuntu
- Install Guide: XBMC Using PPA On Ubuntu 11.10
- Install JRE on ubuntu 11.04 (Natty) using PPA
- Install FFmpeg on Ubuntu 15.10, Using Apt-Get (PPA)
- Install RL(Robotcs Library) on ubuntu and using
- Install PHP , MYSQL, Apache2 on Ubuntu
- Install MySql 5.6 on Ubuntu 16.04
- How To Install MySQL on Ubuntu 16.04
- install ImageMagick on Ubuntu
- install myreview on ubuntu
- Install JDK on Ubuntu
- uva 639 Don't Get Rooked
- Handler消息处理机制
- Tomcat 6.0的目录结构
- 要点提醒
- Linux进程间通信(IPC)方式
- Install Hive using Mysql as metadata store On Ubuntu.
- fill和fill_n函数的应用 / fill_n与generate_n的区别
- c# winform页面信息的打印
- 查询,创建视图,存储过程【技能抽查】
- dp之最长有序子序列
- java项目中添加邮件发送功能(使用apache commons mail开源项目)
- 10 款超棒的 CSS/JavaScript 前端特效
- 互斥量、条件变量与pthread_cond_wait()函数的使用,详解
- 【心情日记】总有一天你将破蛹而出