이전에 지금 쓸 글과 비슷한 https://qkqhxla1.tistory.com/958 를 썼었다. 현재 회사에서는 단순 조회용으로 presto를 쓰고,(조회용으로는 presto가 더 빠르고 좋다는 설명을 들었다.) create alter 같은 ddl은 hive에서 쿼리를 돌린다. 1. impyla 모듈사용.(추천하는 방법..)다시 보는데 impyla를 사용하는게 가장 안정적이고 좋다. 이거를 쓰자. 아래는 예제 코드. # pip install thrift==0.9.3 # 안정적인 thrift버전임. from impala.dbapi import connect from impala.error import ProgrammingError ~~~~~ def get_hive_results(self, hql): p..