安装前提
hadoop,hive,mysql安装正常
开始安装impala
安装规划
服务名称 | node01 | node02 | node03 |
---|---|---|---|
impala-catalog | 不安装 | 不安装 | 安装 |
impala-state-store | 不安装 | 不安装 | 安装 |
impala-server | 安装 | 安装 | 安装 |
主节点node03执行以下命令进行安装
yum install impala -y
yum install impala-server -y
yum install impala-state-store -y
yum install impala-catalog -y
yum install impala-shell -y
从节点node01与node02安装以下服务
yum install impala-server -y
修改配置(不是添加)
hives-site.xml
vim /export/servers/apache-hive-2.1.1-bin/conf/hive-site.xml
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://node03:3306/hive?createDatabaseIfNotExist=true</value>
</property>
<property>
<name>javax.jdo.option.ConnectionDriverName</name>
<value>com.mysql.jdbc.Driver</value>
</property>
<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>root</value>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>123456</value>
</property>
<property>
<name>hive.cli.print.current.db</name>
<value>true</value>
</property>
<property>
<name>hive.cli.print.header</name>
<value>true</value>
</property>
<property>
<name>hive.server2.thrift.bind.host</name>
<value>node03</value>
</property>
<property>
<name>hive.metastore.uris</name>
<value>thrift://node03:9083</value>
</property>
<property>
<name>hive.metastore.client.socket.timeout</name>
<value>3600</value>
</property>
</configuration>
将hive的安装包发送到node02与node01机器上
cd /export/servers/
scp -r apache-hive-2.1.1-bin/ node02:$PWD
scp -r apache-hive-2.1.1-bin/ node01:$PWD
启动相关服务
启动hive的metastore服务
node03机器启动hive的metastore服务
cd /export/servers/apache-hive-2.1.1-bin
nohup bin/hive --service metastore &
nohup bin/hive -- service hiveserver2 &
注意:一定要保证mysql的服务正常启动,否则metastore的服务不能够启动
网友评论