Commit c95ed16
committed
[SPARK-52526] Add
### What changes were proposed in this pull request?
This PR aims to add `Spark Thrift Server` example.
### Why are the changes needed?
To enrich the use case example.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manual tests.
```
$ kubectl apply -f examples/spark-thrift-server.yaml
sparkapplication.spark.apache.org/spark-thrift-server created
$ kubectl get sparkapp
NAME CURRENT STATE AGE
spark-thrift-server RunningHealthy 26s
$ kubectl port-forward spark-thrift-server-0-driver 10000:10000
```
```
$ bin/beeline -u jdbc:hive2://localhost:10000/
Connecting to jdbc:hive2://localhost:10000/
Connected to: Spark SQL (version 4.0.0)
Driver: Hive JDBC (version 2.3.10)
Transaction isolation: TRANSACTION_REPEATABLE_READ
Beeline version 2.3.10 by Apache Hive
0: jdbc:hive2://localhost:10000/> show databases;
+------------+
| namespace |
+------------+
| default |
+------------+
1 row selected (0.363 seconds)
0: jdbc:hive2://localhost:10000/> show tables;
+------------+------------+--------------+
| namespace | tableName | isTemporary |
+------------+------------+--------------+
+------------+------------+--------------+
No rows selected (0.087 seconds)
0: jdbc:hive2://localhost:10000/> Closing: 0: jdbc:hive2://localhost:10000/
```
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes apache#253 from dongjoon-hyun/SPARK-52526.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>Spark Thrift Server example1 parent a182864 commit c95ed16
1 file changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments