Skip to content

Commit

Permalink
Set default value of spark.tispark.telemetry.enable as false (pingcap…
Browse files Browse the repository at this point in the history
  • Loading branch information
Daemonxiao authored Feb 15, 2023
1 parent 927c9bb commit 87fbcae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/org/apache/spark/sql/TiExtensions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ object TiExtensions {

/**
* check that telemetry is on
* default on
* default off
*
* @param sparkSession
* @return
*/
def telemetryEnable(sparkSession: SparkSession): Boolean = {
sparkSession.sparkContext.conf
.get(TELEMETRY_ENABEL, "true")
.get(TELEMETRY_ENABEL, "false")
.toBoolean
}
}
4 changes: 2 additions & 2 deletions docs/features/telemetry.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Telemetry
By default, TiSpark collect usage information and share the information with PingCAP. You can close it by configuring
`spark.tispark.telemetry.enable = false` in `spark-default.conf`.
By default, TiSpark does not collect usage information and share the information with PingCAP. You can enable it by configuring
`spark.tispark.telemetry.enable = true` in `spark-default.conf`.

When the telemetry collection feature is enabled, usage information will be shared, including(but not limited to):
* A randomly generated telemetry ID.
Expand Down

0 comments on commit 87fbcae

Please sign in to comment.