(已解决)WARN jdbc.JdbcUtils: Requested isolation level 1, but transactions are unsupported

背景

spark df写入click house
警告:
WARN jdbc.JdbcUtils: Requested isolation level 1, but transactions are unsupported

reason

Cliskhouse 不支持事务

resolution

写程序设置关闭事务
并发数为1

df.write.mode("append").\
            option("driver", self.ckdriver). \
            option("isolationLevel", "NONE"). \
            option("numPartitions", "1"). \
            jdbc(curl, table='table')

你可能感兴趣的:(pyspark,clickhouse)