Github user liyinan926 commented on a diff in the pull request: https://github.com/apache/spark/pull/22433#discussion_r219728772 --- Diff: docs/running-on-kubernetes.md --- @@ -340,6 +340,43 @@ RBAC authorization and how to configure Kubernetes service accounts for pods, pl [Using RBAC Authorization](https://kubernetes.io/docs/admin/authorization/rbac/) and [Configure Service Accounts for Pods](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/). +## Running Spark Thrift Server + +Thrift JDBC/ODBC Server (aka Spark Thrift Server or STS) is Spark SQLâs port of Apache Hiveâs HiveServer2 that allows +JDBC/ODBC clients to execute SQL queries over JDBC and ODBC protocols on Apache Spark. + +### Client Deployment Mode + +To start STS in client mode, excute the following command + +```bash +$ sbin/start-thriftserver.sh \ + --master k8s://https://<k8s-apiserver-host>:<k8s-apiserver-port> +``` + +### Cluster Deployment Mode + +To start STS in cluster mode, excute the following command + +```bash +$ sbin/start-thriftserver.sh \ + --master k8s://https://<k8s-apiserver-host>:<k8s-apiserver-port> \ + --deploy-mode cluster +``` + +The most basic workflow is to use the pod name (driver pod name incase of cluster mode and self pod name(pod/container from --- End diff -- The script may be run from a client machine outside a k8s cluster. In this case, there's not even a pod. I would suggest separating the explanation of the user flow details by the deploy mode (client vs cluster).
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org