python - ODBC/JDBC Driver to Azure connection fails with a 401/403 error when connecting via Power BI/ Python / Tableau
问题描述
I am trying to connect to my companys databricks and I can write a sql script in the notebook and it gives me an output. However, I am currently trying to connect to databricks via python/power bi and i keep getting a 401 and/or 403 error.
^ these are the settings in azure for me.
^^ this is how i put it into the simba spark odbc driver DSN setup.
^ these are my http properties and SSL options as inputted.
^^ ODBC datasource administrator in 64 bit
this is the error that im getting.
^ this is the output when i try to make a connection through python
解决方案
我遇到了同样的问题,然后发现没有创建个人访问令牌。当我们克隆集群时,我们错过了创建新令牌。一旦我创建了令牌并提供了它,我就能够连接 JDBC 和 ODBC。
让我知道这是否有效。
编辑:我们还意识到,在此测试之前,我们实际上并没有在浏览器中从这台机器登录到 Microsoft Azure。在使用正确令牌的新测试期间,我们从同一台计算机登录到 Azure 门户。
因此,我们想检查这是否有问题并从 Azure 门户注销,但我们又遇到了类似的错误。因此,如果可以,请在浏览器中登录到使用 ODBC DSN 的同一台计算机上的 Azure 门户,看看它是否有效。
推荐阅读
- docker - Docker 导入失败——“来自守护进程的错误响应:处理 tar 文件时出错(退出状态 1):文件存在”
- c - 在 C 中识别和分配 +NaN 和 -NaN
- redis - 如何在redis中获得2组的交集?
- performance - 与 Google Colab 相比,GPU 在训练某些网络时对 Tensorflow 的改进并不大
- powershell - 重命名包含方括号的文件
- functional-programming - “功能性”Rust 的性能影响是什么?
- wordpress - amp-carousel-button 颜色
- google-sheets - 如何从选定的单元格范围创建唯一列表?
- python-3.x - 在 QtDesigner 中提升 QListWidget
- yii - 我在文件解析方面遇到了一些问题