Connect Apache Spark to an Open Sharing analytics table
Use a downloaded external sharing profile and the Delta Sharing Spark connector to read a shared Machine Data Lake analytics table.
-
You downloaded an external sharing profile for the Machine Data Lake analytics table.
-
Your Apache Spark environment uses Spark, Scala, Java, and Delta Sharing Spark connector versions that Splunk has tested for Open Sharing.
-
Your Apache Spark environment can load packages from Maven Central or from an approved internal artifact repository.
-
You know the share name, schema name, and table name that the client must read.
The Delta Sharing Spark connector reads a shared table by using a table path. The table path is the local sharing profile path followed by # and the fully qualified table name: <profile-file-path>#<share-name>.<schema-name>.<table-name>.
This example shows a batch read of the latest snapshot. For the current Machine Data Lake sharing workflow, do not depend on time travel, Change Data Feed, streaming, Delta table versions, or commit history unless Splunk documents support for those features.
Spark reads the latest snapshot of the shared analytics table through the Delta Sharing profile until the profile expires or sharing is revoked.
For more information about Delta Sharing Spark reads, see Read Delta Sharing Tables and Apache Spark Connector in the Delta Sharing repository.