메뉴 건너뛰기

Bigdata, Semantic IoT, Hadoop, NoSQL

Bigdata, 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.

번호 제목 글쓴이 날짜 조회 수
130 insert hbase by hive ... error occured after 5 hours..HMaster가 뜨지 않는 장애에 대한 복구 방법 총관리자 2014.04.29 7129
129 hive 2.0.1 설치및 mariadb로 metastore 설정 총관리자 2016.06.03 5185
128 Hive Query Examples from test code (2 of 2) 총관리자 2014.03.26 5024
127 Spark에서 Serializable관련 오류및 조치사항 총관리자 2017.04.21 4901
126 의사분산모드에서 presto설치하기 총관리자 2014.03.31 3050
125 Hive 사용법 및 쿼리 샘플코드 구퍼 2013.03.07 2991
124 spark-sql실행시 Caused by: java.lang.NumberFormatException: For input string: "0s" 오류발생시 조치사항 총관리자 2016.06.09 2802
123 Hive+mysql 설치 및 환경구축하기 file 구퍼 2013.03.07 2722
122 banana pi에 hive 0.13.1+mysql(metastore)설치 file 총관리자 2014.09.09 2406
121 Hive java connection 설정 file 구퍼 2013.04.01 2013
120 VisualVM 1.3.9을 이용한 spark-submit JVM 모니터링을 위한 설정및 spark-submit실행 옵션 총관리자 2016.10.28 1891
119 Spark 2.1.1 clustering(5대) 설치(YARN기반) 총관리자 2016.04.22 1882
118 hive에서 생성된 external table에서 hbase의 table에 값 insert하기 총관리자 2014.04.11 1748
117 java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error: Unable to deserialize reduce input key from...오류해결방법 총관리자 2015.06.16 1734
116 index생성, 삭제, 활용 총관리자 2014.04.25 1702
115 impald에서 idle_query_timeout 와 idle_session_timeout 구분 총관리자 2021.05.20 1630
114 FAILED: IllegalStateException Variable substitution depth too large: 40 오류발생시 조치사항 총관리자 2014.08.19 1521
113 hiverserver2기동시 connection refused가 발생하는 경우 조치방법 총관리자 2014.05.22 1471
112 schema설정없이 hive를 최초에 실행했을때 발생하는 오류메세지및 처리방법 총관리자 2016.09.25 1224
111 json 값 다루기 총관리자 2014.04.17 1222

A personal place to organize information learned during the development of such Hadoop, Hive, Hbase, Semantic IoT, etc.
We are open to the required minutes. Please send inquiries to gooper@gooper.com.

위로