This is the implementation of the Impala data handler for MindsDB.

Apache Impala is an MPP (Massive Parallel Processing) SQL query engine for processing huge volumes of data that is stored in the Apache Hadoop cluster. It is an open source software written in C++ and Java. It provides high performance and low latency compared to other SQL engines for Hadoop. In other words, Impala is the highest performing SQL engine (giving RDBMS-like experience) that provides the fastest way to access data stored in Hadoop Distributed File System.


This handler is implemented using impyla, a Python library that allows you to use Python code to run SQL commands on Impala.

The required arguments to establish a connection are:

  • user is the username associated with the database.
  • password is the password to authenticate your access.
  • host is the server IP address or hostname.
  • port is the port through which TCP/IP connection is to be made.
  • database is the database name to be connected.

If you installed MindsDB locally via pip, you need to install all handler dependencies manually. To do so, go to the handler’s folder (mindsdb/integrations/handlers/impala_handler) and run this command: pip install -r requirements.txt.


In order to make use of this handler and connect to the Impala database in MindsDB, the following syntax can be used:

CREATE DATABASE impala_datasource
  engine = 'impala',
  parameters = {

You can use this established connection to query your table as follows:

FROM impala_datasource.TEST;