Comments (4)
Hello @vsaroopchand
Thanks for confirming with a screengrab here. Let me set the context , workarounds and next steps here ( Noam mentioned this earlier, just adding the full context around this)
Context:
The Synapse spark connector is a wrapper that provides abstractions over Kusto spark connector and authentication using the Synapse libraries. Internal to the Synapse auth repos are a set of libraries called TokenLibrary (https://learn.microsoft.com/en-us/azure/synapse-analytics/spark/apache-spark-secure-credentials-with-tokenlibrary?pivots=programming-language-python) . To make it easier for users, the Synapse spark connector calls this TokenLibrary API , gets the token and then passes it when calling Kusto.
The TokenLibrary auth part is broken unfortunately for ManagedIdentity. See illustration below where it fails with a BadRequest for MSI and Certificate based auth and works for an AAD app-based Auth. This is the exception you see bubble up into the notebook execution
Workaround:
- Easiest is to use AAD app based auth in the LinkedService, this will work.
- Using the AZ-Identity/MSAL libraries, get a Token and pass it in as a "accessToken" option in spark.
Next steps:
An ICM perhaps with the Synapse team will help in looking at taking their help and fixing the issue with the TokenLibrary API ..
from azure-kusto-spark.
Thank you @ag-ramachandran - can you provide more context on the first workaround "Easiest is to use AAD app based auth in the LinkedService, this will work."
from azure-kusto-spark.
Hello @vsaroopchand , You will have to create an APP Id / App Secret (Using App registration) and use that in the Synapse Wizard (The UI will request for AppId,AppKey and Tenant).
from azure-kusto-spark.
Thank you. Unfortunately I cannot use Client/Secret. I'll explore the MSAL option.
from azure-kusto-spark.
Related Issues (20)
- Fix TODO's on the code
- java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double HOT 5
- Add additional options for Export to DataStorage
- Unable to execute df.action in synapse. HOT 4
- This repo is missing important files HOT 2
- Update Kusto Java Lib with JDK 11 HOT 1
- Copy table metadata and policies when creating temp tables
- DataServiceException: IOError when trying to retrieve CloudInfo HOT 4
- Can read ADX (free tier) from Databricks but cannot write rows to ADX HOT 4
- Sensitive information printing as plain text in DAG representation, Text Execution Summary, and Details HOT 1
- Inconsistent values when using ForceDistributed vs Single modes
- Wrong SAS URLs gets through parser
- Container cache refresh fails the ingestion
- Maven coordinates not found in Databricks Install libraries - com.microsoft.azure.kusto:kusto-spark_3.0_2.12:4.0.2 HOT 6
- Unable to use connector if uri ends with kusto.fabric.microsoft.com HOT 2
- Kusto Spark connector cannot connect to Fabric Kusto databases HOT 9
- Ingest without spark temp tables HOT 2
- Ingestion hangs when using Maven package but works fine with GitHub release HOT 17
- Azure CLI authentication support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-kusto-spark.