mac配置impalaodbc

下载mac对应驱动并安装:http://www.cloudera.com/downloads.html.html

*host 地址是impala daemon所在的机器ip,端口可以在cm中设置
vi /usr/local/cellar/unixodbc/2.3.2_1/etc/odbc.ini

[odbc data sources]sample_cloudera_impala_dsn_64=cloudera impala odbc driver 64-bit[sample_cloudera_impala_dsn_64]driver=/opt/cloudera/impalaodbc/lib/universal/libclouderaimpalaodbc.dylibhost=192.168.2.103port=21050

vi /usr/local/cellar/unixodbc/2.3.2_1/etc/odbcinst.ini

[odbcdrivers]
clouderaimpalaodbcdriver64-bit=installed[clouderaimpalaodbcdriver64-bit]
description=clouderaimpalaodbcdriver (64-bit)
driver=/opt/cloudera/impalaodbc/lib/universal/libclouderaimpalaodbc.dylib

测试:
isql -v sample_cloudera_impala_dsn_64

php连接:

‘).addclass(‘pre-numbering’).hide();
$(this).addclass(‘has-numbering’).parent().append($numbering);
for (i = 1; i

Posted in 未分类