Here's an ability to connect to Drill via ODBC using pyodbc module.
I've decided not to convert username and password parameters returned from create_connect_args to UID and PWD respectively and in general not to convert URL parameters (username:password@hostname:port) to valid Drill ODBC properties to prevent any misinterpretation of parameters in connection strings like drill+odbc://myName:myPWD@localhost:31010/?UID=notMyName.
And I've added note on this in README.md.
But I can implement it, if you find it useful.
Testing done
I was able to run python test/test_odbc.py successfully on CentOS/Ubuntu machines. Drill was configured to authenticate users with PAM and SSL was disabled, plus I've created user admin with password password on machine with Drill server . Also, I was able to connect from Python shell to Drill with MapRSASL.
Here's an ability to connect to Drill via ODBC using
pyodbc
module.I've decided not to convert
username
andpassword
parameters returned fromcreate_connect_args
toUID
andPWD
respectively and in general not to convert URL parameters (username:password@hostname:port
) to valid Drill ODBC properties to prevent any misinterpretation of parameters in connection strings likedrill+odbc://myName:myPWD@localhost:31010/?UID=notMyName
. And I've added note on this in README.md. But I can implement it, if you find it useful.Testing done I was able to run
python test/test_odbc.py
successfully on CentOS/Ubuntu machines. Drill was configured to authenticate users with PAM and SSL was disabled, plus I've created useradmin
with passwordpassword
on machine with Drill server . Also, I was able to connect from Python shell to Drill with MapRSASL.