为drill安装odbc驱动
Install odbc drive for drill
我按照以下步骤为 drill 配置 odbc 驱动器:
Configuring ODBC on Linux
之后我尝试根据Testing the ODBC Connection Instruction
测试钻孔连接
/usr/bin/iodbctest
iODBC Demonstration program
This program shows an interactive SQL processor
Driver Manager: 03.52.0709.0909
Enter ODBC connect string (? shows list): DSN=Drill;ConnectionType=ZooKeeper;ZKQuorum=192.168.0.253:2181,192.168.0.254:2181;ZKClusterID=drillbits1
Driver: 1.2.0.1000 (MapR Drill ODBC Driver)
SQL>select columns[0] as 'Year',columns[1] as Revenues from 'hdfs.root'.'./user/hdfs/R/DisneyFinancialTest.csv'
1: ERROR [HY000] [MapR][Drill] (1070) Drill fails to execute the query with error [30017]Communication error. End of file
它与 sql 的连接工作得很好,但它显示演习无法执行。这个问题是什么意思?谁能帮我解决这个问题?
quit;
被解释为 SQL 命令,这对 Drill 无效。如果要退出 isql,则只需使用 quit
.
终于找到问题所在了,问题是我的odbc驱动版本和我的drill版本不匹配。我卸载了drill odbc driver 1.2,安装了0.8版本,效果很好。
我参考this link解决了这个问题。
我按照以下步骤为 drill 配置 odbc 驱动器: Configuring ODBC on Linux
之后我尝试根据Testing the ODBC Connection Instruction
测试钻孔连接/usr/bin/iodbctest
iODBC Demonstration program
This program shows an interactive SQL processor
Driver Manager: 03.52.0709.0909
Enter ODBC connect string (? shows list): DSN=Drill;ConnectionType=ZooKeeper;ZKQuorum=192.168.0.253:2181,192.168.0.254:2181;ZKClusterID=drillbits1
Driver: 1.2.0.1000 (MapR Drill ODBC Driver)
SQL>select columns[0] as 'Year',columns[1] as Revenues from 'hdfs.root'.'./user/hdfs/R/DisneyFinancialTest.csv'
1: ERROR [HY000] [MapR][Drill] (1070) Drill fails to execute the query with error [30017]Communication error. End of file
它与 sql 的连接工作得很好,但它显示演习无法执行。这个问题是什么意思?谁能帮我解决这个问题?
quit;
被解释为 SQL 命令,这对 Drill 无效。如果要退出 isql,则只需使用 quit
.
终于找到问题所在了,问题是我的odbc驱动版本和我的drill版本不匹配。我卸载了drill odbc driver 1.2,安装了0.8版本,效果很好。
我参考this link解决了这个问题。