Open AliUz opened 7 years ago
By adding freedts-dev
to the buildDeps
I was able to fix it. Hope this can help someone else out there :)
@AliUz could you walk me through exactly what you did here. I'm trying to do the same and struggling mightly
@alexanderfournier I just added the freedts-dev
package to the initial buildDeps
list and I was able to install airflow with mssql
@AliUz Do I have to rebuild the container or is there a way to do that post mortem ha. Sorry this is the first time I've used docker so I'm still green. Have you also tried the new odbc connector for mac os yet (they just came out with an alternative ... I can't seem to get that working either lol)
@alexanderfournier you will need to rebuild the container.
I am trying this as well and also new to Docker. When I follow the "add freetds-dev
to the buildDeps
list" referenced above it got through (re)building the container.
However, when I actually hit http://localhost:8080/admin/, every DAG that uses MSSQL fails to load with a message like the following:
Broken DAG: [<path-to-dag>] libsybdb.so.5: cannot open shared object file: No such file or directory
It appears that something is missing in the install. I found other pages referencing needing to symlink the libsybdb.so.5
file but I'm not sure where, or if, that needs to be done.
Hey @joshuasheppard Heads up but Microsoft released an ODBC that works with mac now so you don't need freetds. Appreciate the feedback I got to the same point you did after some tweaking... stuck where you are. damn.
@alexanderfournier - got past the error just now by adding freetds-bin \
before python3-pip \
in the Dockerfile.
In reference to the Microsoft ODBC [driver], have you found a way to use that in this Dockerfile? I'm able to connect from my Mac just fine (last I checked) but wasn't able to in this Debian container (until a few minutes ago).
Thoughts on a PR with freetds-dev
added to the buildDeps
list and freetds-bin
to the regular dependencies list? If it's useful, I will make the PR (assuming no one beats me to it).
@joshuasheppard I'd be interested in that PR. Need to connect to mssql as well..
Could #205 be merged?
Actually, we also need:
&& pip install apache-airflow[crypto,celery,postgres,hive,jdbc,mysql,pymssql]==$AIRFLOW_VERSION \
I've found that to get this to work with Azure SQL you may also need to recompile FreeTDS from scratch with additional options (we have it with --with-libiconv --with-openssl, but not sure both are needed).
I tried adding the
mssql
package inapache-airflow
(pip install apache-airflow[crypto,celery,postgres,hive,jdbc,mssql]==1.8.2
) and got the following error:Any way to fix this? I need to be able to use the
MsSqlHook
in my environment.