Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

SNAP ThriftServer Startup Script

hbutani edited this page Nov 27, 2018 · 1 revision

This is an unsupported feature; please check with us before using

Set the spark.sparklinedata.startup.script to a sql script file. This script will be run in a separate sparkSession before the ThriftServer listener is started(once the listener starts, clients can create sessions against the server). The script has the same syntax as a spark sql script: lines starting with -- are treated as comments; commands are separated by ;

Set the spark.sparklinedata.startup.script.exec.delay(to a number, that is interpreted as number of seconds) to introduce a delay before the the script is executed. The delay maybe necessary to allow executors to register with the driver. The delay is capped at 300 seconds

Any statements executed as logged at INFO level. If an error is encountered in this script, it is logged but Thriftserver startUp proceeds as normal.

Clone this wiki locally