Skip to content

Commit acd67ec

Browse files
authored
Set default value of spark.tispark.telemetry.enable as false (#2621) (#2623)
1 parent 9b065cc commit acd67ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/main/scala/org/apache/spark/sql/TiExtensions.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ object TiExtensions {
122122

123123
/**
124124
* check that telemetry is on
125-
* default on
125+
* default off
126126
*
127127
* @param sparkSession
128128
* @return
129129
*/
130130
def telemetryEnable(sparkSession: SparkSession): Boolean = {
131131
sparkSession.sparkContext.conf
132-
.get(TELEMETRY_ENABEL, "true")
132+
.get(TELEMETRY_ENABEL, "false")
133133
.toBoolean
134134
}
135135
}

docs/telemetry.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Telemetry
2-
By default, TiSpark collect usage information and share the information with PingCAP. You can close it by configuring
3-
`spark.tispark.telemetry.enable = false` in `spark-default.conf`.
2+
By default, TiSpark does not collect usage information and share the information with PingCAP. You can enable it by configuring
3+
`spark.tispark.telemetry.enable = true` in `spark-default.conf`.
44

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

0 commit comments

Comments
 (0)