2.10 - Starting Scala REPL - Teradata QueryGrid

Teradata® QueryGrid™ Installation and User Guide

prodname
Teradata QueryGrid
vrm_release
2.10
created_date
September 2019
category
Administration
Configuration
Installation
User Guide
featnum
B035-5991-099K
The supported client for interacting with the Spark SQL initiator is the Scala Read-Eval-Print-Loop (REPL), referred to as the spark-shell. In order to use the Spark SQL initiator, spark-shell must be started using the following JAR file:
  • spark-loaderfactory
  1. Log on to the node you want to start spark-shell.
  2. Locate the connector path at /opt/teradata/tdqg/connector/tdqg-spark-connector/<version>/lib/)
  3. Add the JAR file.
  4. Start the spark-shell. The following is an example path for starting spark-shell:
    spark-shell --jars /opt/teradata/tdqg/connector/tdqg-spark-connector/
    version/lib/spark-loaderfactory-version.jar --master yarn
    When using CDH clusters, use the spark2-shell command name instead of spark-shell.