Closed mfabina-cedes closed 2 months ago
For anyone else having trouble trying to do this, my work-around was to simply use the azure-kusto-python library and manually convert any query responses to Spark DataFrames. Since I don't need any sort of scalability or performance for my current use-case, this is sufficient.
For DeviceAuth to work it probably has to be a trusted device. Not very sure if ADB is a working scenario for DeviceAuth. It may work with a local notebook or with Synapse with 1P auth. Worth a check
I'm trying to recreate the final snippet from the sample in this repository that uses DeviceAuthentication: https://github.com/Azure/azure-kusto-spark/blob/master/samples/src/main/python/pyKusto.py#L156
I'm executing it in an Azure Databricks notebook with compute running the 14.3 LTS Databricks Runtime Version (includes Apache Spark 3.5.0, Scala 2.12).
I have installed
com.microsoft.azure.kusto:kusto-spark_3.0_2.12:5.0.7
, as per the README's Databricks instructions.However, whenever I try to reference the
DeviceAuthentication
class, I get the following error:In fact, the code to reproduce this is just a simple reference (although, copying the sample code in its completeness also reproduces this issue):
I know that
DeviceAuthentication
exists in thespark_3.0_2.12:5.0.7
JAR, as you can simply unzip the archive and see theDeviceAuthentication.class
file there.What's the issue?
Thank you in advance!