Reply
LB
New Contributor
Posts: 1
Registered: ‎07-11-2018

Reach MS SQL via ODBC in Python within CDSW

Hello, we see some samples related to using PYODBC in Python within CDSW at this at bottom (https://www.cloudera.com/documentation/data-science-workbench/latest/topics/cdsw_import_data.html)

I tried this and it failed even after I corrected the URL pointing to the library on google.  I am not knowledgeable enough to debug further.

 

And we have received some guidance here related to unixODBC.

(https://github.com/mkleehammer/pyodbc/wiki/Connecting-to-SQL-Server-from-RHEL-or-Centos)

We are told we must first install this into the CDSW edge node environment.  We could do that, but have not yet, because I am confused by existence of two options.

 

Has anybody succeeded in using either of these ODBC drivers for reach back into an MS SQL database instance to pull data directly via SQL queries into CDSW?  If so, which did you use, and would you be willing to share your verbose steps/experience?  Thank you!

Announcements