-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An JsonParseException error occurred while calling createOrReplace when use pyspark #179
Comments
Can not reproduce. I'm not familiar w/ python, I translated and simplify you test case to a scala version. No error occurs.
|
I don't have this problem using 0.4.0, but 0.5.0-SNAPSHOT which get from snapshot repositories instead of compiled by me will also throw the error |
Local test w/ Spark 3.2.1 and Spark 3.3.0, everything goes well |
@sketchmind your clickhouse server version ? |
21.3.7.62 |
0.5.0 stable still has this problem, I will recently configured a scala environment to debug it |
experienced the same error when upgraded to 0.5.0 release and configed to use grpc port(9100) with sparksql, but things worked when switched to http port (8123) jars used
setup:
error message:
|
Hi @gfunc, have you set other configurations? |
Please disable compression when you are using gRPC w/ old(before 22.3) ClickHouse and see what will happen.
|
I have set options like this before, still the same error |
I just merged #183 which added clickhouse 21.3 21.8 22.3 22.8 in CI for testing, it would be good if you can tune the build-in test case to reproduce the error in CI. |
the same error with below configuration kubectl exec -ti -n ${namespace} ${spark_cluster}-master-0 -- spark-sql \
--master spark://${spark_cluster}-master-svc:7077 \
--conf spark.sql.catalog.clickhouse=xenon.clickhouse.ClickHouseCatalog \
--conf spark.sql.catalog.clickhouse.host=clickhouse-prod.infra.svc.cluster.local \
--conf spark.sql.catalog.clickhouse.protocol=grpc \
--conf spark.sql.catalog.clickhouse.grpc_port=9100 \
--conf spark.clickhouse.write.compression.codec=none \
--conf spark.clickhouse.read.compression.codec=none \
--conf spark.sql.catalog.clickhouse.user=${CH_TEST_USER} \
--conf spark.sql.catalog.clickhouse.password=${CH_TEST_USER_PW} \
--conf spark.sql.catalog.clickhouse.database=default |
I notice that we run our tests against http protocol only @pan3793 we use http write to |
https://github.com/ClickHouse/clickhouse-java#features
|
GRCP will not be supported with the next version of the Java client. We started to deprecate the package |
Env:
Code:
Console:
The text was updated successfully, but these errors were encountered: