Azure Synapse Apache Spark到Synapse SQL连接器错误用户'<令牌标识的主体>'登录失败

时间:2020-09-23 14:25:08

标签: sql-server scala azure apache-spark

Cannot connect Azure Synapse Apache Spark to Synapse SQL


```
%%spark
import com.microsoft.spark.sqlanalytics.utils.Constants
import org.apache.spark.sql.SqlAnalyticsConnector._

df.write.
option(Constants.SERVER, "servername.database.windows.net").
option(Constants.USER, "xxxx").
option(Constants.PASSWORD, "xxxx").
sqlanalytics("databasename.dbo.TableName", Constants.INTERNAL)
```
I have an error:

`Error : "com.microsoft.sqlserver.jdbc.SQLServerException : Login failed for user '<token-identified principal>'`

我尝试按照MS文档中的说明进行操作,并且继续出现相同的错误。 https://docs.microsoft.com/pt-pt/azure/synapse-analytics/spark/synapse-spark-sql-pool-import-export#usage

有人知道该怎么做吗?

0 个答案:

没有答案