Page MenuHomePhabricator

Spark queries of Google Search Console data fail due to Zstandard error
Closed, ResolvedPublic

Description

When I try to query wmf_raw.google_search_site_impression or wmf_raw.google_search_console_url_impression with Spark, it fails with a message like the following:

WARN TaskSetManager: Lost task 77.0 in stage 5.0 (TID 890) (an-worker1190.eqiad.wmnet executor 53): java.lang.RuntimeException: native zStandard library not available: this version of libhadoop was built without zstd support.

I've tested with both Wmfdata's Spark API and the spark3-sql CLI, with the same result.

Querying on Presto does not produce this kind of error.

Event Timeline

We now have spark 3.5 on the cluster. If you try with spark35-sql, it works.

We picked a higher compression than the usual snappy for this low request raw dataset.

It could be changed in the final refined table. We are open to all suggestions for the final dataset.

Ah, I see. I think it's okay If we're starting to build things that only work with Spark 3.5 as long as we make sure analysts are supported in switching their workflows to Spark 3.5.

In this case, I was able to spin up a Spark 3.5 Jupyter environment by using conda-analytics-next-clone, starting a Jupyter instance with a different Conda environment (to work around T391894), shutting it down, and then starting up the newly created environment. But that needs to be properly documented and shared with analysts; I only knew these details because I've been participating in depth in T338057.