下載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
<code><span>[ODBC Data Sources]</span><span>Sample_Cloudera_Impala_DSN_64=<span>Cloudera Impala ODBC Driver <span>64</span>-bit</span></span><span>[Sample_Cloudera_Impala_DSN_64]</span><span>Driver=<span>/opt/cloudera/impalaodbc/lib/universal/libclouderaimpalaodbc.dylib</span></span><span>HOST=<span><span>192.168</span>.<span>2.103</span></span></span><span>PORT=<span><span>21050</span></span></span></code>
vi /usr/local/Cellar/unixodbc/2.3.2_1/etc/odbcinst.ini
isql -v Sample_Cloudera_Impala_DSN_64
PHP連線:
<code>[<span>ODBC</span><span>Drivers</span>] <span>Cloudera</span><span>Impala</span><span>ODBC</span><span>Driver</span><span>64</span>-bit=<span>Installed</span>[<span>Cloudera</span><span>Impala</span><span>ODBC</span><span>Driver</span><span>64</span>-bit] <span>Description</span>=<span>Cloudera</span><span>Impala</span><span>ODBC</span><span>Driver</span> (<span>64</span>-bit) <span>Driver</span>=<span>/opt/cloudera</span><span>/impalaodbc/lib</span><span>/universal/libclouderaimpalaodbc</span>.dylib</code>
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i
').text(i)); }; $numbering.fadeIn(1700); }); }); 以上就介紹了mac配置impala odbc,包含了方面的內容,希望對PHP教程有興趣的朋友有所幫助。