Skip to content

Commit

Permalink
Playground: Enable async_insert wait_for_async_insert by default
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Feb 6, 2024
1 parent dbe894e commit b11ccba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/conf/spark-defaults.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ spark.sql.catalog.clickhouse_s1r1.http_port=8123
spark.sql.catalog.clickhouse_s1r1.user=default
spark.sql.catalog.clickhouse_s1r1.password=
spark.sql.catalog.clickhouse_s1r1.database=default
spark.sql.catalog.clickhouse_s1r1.option.custom_http_params=async_insert=1,wait_for_async_insert=1

spark.sql.catalog.clickhouse_s1r2=xenon.clickhouse.ClickHouseCatalog
spark.sql.catalog.clickhouse_s1r2.host=clickhouse-s1r2
Expand All @@ -58,6 +59,7 @@ spark.sql.catalog.clickhouse_s1r2.http_port=8123
spark.sql.catalog.clickhouse_s1r2.user=default
spark.sql.catalog.clickhouse_s1r2.password=
spark.sql.catalog.clickhouse_s1r2.database=default
spark.sql.catalog.clickhouse_s1r2.option.custom_http_params=async_insert=1,wait_for_async_insert=1

spark.sql.catalog.clickhouse_s2r1=xenon.clickhouse.ClickHouseCatalog
spark.sql.catalog.clickhouse_s2r1.host=clickhouse-s2r1
Expand All @@ -66,6 +68,7 @@ spark.sql.catalog.clickhouse_s2r1.http_port=8123
spark.sql.catalog.clickhouse_s2r1.user=default
spark.sql.catalog.clickhouse_s2r1.password=
spark.sql.catalog.clickhouse_s2r1.database=default
spark.sql.catalog.clickhouse_s2r1.option.custom_http_params=async_insert=1,wait_for_async_insert=1

spark.sql.catalog.clickhouse_s2r2=xenon.clickhouse.ClickHouseCatalog
spark.sql.catalog.clickhouse_s2r2.host=clickhouse-s2r2
Expand All @@ -74,6 +77,7 @@ spark.sql.catalog.clickhouse_s2r2.http_port=8123
spark.sql.catalog.clickhouse_s2r2.user=default
spark.sql.catalog.clickhouse_s2r2.password=
spark.sql.catalog.clickhouse_s2r2.database=default
spark.sql.catalog.clickhouse_s2r2.option.custom_http_params=async_insert=1,wait_for_async_insert=1

spark.clickhouse.write.batchSize=50000
spark.clickhouse.write.maxRetry=2
Expand Down

0 comments on commit b11ccba

Please sign in to comment.