hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Gates <>
Subject Re: Oracle backend for Hive Metastore
Date Tue, 23 Sep 2014 14:47:53 GMT
What version of Hive are you using?

Did you explicitly create the tables in the metastore via the Oracle 
script or depend on DataNucleus to do it for you?


> Rahul Channe <>
> September 22, 2014 at 10:47
> Hi All,
> I am using oracle as hive metastore. I could see the schema created in 
> oracle after logging into hive and executing create database command 
> successfully.
> When i am trying to create table in hive its throwing error, please help
> hive>  create table test ( name string,age int) row format delimited 
> fields terminated by ",";
> FAILED: Execution Error, return code 1 from 
> org.apache.hadoop.hive.ql.exec.DDLTask. 
> MetaException(message:javax.jdo.JDODataStoreException: An exception 
> was thrown while adding/validating class(es) : ORA-01754: a table may 
> contain only one column of type LONG
> java.sql.SQLException: ORA-01754: a table may contain only one column 
> of type LONG
>         at 
> oracle.jdbc.driver.DatabaseError.throwSqlException(
>         at oracle.jdbc.driver.T4CTTIoer.processError(
>         at oracle.jdbc.driver.T4CTTIoer.processError(
>         at oracle.jdbc.driver.T4C8Oall.receive(
>         at oracle.jdbc.driver.T4CStatement.doOall8(
>         at 
> oracle.jdbc.driver.T4CStatement.executeForRows(
>         at 
> oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(
>         at 
> oracle.jdbc.driver.OracleStatement.executeInternal(

Sent with Postbox <>

NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

View raw message