title: Error connecting: <class 'thrift.transport.TTransport.TTransportException'> Could not connect to localhost:21000
body: <p>I am trying to install cloudera impala on my local machine (32 bit ubuntu) without cloudera manager(they don't support on 32 bit ubuntu, i also tried and failed). </p>
  
  <p>I have tried following commands to download the impala from repository.</p>
  
  <pre><code>    $ sudo apt-get install impala-shell
      $ sudo apt-get install impala             # Binaries for daemons
      $ sudo apt-get install impala-server      # Service start/stop script
      $ sudo apt-get install impala-state-store # Service start/stop script 
  </code></pre>
  
  <p>Upto here it worked fine. My impala/conf/hive-site.xml looks like this </p>
  
  <pre><code>&lt;property&gt;
  &lt;name&gt;hive.metastore.local&lt;/name&gt;
  &lt;value&gt;false&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
  &lt;name&gt;hive.metastore.uris&lt;/name&gt;
  &lt;value&gt;thrift://localhost:9083&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
  &lt;name&gt;hive.metastore.client.socket.timeout&lt;/name&gt;
  &lt;value&gt;3600&lt;/value&gt;
  &lt;description&gt;MetaStore Client socket timeout in seconds&lt;/description&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>My impala/conf/hdfs-site.xml looks like this. </p>
  
  <pre><code>&lt;property&gt;
      &lt;name&gt;dfs.client.read.shortcircuit&lt;/name&gt;
      &lt;value&gt;true&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
      &lt;name&gt;dfs.domain.socket.path&lt;/name&gt;
      &lt;value&gt;/var/run/hadoop-hdfs/dn._PORT&lt;/value&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
      &lt;name&gt;dfs.client.file-block-storage-locations.timeout&lt;/name&gt;
      &lt;value&gt;3000&lt;/value&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>Now, i was trying to connect to localhost on impala-shell. But, it give me this error</p>
  
  <pre><code>Error connecting: &lt;class 'thrift.transport.TTransport.TTransportException'&gt;, Could not connect to localhost:21000
  </code></pre>
  
  <p>FYI, i am using mysql for the metastore for my hive-hadoop cluster.</p>