You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/server/SparkConnectPlugin.md
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
1
# SparkConnectPlugin
2
2
3
-
`SparkConnectPlugin` is a Spark driver plugin (a `SparkPlugin` ([Apache Spark]({{ book.spark_core }}/plugins/SparkPlugin)) with the [driver-side component](#driverPlugin) only).
3
+
`SparkConnectPlugin` is a Spark driver plugin that [starts a SparkConnectService](SparkConnectService.md#start) upon initialization.
4
4
5
-
`SparkConnectPlugin` is the main entry point for Spark Connect in Apache Spark applications.
5
+
`SparkConnectPlugin` is a `SparkPlugin` ([Spark Core]({{ book.spark_core }}/plugins/SparkPlugin)) with the [driver-side component](#driverPlugin) only.
6
+
7
+
`SparkConnectPlugin` can be installed into Spark applications using `spark.plugins` ([Spark Core]({{ book.spark_core }}/configuration-properties/#spark.plugins)) configuration property (e.g., [Spark Connect Shell](../spark-connect-shell.md)).
6
8
7
9
## Driver-Side Component { #driverPlugin }
8
10
@@ -12,7 +14,7 @@
12
14
driverPlugin(): DriverPlugin
13
15
```
14
16
15
-
`driverPlugin` is part of the `SparkPlugin` ([Apache Spark]({{ book.spark_core }}/plugins/SparkPlugin/#driverPlugin)) abstraction.
17
+
`driverPlugin` is part of the `SparkPlugin` ([Spark Core]({{ book.spark_core }}/plugins/SparkPlugin/#driverPlugin)) abstraction.
16
18
17
19
`driverPlugin` creates a new `DriverPlugin` (Apache Spark) that does the following:
Copy file name to clipboardExpand all lines: docs/server/SparkConnectService.md
+14-7Lines changed: 14 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
* Apache Spark applications (as a [Spark driver plugin](SparkConnectPlugin.md#driverPlugin))
8
8
* On command line as a [SparkConnectServer](SparkConnectServer.md) standalone application
9
9
10
-
Right after `SparkConnectService` has been [started](#start), [a `SparkListenerConnectServiceStarted` event is posted](#postSparkConnectServiceStarted) with all the network connectivity information.
10
+
Right after having been [started](#start), `SparkConnectService`[posts a SparkListenerConnectServiceStarted event](#postSparkConnectServiceStarted) with all the network connectivity information.
11
11
12
12
## Creating Instance
13
13
@@ -61,12 +61,6 @@ Configuration Property | Default Value
61
61
62
62
`startGRPCService`[builds the server](#server) and starts it.
63
63
64
-
If successful, prints out the following INFO message to the logs:
65
-
66
-
```text
67
-
Successfully started service [serviceName] on port [port].
68
-
```
69
-
70
64
### createListenerAndUI { #createListenerAndUI }
71
65
72
66
```scala
@@ -139,3 +133,16 @@ postSparkConnectServiceStarted(): Unit
139
133
`releaseSession` is generated by the gRPC proto compiler from `spark/connect/base.proto`.
140
134
141
135
`releaseSession` creates a [SparkConnectReleaseSessionHandler](SparkConnectReleaseSessionHandler.md) to [handle](SparkConnectReleaseSessionHandler.md#handle) the `ReleaseSessionRequest` request.
136
+
137
+
## Logging
138
+
139
+
Enable `ALL` logging level for `org.apache.spark.sql.connect.service.SparkConnectService` logger to see what happens inside.
140
+
141
+
Add the following line to `conf/log4j2.properties`:
0 commit comments