pinot-connectors/pinot-spark-3-connector/examples/README.md
This example demonstrates how to use the Pinot Spark 3 Connector to read data from a Pinot cluster via a proxy with authentication token support.
Apache Spark 3.x installed and spark-shell available in your PATH.
Setup PINOT_HOME env variable:
export PINOT_HOME=/path/to/pinot
The Pinot Spark 3 Connector shaded JAR built and available at:
$PINOT_HOME/pinot-connectors/pinot-spark-3-connector/target/pinot-spark-3-connector-*-shaded.jar
Example Scala script located at:
$PINOT_HOME/pinot-connectors/pinot-spark-3-connector/examples/read_pinot_from_proxy_with_auth_token.scala
Launch the example in spark-shell with the following command:
spark-shell --master 'local[*]' --name read-pinot --jars "$PINOT_HOME/pinot-connectors/pinot-spark-3-connector/target/pinot-spark-3-connector-*-shaded.jar" < "$PINOT_HOME/pinot-connectors/pinot-spark-3-connector/examples/read_pinot_from_proxy_with_auth_token.scala"