티스토리 뷰
빅데이터/hive
[hive] This command is not allowed on an ACID table default.table_name with a non-ACID transaction manager 오류 해결 방법
hs_seo 2020. 3. 17. 22:06하이브 트랜잭션 테이블을 조회할 때 발생하는 오류는 아래 두 가지 입니다. 트랜잭션 테이블은 현재 세션이 트랜잭션 세션이어야 하고, hive.support.concurrency=true
일 때만 조회할 수 있습니다.
This command is not allowed on an ACID table default.table_name with a non-ACID transaction manager
FAILED: RuntimeException [Error 10264]: To use DbTxnManager you must set hive.support.concurrency=true
-- 설정을 하지 않은 상태에서 ACID 테이블인 table_name을 조회할 때 오류 발생
hive (default)> select * from table_name;
FAILED: SemanticException [Error 10265]: This command is not allowed on an ACID table default.table_name with a non-ACID transaction manager. Failed command: select * from table_name
hive (default)> exit;
-- set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager 만 설정해도 오류 발생
hive (default)> select * from table_name;
FAILED: RuntimeException [Error 10264]: To use DbTxnManager you must set hive.support.concurrency=true
Exception in thread "main" java.lang.NullPointerException
at org.apache.hadoop.hive.ql.Driver.releaseLocksAndCommitOrRollback(Driver.java:1186)
-- 모든 설정을 하고 조회하면 테이블 조회 가능
set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
set hive.support.concurrency=true;
hive (default)> select * from table_name;
OK
2 b
1 a
반응형
'빅데이터 > hive' 카테고리의 다른 글
[hive] collect_list()와 같은 UDAF 함수의 GC 오류 해결 방법 (0) | 2020.06.01 |
---|---|
[hive] 하이브 매크로(macro) (0) | 2020.04.22 |
[hive] 구체화 뷰(Materialized View) (0) | 2020.01.21 |
[hive] UDF에서 발생하는 argument type mismatch 오류 수정 (0) | 2020.01.14 |
[hive] 벡터화(vectorized) 처리 (0) | 2020.01.07 |
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 백준
- 정올
- nodejs
- 다이나믹
- 하이브
- Tez
- SQL
- airflow
- 파이썬
- oozie
- Python
- Hadoop
- emr
- mysql
- error
- 오류
- 알고리즘
- AWS
- S3
- build
- hbase
- HIVE
- SPARK
- yarn
- java
- Linux
- bash
- 하둡
- HDFS
- ubuntu
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함