Impala5.7.1 build in linux environment(Centos6.6)
2016-07-12 17:43
549 查看
How to install Impala
https://github.com/cloudera/Impala/wiki/How-to-build-Impala https://github.com/cloudera/Impala/wiki/Build-prerequisites
Prepare
1. Install JDK
a> wget --no-cookies --no-check-certificate --header "Cookie:gpw_e24=http%3A%2F%2Fwww.oracle.com%2F;oraclelicense=accept-securebackup-cookie"
"http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.rpm"
linked from /usr/bin/java.
e>Add JAVA_HOME to system environment.
2. Install dependence tools
3. Configure Postgresql
a> sudo service postgresql initdb
In the followinglines at the end of the file, change
c> service postgresql restart
4. create Hive metastore user
d> Quit from postgresql:\q
5. Get Maven 3
https://github.com/cloudera/Impala/wiki/How-to-build-Impala https://github.com/cloudera/Impala/wiki/Build-prerequisites
Prepare
1. Install JDK
a> wget --no-cookies --no-check-certificate --header "Cookie:gpw_e24=http%3A%2F%2Fwww.oracle.com%2F;oraclelicense=accept-securebackup-cookie"
"http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.rpm"
b> [code]sudo yum localinstalljdk-7u79-linux-x64
.rpm[/code]
c>
Now Java should be installed at/usr/java/jdk1.7.0_79/jre/bin/java,and
linked from /usr/bin/java.
d>
Basic command:
Version:java –version
Alternatives:sudo alternatives --config java
e>Add JAVA_HOME to system environment.
sudo sh -c "echo export JAVA_HOME=/usr/java/jdk1.7.0_79/jre
>> /etc/environment"[/code]
2. Install dependence tools
a>
sudo yum groupinstall "Development Tools"[/code]
b>
sudo yum -y install git ant libevent-devel automake libtool flex bison gcc-c++ openssl-devel make cmake doxygen.x86_64 glib-devel python-devel bzip2-devel svn libevent-devel krb5-workstation openldap-devel db4-devel python-setuptools python-pip cyrus-sasl* postgresql postgresql-server ant-nodeps lzo-devel lzop[/code]
c>
install python-pip[/code]
wgethttps://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz#md5=87083c0b9867963b29f7aba3613e8f4a[/code]
tar zxvf pip-8.1.2.tar.gz
cd pip-8.1.2
sudo python setup.py install
d> sudo pip install allpairs pytest pytest-xdistparamiko texttable prettytable sqlparse psutil==0.7.1 pywebhdfs gitpythonjenkinsapi boto3
3. Configure Postgresql
a> sudo service postgresql initdb
b> [code]vi /var/lib/pgsql/data/pg_hba.conf[/code]
In the followinglines at the end of the file, change
peeror
identto
trust.
c> service postgresql restart
4. create Hive metastore user
a>[code]sudo -u postgres psql postgres[/code]
b>
CREATE ROLE hiveuser LOGIN PASSWORD 'password';[/code]
c> [code]ALTER ROLE hiveuser WITH CREATEDB;[/code]
d> Quit from postgresql:\q
5. Get Maven 3
wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz[/code]tar xvf apache-maven-3.3.9-bin.tar.gz && sudo mv apache-maven-3.3.9 /usr/local
6. Set environment variables
vi ~/.bashrc
export M2_HOME=/usr/local/apache-maven-3.3.9
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
7. Add path for HDFS domainsocketssudo mkdir /var/lib/hadoop-hdfs/sudo chown <user> /var/lib/hadoop-hdfs/
8. Start local ssh server
sudo service sshd start
9. Enable password-less SSH forHBasessh-keygen -t dsa# Do not type in any passkey. Just press enter.cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
Build Impala
1. Get Impala codegit clone https://github.com/cloudera/Impala.git[/code] 2. Source impala configurationfilesource bin/impala-config.sh
3. Build Impala for the firsttime.a>${IMPALA_HOME}/buildall.sh -noclean -skiptests -build_shared_libs –format[/code]b>Build with cmake:[/code]cmake . -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON -DCMAKE_TOOLCHAIN_FILE=./cmake_modules/toolchain.cmake
4. Build Impala subsequently${IMPALA_HOME}/buildall.sh -skiptests -build_shared_libs
5. Build backend only${IMPALA_HOME}/bin/make_debug.sh [-notests]${IMPALA_HOME}/bin/make_release.sh [-notests][/code]Build frontend onlycd ${IMPALA_HOME}/fe && mvn clean package dependency:copy-dependencies -DskipTests=true
6. Starting supporting services${IMPALA_HOME}/testdata/bin/run-all.shThis script starts a full set of local services including HDFS, HBase, Hive and ZooKeeper, amongst other things. If you have trouble starting this script, check the log files in[code]${IMPALA_HOME}/cluster_logs/for clues.[/code]
7. Starting the impala cluster${IMPALA_HOME}/bin/start-impala-cluster.py
相关文章推荐
- VMware Workstation 5.5.3 Build 34685 汉化补丁
- IncrediMail Xe Premium v5.6.5 Build 3054 多国语言版 下载
- 宽带优化的最强武器cFosSpeed V3.13 Build 1200 多语言完美破解版(保证可下载)
- ACDSee v9.0 Build 115简体中文安装版 完美破解 下载
- PDF编辑工具 Foxit PDF Editor 1.5 Build 2911 下载
- Windows优化大师 V7.72 Build 7.0429 完美破解特别版 下载
- 系统备份必备软件之一键GHOST v8.3 Build 070101 全版下载
- Windows优化大师 V7.75 Build 7.806 免注册破解版 提供下载
- ACDSee v9.0 Build 115简体中文安装版 完美破解 下载
- AVG Anti-Virus 7.5 Build 476a1043
- O&O SafeErase v3.0 Build 1064 下载
- 英语听写专家 2.1 Build 0086 注册码
- 一键GHOST V8.3 Build 060425 硬盘版一键ghost使用方法说明[图文详细教程]
- 利用google closure依赖工具配置
- Undefined symbols for architecture x86_64:
- Maven intall OR Maven build
- 使用Ant构建SSH项目(Intellij IDEA版)
- 用jmeter测试impala