반응형
Notice
Recent Posts
Recent Comments
Link
지구정복
[Hue] TTransportException("Bad status: 3 (b'Error validating the login')") 본문
데이터 엔지니어링 정복/Hue
[Hue] TTransportException("Bad status: 3 (b'Error validating the login')")
noohhee 2025. 2. 27. 17:11728x90
반응형
현재 Openldap과 hue, Hive연동된 상태이다.
Hue의 hive editor를 오픈하면 아래 에러가 자꾸 발생했다.
Bad status: 3 (b'Error validating the login') (code THRIFTTRANSPORT): TTransportException("Bad status: 3 (b'Error validating the login')") |
또한 Hue log를 확인해보니 아래 내용이 있었다.
[27/Feb/2025 16:50:17 +0900] base DEBUG Selected interpreter hive interface=hiveserver2 compute=None [27/Feb/2025 16:50:17 +0900] dbms DEBUG Query via ini beeswax [27/Feb/2025 16:50:17 +0900] dbms DEBUG Query Server: {'server_name': 'beeswax', 'server_host': 'myserver01', 'server_port': 10000, 'principal': None, 'http_url': 'http://myserver01:10001/cliservice', 'transport_mode': 'socket', 'auth_username': 'hue', 'use_sasl': True, 'close_sessions': False, 'has_session_pool': False, 'max_number_of_sessions': 1, 'dialect': 'beeswax', 'auth_password_used': True} [27/Feb/2025 16:50:17 +0900] thrift_util DEBUG Thrift client <desktop.lib.thrift_util.ConnectionPooler object at 0x7fd7fd7a07d0> got connection 49 after 0.00 seconds [27/Feb/2025 16:50:17 +0900] thrift_util DEBUG Thrift client <desktop.lib.thrift_util.ConnectionPooler object at 0x7fd7fd7a07d0> got connection 49 after 0.00 seconds [27/Feb/2025 16:50:17 +0900] thrift_util INFO Thrift exception; retrying: Bad status: 3 (b'Error validating the login') [27/Feb/2025 16:50:17 +0900] thrift_util INFO Thrift exception; retrying: Bad status: 3 (b'Error validating the login') [27/Feb/2025 16:50:17 +0900] thrift_util INFO Thrift saw a transport exception: Bad status: 3 (b'Error validating the login') |
이 내용은 Hue에서 설정된 계정이 Hive에 접속이 안됐을 때 발생하는 에러이다.
따라서 다음 내용을 조치해본다.
LDAP에 "hue" 계정 추가
"hue" 계정 HUE에 계정 생성 및 admin 권한 부여
그리고 다음 설정값들을 수정해준다.
-HUE Config
* hue-desktop-site
Auth Username : hue
Auth Password : "hue" password 입력 (이때 ""쌍따옴표를 넣어준다. 만약 안되면 제거)
* hue-hive-site
Auth Username : hue
Auth Password : "hue" password 입력 (이때 ""쌍따옴표를 넣어준다. 만약 안되면 제거)
-HDFS Config
* core-site
hadoop.proxyuser.hue.groups : *
hadoop.proxyuser.hue.hosts : *
hadoop.proxyuser.hive.hosts : *
관련된 컴포넌트들을 모두 재기동해준다.
728x90
반응형
Comments