update pyspark-notebook to java 21 and derby 10.17.1.0#2424
update pyspark-notebook to java 21 and derby 10.17.1.0#2424nicholasmhughes wants to merge 2 commits intojupyter:mainfrom
Conversation
|
|
||
| # Spark bundles Derby 10.16.1.1 by default; replace it with a fixed release. | ||
| RUN set -eux; \ | ||
| derby_jar="$(find /usr/local -type f -path '*/spark-*-bin-hadoop*/jars/derby-*.jar' | head -n 1)"; \ |
There was a problem hiding this comment.
Can't we limit the find to /usr/local/spark?
There was a problem hiding this comment.
We probably could, and I'm happy to make the change if you're worried about build speed. I was mostly trying to make sure that I didn't miss something in case the Spark installation location changed at some point in the future, or potentially if multiple versions ever got installed in different directories. Just let me know if you'd like to see that change!
There was a problem hiding this comment.
We have a ${SPARK_HOME} env variable for that, so let's use it - it will be both fast and without the hard-code
There was a problem hiding this comment.
sounds good! stand by for new commit.
|
Is this a vulnerability in pyspark, or is there something specific to how docker-stacks installs pyspark? |
It’s not a pyspark-specific vulnerability per-se, and it’s not really a docker-stacks-only behavior either. This CVE is in Apache Derby (a Java dependency). docker-stacks installs the upstream Spark binary distribution, and that Spark bundle includes |
|
Do you think Spark are willing to update their distribution? If your security scanner is picking up this vuln in docker-stacks I presume other organisations will be having similar problem in their own systems if they use the spark distribution. |
Ehhh... probably unlikely that they'll rip out the affected version until Java 17 drops off the support matrix. The fixed Derby jar is only supported on Java 21+. |
|
To add more context, this is the upstream issue: apache/spark#54563 And derby is retired: apache/spark#54563 (comment) If there is a way to easily fix the issue for our images without negatively affecting anyone, we should. |
Describe your changes
Issue ticket if applicable
fixes #2423
Checklist (especially for first-time contributors)