org/apache/hive/service/cli/thrift/TCLIService$Iface.

Volc·2023년 6월 26일
1

Error

목록 보기
49/62

에러

  • hive를 datagrip에서 연결하려고 했는데 다음과 같은 에러가 났다.

    org/apache/hive/service/cli/thrift/TCLIService$Iface.

  • hive-service.jar가 없어서 그랬던거고 hive-service를 추가해줬더니 다음과 같은 에러가 났다.

    Driver class 'org.apache.thrift.protocol.TProtocol' not found.

  • hive-exec.jar도 추가해줬더니 다음과 같은 에러가 났다.

    Driver class 'org.apache.http.client.HttpClient' not found.

  • httpclient를 추가했더니 다음과 같은 에러가 발생했다.

    Driver class 'org.apache.http.HttpRequestInterceptor' not found.

  • httpcore를 추가해줬더니 다음과 같은 에러가 발생했다.

    Driver class 'org.apache.commons.logging.LogFactory' not found.

  • common-logging도 추가했더니 다음과 같은 에러가 발생했다.

    Driver class 'org.apache.hadoop.conf.Configuration' not found.

  • commona hadoop을 추가해줬더니 다음과 같은 에러가 발생했다.

    Driver class 'org.slf4j.LoggerFactory' not found.

  • slf4j-api를 추가해줬더니 정상적으로 hive가 datagrip에 연결되었다.

해결

  • hive를 연결하기 위해서는 다음과 같은 라이브러리를 추가해야 한다고 한다.

libthrift-0.9.0-cdh5-2.jar
httpclient-4.2.5.jar
httpcore-4.2.5.jar
commons-logging-1.1.3.jar
hive-common.jar
slf4j-api-1.7.5.jar
hive-metastore.jar
hive-service.jar
hadoop-common.jar
hive-jdbc.jar
guava-11.0.2.jar

참고

https://stackoverflow.com/questions/28760141/connect-hive-through-java-jdbc

profile
미래를 생각하는 개발자

0개의 댓글