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
.
Hi ,
I am getting some error when i tried to run impala server on HDP 2.3 .
I went through the steps as you mentioned above.But tried to check the status of three daemons of impala server ,got the following errors.
2.Impala catalog is dead but pid exists.
3.Impala state store is running fine.
When I go through the logs , got following
1.NoClassDefeinitionFoundException found related to hbase.Scan in impalad.ERROR.
2.UnknownDBException related to hive metastore found in catalogd.ERROR.
Please suggest.