The Spark SQL CLI is a sparl sql client tool to run the Hive metastore service in local mode and execute queries input from the command line.
The Spark SQL CLI cannot talk to the Thrift JDBC server.
To start the Spark SQL CLI, run the following in the Spark directory:
./bin/spark-sql