[
https://issues.apache.org/jira/browse/HIVE-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Esteban Gutierrez updated HIVE-2307:
------------------------------------
Description:
The specified type for DEFERRED_REBUILD (IDXS) and IS_COMPRESSED (SDS) columns
in the metastore is defined as bit(1) type which is not supported by PostgreSQL
JDBC.
hive> create table test (id int);
FAILED: Error in metadata: javax.jdo.JDODataStoreException: Insert of object
"org.apache.hadoop.hive.metastore.model.MStorageDescriptor@4f1adeb7" using
statement "INSERT INTO "SDS"
("SD_ID","INPUT_FORMAT","OUTPUT_FORMAT","LOCATION","SERDE_ID","NUM_BUCKETS","IS_COMPRESSED")
VALUES (?,?,?,?,?,?,?)" failed : ERROR: column "IS_COMPRESSED" is of type bit
but expression is of type boolean
was:
When using the DDL SQL scripts to create the Metastore, tables like
SEQUENCE_TABLE are missing and force the user to change the configuration to
use Datanucleus to do all the provisioning of the Metastore tables. Adding the
missing table definitions to the DDL scripts will allow to have a functional
Hive Metastore without enabling additional privileges to the Metastore user
and/or enabling datanucleus.autoCreateSchema property in hive-site.xml
[After running the hive-schema-0.7.0.mysql.sql and revoking ALTER and CREATE
privileges to the 'metastoreuser']
hive> show tables;
FAILED: Error in metadata: javax.jdo.JDOException: Exception thrown calling
table.exists() for `SEQUENCE_TABLE`
NestedThrowables:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: CREATE command
denied to user 'metastoreuser'@'localhost' for table 'SEQUENCE_TABLE'
FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.DDLTask
Affects Version/s: 0.7.1
Fix Version/s: (was: 0.7.1)
(was: 0.8.0)
Labels: metastore postgres (was: derby mysql postgres)
Hadoop Flags: (was: [Reviewed])
> Schema creation scripts for PostgreSQL use bit(1) instead of boolean
> --------------------------------------------------------------------
>
> Key: HIVE-2307
> URL: https://issues.apache.org/jira/browse/HIVE-2307
> Project: Hive
> Issue Type: Bug
> Components: Configuration, Metastore
> Affects Versions: 0.5.0, 0.6.0, 0.7.0, 0.7.1
> Reporter: Esteban Gutierrez
> Assignee: Esteban Gutierrez
> Labels: metastore, postgres
>
> The specified type for DEFERRED_REBUILD (IDXS) and IS_COMPRESSED (SDS)
> columns in the metastore is defined as bit(1) type which is not supported by
> PostgreSQL JDBC.
> hive> create table test (id int);
> FAILED: Error in metadata: javax.jdo.JDODataStoreException: Insert of object
> "org.apache.hadoop.hive.metastore.model.MStorageDescriptor@4f1adeb7" using
> statement "INSERT INTO "SDS"
> ("SD_ID","INPUT_FORMAT","OUTPUT_FORMAT","LOCATION","SERDE_ID","NUM_BUCKETS","IS_COMPRESSED")
> VALUES (?,?,?,?,?,?,?)" failed : ERROR: column "IS_COMPRESSED" is of type
> bit but expression is of type boolean
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira