yum-config-manager --add-repo http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/cloudera-cdh5.repo
yum install impala-server impala-catalog impala-state-store impala-shell
ln -sf /usr/lib/hbase/lib/hbase-client.jar /usr/lib/impala/lib
ln -sf /usr/lib/hbase/lib/hbase-common.jar /usr/lib/impala/lib
ln -sf /usr/lib/hbase/lib/hbase-protocol.jar /usr/lib/impala/lib
echo export JAVA_HOME=/usr/jdk64/jdk1.7.0_45 >> /etc/default/bigtop-utils
for i in server state-store catalog ; do service "impala-$i" start ; done
for i in server state-store catalog ; do service "impala-$i" status ; done
for i in server state-store catalog ; do service "impala-$i" stop ; done
IMPORTANT! Impala looks for configuration files in directories found in
$CLASSPATH
.
Add the following to /etc/hadoop/conf/core-site.xml
:
<property>
<name>dfs.client.read.shortcircuit</name> <value>true</value>
</property>
<property>
<name>dfs.client.read.shortcircuit.skip.checksum</name>
<value>false</value>
</property>
<property>
<name>dfs.datanode.hdfs-blocks-metadata.enabled</name>
<value>true</value>
</property>
Add the following to /etc/hadoop/conf/hdfs-site.xml
:
<property>
<name>dfs.datanode.hdfs-blocks-metadata.enabled</name>
<value>true</value>
</property>
<property>
<name>dfs.block.local-path-access.user</name>
<value>impala</value>
</property>
<property>
<name>dfs.client.file-block-storage-locations.timeout.millis</name>
<value>60000</value>
</property>
Copy conf files to impala configuration directory:
cp /etc/hadoop/conf/*.xml /etc/impala/conf
cp /etc/hive/conf/hive-site.xml /etc/impala/conf
Check for permissions:
chmod a+rx /var/lib/hadoop-hdfs
Restart hadoop & impala.
If something goes wrong look into logs first:
- /var/log/impala/impala-server.log
- /var/log/impala/impala-state-store.log
- /var/log/impala/impala-catalog.log
- /var/log/impala/impalad.ERROR
- /var/log/impala/catalogd.ERROR
- /var/log/impala/statestored.ERROR
- /var/log/hadoop/hdfs/*
Try invalidate metadata;
in impala-shell
.
I am facing the same issue as @prakash12
Is anyone able to resolve the issue?