欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Impala安装

程序员文章站 2022-07-11 09:10:10
...

MySQL或PostgreSQL,充当Impala和Hive的Metastore数据库。
安装和配置Hive Metastore是Impala的要求。没有Metastore数据库,Impala不起作用
下载地址:
http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5.13.1/RPMS/x86_64/
http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5.13.1/RPMS/noarch/

bigtop-utils-0.7.0+cdh5.13.1+0-1.cdh5.13.1.p0.3.el6.noarch.rpm       
impala-server-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm
impala-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm            
impala-shell-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm
impala-catalog-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm    
impala-state-store-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm
impala-debuginfo-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm  
impala-udf-devel-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm

集群环境:

IP 主机名 角色
192.168.11.70 hnode1 主节点
192.168.11.71 hnode2 从节点
192.168.11.72 hnode3 从节点

主节点安装

yum install -y python-setuptools 
rpm -ivh bigtop-utils-0.7.0+cdh5.0.1+0-1.cdh5.0.1.p0.31.el6.noarch.rpm
rpm -ivh --nodeps impala-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm
rpm -ivh impala-server-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm
rpm -ivh impala-catalog-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm
rpm -ivh impala-state-store-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm
rpm -ivh impala-udf-devel-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm
rpm -ivh impala-shell-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm

从节点安装

yum install -y python-setuptools 
rpm -ivh bigtop-utils-0.7.0+cdh5.0.1+0-1.cdh5.0.1.p0.31.el6.noarch.rpm
rpm -ivh --nodeps impala-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm
rpm -ivh impala-server-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm
rpm -ivh impala-udf-devel-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm
rpm -ivh impala-shell-2.10.0+cdh5.13.1+0-1.cdh5.13.1.p0.4.el6.x86_64.rpm

修改配置文件
修改bigtop-utils :
vim /etc/default/bigtop-utils
export JAVA_HOME=/home/local/jdk1.8.0_131/
修改 impala :
vim /etc/default/impala
IMPALA_CATALOG_SERVICE_HOST=192.168.11.70
IMPALA_STATE_STORE_HOST=192.168.11.70

复制hdfs配置文件以及hive配置文件,如果有hbase配置文件,一起复制