# ambari-impala-service
**Repository Path**: IsForEverthing/ambari-impala-service
## Basic Information
- **Project Name**: ambari-impala-service
- **Description**: make Impala on HDP enabled
- **Primary Language**: Python
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2017-09-20
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
An Ambari Service for Impala
====
## Support Version
- Impala 2.6 +
- Hadoop 2.6 +
## Install Impala two ways:
### 1. To download the Impala service folder, run below
```
VERSION=`hdp-select status hadoop-client | sed 's/hadoop-client - \([0-9]\.[0-9]\).*/\1/'`
sudo git clone https://github.com/cas-bigdatalab/ambari-impala-service.git /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/IMPALA
```
### 2. MPACK
```
ambari-server install-mpack --mpack=ambari-impala-mpack-2.6.0-0816.tar.gz -v
```
## impala repo
```
[cloudera-cdh5]
# Packages for Cloudera's Distribution for Hadoop, Version 5, on RedHat or CentOS 6 x86_64
name=Cloudera's Distribution for Hadoop, Version 5
baseurl=https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5/
gpgkey =https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera
gpgcheck = 1
```
## Restart Ambari
\#sandbox
service ambari restart
\#non sandbox
sudo service ambari-server restart
## HDFS config
we need add below config to /etc/hadoop/conf/core-site.xml
```
dfs.client.read.shortcircuit
true
dfs.client.read.shortcircuit.skip.checksum
false
dfs.datanode.hdfs-blocks-metadata.enabled
true
```
we need add below config to /etc/hadoop/conf/hdfs-site.xml
```
dfs.datanode.hdfs-blocks-metadata.enabled
true
dfs.block.local-path-access.user
impala
dfs.client.file-block-storage-locations.timeout.millis
60000
```
add config info through webui


restart hadoop and restart impala
## SUMMARY

## NOTICE
- make sure your hive server normally
- hdfs and hive conf file is sync to /etc/impala/conf
## Some error note:
- NoSuchMethodError:setCaching

Impala rely on Cloudrea Hbase Jar ,please use relevant jar.