NoSQL/Hive

Troubleshooting hive

세모데 2016. 6. 8. 18:43

1. create table시 mysql key 에러


   1) 에러 내용 

      An exception was thrown while adding/validating classes) : Specified key was too long; max key length is 767 bytes 


   2) 해결 방안

     해당 에러는 hive에 meta 테이블 생성시 발생하는 오류로 기존 설치되어 있는

     mysql db에 charactset을 latin1으로 변경

     (제 경우는 utf-8로 설정하여 오류가 나는 경우였음)


     alter database meta_db_name character set lation1;