我正在尝试将mapr-customer-360项目运行到我的云VM中,并按照GitHub存储库中给出的所有说明进行操作,但是当我启动bokeh服务器并尝试加载http://IP:5006/bokeh时,加载后显示白屏当我检查控制台时,main.py文件中有错误。
2019-03-30 07:53:04,266 Error running application handler <bokeh.application.handlers.directory.DirectoryHandler object at 0x7fd5c2d835c0>: ('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not found and no default driver specified (0) (SQLDriverConnect)')
File "main.py", line 67, in <module>:
conn = pyodbc.connect("DSN=drill64,UID=mapr,PWD=mapr", autocommit=True) Traceback (most recent call last):
File "/root/anaconda3/lib/python3.6/site-packages/bokeh/application/handlers/code_runner.py", line 125, in run
exec(self._code, module.__dict__)
File "/root/customer360/bokeh/main.py", line 67, in <module>
conn = pyodbc.connect("DSN=drill64,UID=mapr,PWD=mapr", autocommit=True)
pyodbc.InterfaceError: ('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not found and no default driver specified (0) (SQLDriverConnect)')
我的odbc驱动程序已正确安装,我参考了较早的StackOverflow文章并尝试运行命令。
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mapr/drillodbc/lib/64
但是当我再次检查时,它显示了这个。
[root@instance-1 ~]# ldd /opt/mapr/drillodbc/lib/64/libmaprdrillodbc64.so
ldd: /opt/mapr/drillodbc/lib/64/libmaprdrillodbc64.so: No such file or directory
[root@instance-1 ~]#
同样,当我使用此命令检查时
python -c 'import pyodbc; print(pyodbc.dataSources()); print(pyodbc.connect("DSN=drill64", autocommit=True))'
我的回应就是这样-
{'ODBC': '', 'MapR Drill 32-bit': '/opt/mapr/drill/lib/32/libdrillodbc_sb32.so', 'MapR Drill 64-bit': '/opt/mapr/drill/lib/64/libdrillodbc_sb64.so'}
Traceback (most recent call last):
File "<string>", line 1, in <module>
pyodbc.InterfaceError: ('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not found and no default driver specified (0) (SQLDriverConnect)')
我当前正在使用带有映射器版本6.1的centos7操作系统