cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

dbx - run unit test error (java.lang.NoSuchMethodError)

aka1
New Contributor II

I am setting up dbx for the fist time on Windows 10.

Strictly following https://dbx.readthedocs.io/en/latest/guides/python/python_quickstart/

openjdk is installed

conda install -c conda-forge openjdk=11.0.15

winutils.exe for Hadoop 3 is downloaded, path is set up

Local Dependencies:

image.png 

Spark 3.3.1:

image

dbx version

image 

I am stuck on the final step (unit tests run):

pytest tests/unit

Error: java.lang.NoSuchMethodError: 'void org.apache.spark.sql.execution.datasources.parquet.ParquetSchemaConverter$.checkFieldName(java.lang.String)'

    if is_error(answer)[0]:
            if len(answer) > 1:
                type = answer[1]
                value = OUTPUT_CONVERTER[type](answer[2:], gateway_client)
                if answer[1] == REFERENCE_TYPE:
>                   raise Py4JJavaError(
                        "An error occurred while calling {0}{1}{2}.\n".
                        format(target_id, ".", name), value)
E                   py4j.protocol.Py4JJavaError: An error occurred while calling o59.saveAsTable.
E                   : java.lang.NoSuchMethodError: 'void org.apache.spark.sql.execution.datasources.parquet.ParquetSchemaConverter$.checkFieldName(java.lang.String)'
E                       at org.apache.spark.sql.delta.schema.SchemaUtils$.$anonfun$checkFieldNames$1(SchemaUtils.scala:890)

Could you please help me to solve the issue ?

1 REPLY 1

Aviral-Bhardwaj
Esteemed Contributor III

this seems code issue only

AviralBhardwaj

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group