Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.
hive beeline으로 접근시 "User: gooper is not allowed to impersonate anonymous (state=08S01,code=0)"가 발생하면서 "No current connection"이 발생하는 경우 조치
bin/beeline -n $(whoami) -u jdbc:hive2://localhost:10000와 같이 -n을 지정해서 beeline을 실행해준다.
-----------------------오류 내용------------------------------
gooper@gsda1:~/hive/bin$ beeline -u jdbc:hive2://gsda1:10000
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/svc/apps/gsda/bin/hadoop/apache-hive-2.1.1-bin/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/svc/apps/gsda/bin/hadoop/hadoop-2.8.0/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Connecting to jdbc:hive2://gsda1:10000
18/04/15 15:58:34 [main]: WARN jdbc.HiveConnection: Failed to connect to gsda1:10000
Error: Could not open client transport with JDBC Uri: jdbc:hive2://gsda1:10000: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: gooper is not allowed to impersonate anonymous (state=08S01,code=0)
Beeline version 2.1.1 by Apache Hive
beeline>
beeline>
beeline>
beeline> show databases;
No current connection
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
7 | hive metadata(hive, impala, kudu 정보가 있음) 테이블에서 db, table, owner, location를 조회하는 쿼리 | 2020.02.07 | 4556 |
6 | Hive JDBC Connection과 유형별 에러및 필요한 jar파일 | 2021.05.24 | 3724 |
5 | impala session type별 표시되는 정보로 구분하는 방법 | 2021.05.25 | 3872 |
4 | hive metastore db중 TBLS, TABLE_PARAMS테이블 설명 | 2021.10.22 | 4160 |
3 | [hive] hive.tbls테이블의 owner컬럼값은 hadoop.security.auth_to_local에 의해서 filtering된다. | 2022.04.14 | 3249 |
2 | hive의 메타정보 테이블을 MariaDB로 사용하는 경우 table comment나 column comment에 한글 입력시 깨지는 경우 utf8로 바꾸는 방법. | 2023.03.10 | 4612 |
1 | [CDP7.1.7, Hive Replication]Hive Replication진행중 "The following columns have types incompatible with the existing columns in their respective positions " 오류 | 2023.12.27 | 4581 |