Skip to content

Commit f033b49

Browse files
authored
Update hdinsight-apache-kafka-spark-structured-streaming.md
1 parent 14aa2d3 commit f033b49

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/hdinsight/hdinsight-apache-kafka-spark-structured-streaming.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,15 @@ This example demonstrates how to use Spark Structured Streaming with Kafka on HD
183183
184184
4. Load packages used by the Notebook by entering the following information in a Notebook cell. Run the command by using **CTRL + ENTER**.
185185
186+
**We recommend that you disable dynamic allocation by setting spark.dynamicAllocation.enabled to false when running streaming applications.**
187+
186188
```
187189
%%configure -f
188190
{
189191
"conf": {
190192
"spark.jars.packages": "org.apache.spark:spark-sql-kafka-0-10_2.11:2.2.0",
191-
"spark.jars.excludes": "org.scala-lang:scala-reflect,org.apache.spark:spark-tags_2.11"
193+
"spark.jars.excludes": "org.scala-lang:scala-reflect,org.apache.spark:spark-tags_2.11",
194+
"spark.dynamicAllocation.enabled": false
192195
}
193196
}
194197
```

0 commit comments

Comments
 (0)