Grokbase Groups Hive user May 2012
FAQ
I am sorry, I forget starting hadoop first, but the error messages are confusing too :)




Xiaobo Gu

From: ransom.hezhiqiang
Date: 2012-05-12 15:46
To: user@hive.apache.org; 'guxiaobo1982'
Subject: RE: Where should I put JDBC drivers for metastore service
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql:// 192.168.72.1:3306/hive?createDatabaseIfNotExist=true</value>
<description>JDBC connect string for a JDBC metastore</description>
</property>

If it doen't work, show the log in /tmp/{user.name}/hive.log


Best regards
Ransom.


-----Original Message-----
From: Xiaobo Gu
Sent: Saturday, May 12, 2012 3:37 PM
To: user
Subject: Where should I put JDBC drivers for metastore service

Hi,

I put mysql-connector-java-5.1.20-bin.jar into $HIVE_HOME/lib, and configurations in hive-site.xml are
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://192.168.72.1:3306/hive</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>xiaobo</value>
<description>password to use against metastore database</description>
</property>


When I execute a test HQL in hive, got the following error message:

hive> CREATE TABLE records (year STRING, temperature INT, quality INT)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\t';
FAILED: Error in metadata: MetaException(message:Could not connect to meta store using any of the URIs provided)
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
hive>

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 7 | next ›
Discussion Overview
groupuser @
categorieshive, hadoop
postedMay 12, '12 at 7:38a
activeMay 21, '12 at 9:28p
posts7
users4
websitehive.apache.org

People

Translate

site design / logo © 2022 Grokbase