mac配置impala odbc

來源:互聯網
上載者:User
下載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串連:

$connection=odbc_connect('Sample_Cloudera_Impala_DSN_64','','');$SQL_Exec_String="show tables";$result=odbc_exec($connection, $SQL_Exec_String);while(odbc_fetch_row($result)){$Tables=odbc_result($result, 1);echo$Tables.'
';}?>

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('
  • ').text(i)); }; $numbering.fadeIn(1700); }); });

    以上就介紹了mac配置impala odbc,包括了方面的內容,希望對PHP教程有興趣的朋友有所協助。

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.