title: How to install Impala on Ubuntu?
body: <p>I want to install <a href="https://impala.apache.org/" rel="nofollow noreferrer">Impala</a> on an Ubuntu instance. So far, none of the methods below didn't work.</p>
  
  <p>How can I install a stable version of Impala in Ubuntu?</p>
  
  <p><strong>Failed method nr. 1: apt-get</strong></p>
  
  <p>First I tried to install binaries using </p>
  
  <pre><code>sudo apt-get update
  sudo apt-get install impala
  sudo apt-get install impala-server
  sudo apt-get install impala-state-store
  </code></pre>
  
  <p>However, there are problems with the public key of Impala's repository:</p>
  
  <pre><code>Err:8 https://archive.cloudera.com/impala/ubuntu/lucid/amd64/impala bionic Release
    404  Not Found [IP: 151.101.192.167 443]
  Err:4 http://archive.cloudera.com/impala/ubuntu/lucid/amd64/impala lucid-impala1 InRelease
    The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 327574EE02A818DD
  Reading package lists... Done
  E: The repository 'https://archive.cloudera.com/impala/ubuntu/lucid/amd64/impala bionic Release' does not have a Release file.
  N: Updating from such a repository can't be done securely, and is therefore disabled by defau
  lt.
  N: See apt-secure(8) manpage for repository creation and user configuration details.
  W: GPG error: http://archive.cloudera.com/impala/ubuntu/lucid/amd64/impala lucid-impala1 InRelease: The following signatures couldn't be verified because the public key is not available:
   NO_PUBKEY 327574EE02A818DD
  E: The repository 'http://archive.cloudera.com/impala/ubuntu/lucid/amd64/impala lucid-impala1
   InRelease' is not signed.
  N: Updating from such a repository can't be done securely, and is therefore disabled by default.
  N: See apt-secure(8) manpage for repository creation and user configuration details.
  </code></pre>
  
  <p><strong>Failed method nr. 2: Building it</strong></p>
  
  <p>I did <code>git clone https://git-wip-us.apache.org/repos/asf/impala.git</code>, then ran <code>bin/bootstrap_build.sh</code>.</p>
  
  <p>However, the file <a href="https://git-wip-us.apache.org/repos/asf?p=impala.git;a=blob;f=bin/bootstrap_build.sh;h=82f1f37566327eb2001d41ae9194ddb04d552e51;hb=HEAD" rel="nofollow noreferrer">bootstrap_build.sh</a> references a non-existent shell script in the last line <code>./buildall.sh -notests -so</code>.</p>
  
  <p><strong>Update 1:</strong> When I run <code>sudo dpkg --install impala_2.11.0+cdh5.14.4+0-1.cdh5.14.4.p0.4~xenial-cdh5.14.4_amd64.deb</code> I get the following dependencies errors:</p>
  
  <pre><code>dpkg: dependency problems prevent configuration of impala:
   impala depends on bigtop-utils (&gt;= 0.7); however:
    Package bigtop-utils is not installed.
   impala depends on hadoop; however:
    Package hadoop is not installed.
   impala depends on hadoop-hdfs; however:
    Package hadoop-hdfs is not installed.
   impala depends on hadoop-yarn; however:
    Package hadoop-yarn is not installed.
   impala depends on hadoop-mapreduce; however:
    Package hadoop-mapreduce is not installed.
   impala depends on hbase; however:
    Package hbase is not installed.
   impala depends on hive (&gt;= 0.12.0+cdh5.1.0); however:
    Package hive is not installed.
   impala depends on zookeeper; however:
    Package zookeeper is not installed.
   impala depends on libhdfs0; however:
    Package libhdfs0 is not installed.
   impala depends on avro-libs; however:
    Package avro-libs is not installed.
   impala depends on parquet; however:
    Package parquet is not installed.
   impala depends on sentry (&gt;= 1.3.0+cdh5.1.0); however:
    Package sentry is not installed.
  dpkg: error processing package impala (--install):
   dependency problems - leaving unconfigured
  Processing triggers for libc-bin (2.27-3ubuntu1) ...
  Errors were encountered while processing:
   impala
  </code></pre>
  
  <p><strong>Update 2:</strong> Installing Hadoop according to <a href="https://www.digitalocean.com/community/tutorials/how-to-install-hadoop-in-stand-alone-mode-on-ubuntu-16-04" rel="nofollow noreferrer">this tutorial</a> did not fix the Hadoop dependency problems.</p>