Github user suryag10 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22433#discussion_r226898234
  
    --- 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 --
    
    STS is a server and its best way of deployment in K8S cluster is either 
done through the helm chart or through the yaml file(although it can be done 
through the method you had suggested, but i guess that scenario would be a rare 
case and there will be no HA of the STS server if it is triggered from outside).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to