hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saurabh Bajaj <>
Subject RE: Error in running Hive with Postgresql as metastore DB
Date Tue, 10 Jan 2012 13:52:41 GMT
Hi Guys,

I have found the issue.
I did not exit Hive using quit; but instead using the Ctrl Z.
As a result, background processed for Hive were running and causing trouble in the query execution.

I killed the running Hive processes and was able to run Hive with derby as well as MySQL as
metastore DB.

Saurabh Bajaj | Senior Business Analyst | +91 9986588089 |<>

From: Saurabh Bajaj
Sent: Tuesday, January 10, 2012 2:44 PM
To: ''
Subject: Error in running Hive with Postgresql as metastore DB

Hi Everyone,

I am getting an error while installing and running hive using postgresql db as a metastore
The error is as follows which occurs while running any query in Hive from the terminal

FAILED: Error in metadata: javax.jdo.JDOFatalInternalException: Error creating transactional
connection factory
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

I installed CDH3U2 Hadoop and Hive version and the only changes I have made in Hive configuration
are as follows:

1. export HIVE_AUX_JARS_PATH=/usr/local/hadoop

2. There is no Hive-site.xml so i made changes in the hive-default.xml as follows:

  <description>JDBC connect string for a JDBC metastore</description>

  <description>Driver class name for a JDBC metastore</description>

  <description>class implementing the jdo persistence</description>

  <description>detaches all objects from session so that they can be used after transaction
is committed</description>

  <description>reads outside of transactions</description>

  <description>username to use against metastore database</description>

  <description>password to use against metastore database</description>

3. I have placed postgresql-9.1-901.jdbc4.jar in the /usr/local/hadoop path
4. Installed Postgresql and created username/pass hadoop/hadoop
5. postgresql.conf - uncommented the listen_addresses = 'localhost','*' while adding the '*'
part to it.

Please help me understand why this error would be occuring.

Thanks in advance!

Saurabh Bajaj
+91 9986588089

This email message may contain proprietary, private and confidential information. The information
transmitted is intended only for the person(s) or entities to which it is addressed. Any review,
retransmission, dissemination or other use of, or taking of any action in reliance upon, this
information by persons or entities other than the intended recipient is prohibited and may
be illegal. If you received this in error, please contact the sender and delete the message
from your system.

Mu Sigma takes all reasonable steps to ensure that its electronic communications are free
from viruses. However, given Internet accessibility, the Company cannot accept liability for
any virus introduced by this e-mail or any attachment and you are advised to use up-to-date
virus checking software.

View raw message