복붙노트

[HADOOP] 하이브 0.14 업데이트 및 삭제 쿼리 구성 오류

HADOOP

하이브 0.14 업데이트 및 삭제 쿼리 구성 오류

Apache hive 0.14에서는 ACID 구성을 지원하여 쿼리를 업데이트하고 삭제할 수 있습니다.

hive.configuration:
hive.support.concurrency – true
hive.enforce.bucketing – true
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-1

그러나 hiveQL show 데이터베이스를 사용할 때 다음 오류가 발생합니다.

as@ubuntu:~$ hive
Logging initialized using configuration in jar:file:/home/as/hive/lib/hive-common-0.14.0.jar!/hive-log4j.properties<br>
SLF4J: Class path contains multiple SLF4J bindings.<br>
SLF4J: Found binding in [jar:file:/home/as/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]<br>
SLF4J: Found binding in [jar:file:/home/as/hive/lib/hive-jdbc-0.14.0-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]<br>
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.<br>
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]<br>
hive> show databases;<br>
FAILED: LockException [Error 10280]: Error communicating with the metastore<br>
hive> exit;
<br>

오류 수정을 도와주세요.

해결법

  1. ==============================

    1.hive-site.xml에 추가하십시오.

    hive-site.xml에 추가하십시오.

    <재산>      hive.in.test      true

  2. ==============================

    2.DB 서버 또는 하이브 메타 스토어가 실행 중이 아닐 수 있습니다. 이 시도.

    DB 서버 또는 하이브 메타 스토어가 실행 중이 아닐 수 있습니다. 이 시도.

    mysqld    # or pg_ctl start -l logfile   or whatever your db start command
    

    그런 다음 메타 스토어가 실행 중인지 확인하십시오.

    nohup hive --service metastore &
    

    OP "충분한 여유 공간이 없습니다"에서 업데이트

    보세요

    /var/lib/mysql  
    

    100 % 활용되는지 확인하십시오. 참조 : https://askubuntu.com/questions/198639/cannot-reinstall-mysql-in-11-10-error-theres-not-enough-space-in-var-lib-my

  3. ==============================

    3.스레드 소유자가 정확합니다. 환경 hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DbTxnManager

    스레드 소유자가 정확합니다. 환경 hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DbTxnManager

    메타 스토어에 대한 연결 오류 발생 (내 경우에는 metasdtore가 SAP ASE이고 여러 데이터베이스가 있음)

    되돌아 가서 hive.txn.manager를 기본값으로 설정 hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DummyTxnManager

    그리고 메타 스토어와 하이브 서버를 다시 재활용했으며 모두 작동했습니다!

    동시성과 같은 소리가 들리지 않거나 추가 작업이 필요합니다!

  4. from https://stackoverflow.com/questions/27470633/hive-0-14-update-and-delete-queries-configuration-error by cc-by-sa and MIT license