(Optional) Starting the Spark 2 Thrift Server
To enable and start the Spark 2 Thrift Server:
From
SPARK_HOME, start the Spark 2 SQL Thrift Server. Specify the port value of the Thrift Server (the default is 10015). For example:su spark./sbin/start-thriftserver.sh --master yarn-client --executor-memory 512m --hiveconf hive.server2.thrift.port=100015Use this port when you connect via Beeline.
Kerberos Considerations
If you are installing the Spark 2 Thrift Server on a Kerberos-secured cluster, the following instructions apply:
The Spark 2 Thrift Server must run in the same host as
HiveServer2, so that it can access thehiveserver2keytab.Edit permissions in
/var/run/spark2and/var/log/spark2to specify read/write permissions to the Hive service account.Use the Hive service account to start the
thriftserverprocess.
![]() | Note |
|---|---|
We recommend that you run the Spark 2 Thrift Server as user
|
![]() | Important |
|---|---|
When the Spark 2 Thrift Server runs queries as user |
For Spark 2 jobs that are not submitted through the Thrift Server, the user submitting the job must have access to the Hive metastore in secure mode (using kinit).


![[Note]](../common/images/admon/note.png)
![[Important]](../common/images/admon/important.png)