搭建
impala搭建参考cdh官方文档,有详细步骤,其中copy hdfs-site.xml、core-site.xml、hive-site.xml至/etc/impala/conf后
注意参数dfs.client.read.shortcircuit只允许在/etc/impala/conf里core-site.xml hdfs-site.xml里配置,不在/etc/hadoop里配置
并且两边的配置都不要设置dfs.client.use.legacy.blockreader.local=true,如果按照官方文档步骤配置该参数会报错。
另外copy过来的hive-site.xml需要配置参数hive.metastore.uris
<property>
<name>hive.metastore.uris</name>
<value>thrift://ip:9083</value>
</property>
<property>
修改/etc/default/impala文件catalog,state_store的ip,建议catalog,state_store安装在namenode机器
IMPALA_CATALOG_SERVICE_HOST=127.0.0.1
IMPALA_STATE_STORE_HOST=127.0.0.1
IMPALA_STATE_STORE_PORT=24000
IMPALA_BACKEND_PORT=22000
指定内存使用上限mem_limit
IMPALA_SERVER_ARGS=" \
-log