메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


impala-shell을 포함한 shellscript 프로그램이 정상적으로 잘 수행되다가 가끔 "-k requires a valid kerberos ticket but no valid kerberos ticket found."와 같은 오류가 발생하면서 impala-shell수행이 실패하는 경우가 있다. (테스트를 위해서 kinit직후 kdestroy를 수행하고 이어서 impala-shell을 수행하면 동일한 메세지가 발생한다)
shellscript파일에는 최상단에 kinit을 수행하고 impala-shell을 여러번 수행하는 구조로 되어 있는데 kinit직후의 첫번째 impala-shell이 아래의 오류가 발생하면서 실패하고 나머지는 정상 수행된다. 
impala_shell.py은 내부에서 kerberos인증의 경우 "klist -s"명령으로 테스트를 수행하는데 kinit직후에 수행되는 "klist -s"명령이 유효 기간을 제대로 인식하지 못하는 경우가 발생하는거 같다.
그래서 다음과 같이 kinit후에 "klist -s"를 수행해서 실패시 10초간 대기 하도록 하는 로직을 추가해 줄 필요가 있다.

kinit -k -t /var/lib/keytab/gooper.keytab gooper
if ! klist -s
then
  echo "'klist -s' test fail"
  sleep 10
else
  echo "'klist -s' test succeed"
fi


* 오류 메세지 유형
1. 
Error connecting: TTransportException, Could not start SASL: Error in sasl_client_start (-1) SASL(-1): 
 generic failure: GSSAPI Error: Unspecified GSS failure.  
Minor code may provide more information (Matching credential not found (filename: /tmp/krb5cc_1398802835))
2. 
Starting Impala Shell using Kerberos authentication
Using service name 'impala'
-k requires a valid kerberos ticket but no valid kerberos ticket found.
3. 
Error connecting: TTransportException, Could not start SASL: Error in sasl_client_start (-1) SASL(-1): 
 generic failure: GSSAPI Error: Unspecified GSS failure.  
Minor code may provide more information (No Kerberos credentials available: Bad format in credentials cache (filename: /tmp/krb5cc_1398802835))
Not connected to Impala, could not execute queries.

번호 제목 날짜 조회 수
741 bananapi 5대(ubuntu계열 리눅스)에 yarn(hadoop 2.6.0)설치하기-ResourceManager HA/HDFS HA포함, JobHistory포함 2015.04.24 19290
740 mapreduce appliction을 실행시 "is running beyond virtual memory limits" 오류 발생시 조치사항 2017.05.04 17053
739 org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory /tmp/hadoop-root/dfs/name is in an inconsistent state: storage directory does not exist or is not accessible. 2013.03.11 14837
738 Hive Query Examples from test code (2 of 2) 2014.03.26 11464
737 drop table로 삭제했으나 tablet server에는 여전히 존재하는 테이블 삭제방법 2021.07.09 7937
736 Resource temporarily unavailable(자원이 일시적으로 사용 불가능함) 오류조치 2015.11.19 7698
735 insert hbase by hive ... error occured after 5 hours..HMaster가 뜨지 않는 장애에 대한 복구 방법 2014.04.29 7236
734 [DataNode]org.apache.hadoop.security.KerberosAuthException: failure to login: for principal: hdfs/datanode03@GOOPER.COM from keytab hdfs.keytab오류 2023.04.18 6126
733 [Decommission]시 시간이 많이 걸리면서(수일) Decommission이 완료되지 않는 경우 조치 2018.01.03 6047
732 cumulusRDF 1.0.1설치및 "KeyspaceCumulus" keyspace확인하기 file 2016.04.15 5943
731 HBase shell로 작업하기 2013.03.15 5924
730 dr.who로 공격들어오는 경우 조치방법 file 2018.06.09 5708
729 하둡 분산 파일 시스템을 기반으로 색인하고 검색하기 2013.03.15 5683
728 Ubuntu 16.04LTS 설치후 초기에 주어야 하는 작업(php, apache, mariadb설치및 OS보안설정등) file 2017.05.23 5621
727 hive 2.0.1 설치및 mariadb로 metastore 설정 2016.06.03 5292
726 Spark에서 Serializable관련 오류및 조치사항 2017.04.21 5028
725 [gson]mongodb의 api를 이용하여 데이타를 가져올때 "com.google.gson.stream.MalformedJsonException: Unterminated object at line..." 오류발생시 조치사항 2017.12.11 4804
724 .git폴더를 삭제하고 다시 git에 추가하고 서버에 반영하는 방법 2017.06.19 4499
723 import 혹은 export할때 hive파일의 default 구분자는 --input-fields-terminated-by "x01"와 같이 지정해야함 2014.05.20 4344
722 sqoop작업시 hdfs의 개수보다 더많은 값이 중복되어 oracle에 입력되는 경우가 있음 2014.09.02 4210
위로