Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hive ACID support #797

Open
GuillaumeHold opened this issue Sep 26, 2023 · 2 comments · May be fixed by #799
Open

hive ACID support #797

GuillaumeHold opened this issue Sep 26, 2023 · 2 comments · May be fixed by #799

Comments

@GuillaumeHold
Copy link
Contributor

The hive compaction should be activated on one of the hive metastores. This requires distinction between the two hive metastores , to configure the hive.compactor.initiator.on on only one of the instance.

@GuillaumeHold GuillaumeHold linked a pull request Sep 26, 2023 that will close this issue
2 tasks
@GuillaumeHold GuillaumeHold changed the title hive compaction support hive ACID support Sep 29, 2023
@Pierrotws
Copy link
Contributor

Properties linked to ACID support:

hive.support.concurrency – true
hive.enforce.bucketing – true (Not required as of Hive 2.0)
hive.exec.dynamic.partition.mode – nonstrict
hive.txn.manager – org.apache.hadoop.hive.ql.lockmgr.DbTxnManager
hive.compactor.initiator.on – true (for exactly one instance of the Thrift metastore service)
hive.compactor.worker.threads – a positive number on at least one instance of the Thrift metastore service

@GuillaumeHold
Copy link
Contributor Author

When trying to create a transactional table with "transactional"="true", the query fail with :

Error: Error while compiling statement: FAILED: LockException [Error 10280]: Error communicating with the metastore (state=42000,code=10280)

In the metastore logs we get :

ERROR [pool-11-thread-10:ProcessFunction@41] - Internal error processing open_txns
org.apache.hadoop.hive.metastore.api.MetaException: Unable to select from transaction database org.postgresql.util.PSQLException: ERROR: relation "next_txn_id" does not exist
[...]
INFO  [pool-11-thread-10:TxnHandler@3275] - Non-retryable error in openTxns(OpenTxnRequest(num_txns:1, user:tdp_user, hostname:master-03, agentInfo:Unknown)) : ERROR: relation "next_txn_id" does not exist
  Position: 23 (SQLState=42P01, ErrorCode=0)
[...]
ERROR [pool-11-thread-10:RetryingHMSHandler@201] - MetaException(message:Unable to select from transaction database org.postgresql.util.PSQLException: ERROR: relation "next_txn_id" does not exist

This seems to be linked to https://issues.apache.org/jira/browse/HIVE-22546, where there is problem with the metastore schema for the postgresql backend.
The transaction manager look for next_txn_id while the metastore have NEXT_TXN_ID .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants