[ 
https://issues.apache.org/jira/browse/SPARK-60117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18125717#comment-18125717
 ] 

Lisa Cao commented on SPARK-60117:
----------------------------------

I'm working on this. PR: https://github.com/apache/spark/pull/59280

> Install PyArrow in PySpark Docker image
> ---------------------------------------
>
>                 Key: SPARK-60117
>                 URL: https://issues.apache.org/jira/browse/SPARK-60117
>             Project: Spark
>          Issue Type: Bug
>          Components: Kubernetes
>    Affects Versions: 4.2.0
>            Reporter: Lisa Cao
>            Priority: Major
>              Labels: pull-request-available
>
> Since 4.2.0, regular Python UDFs are Arrow-optimized by default 
> (SPARK-54555), but the PySpark K8s image only installs python3 and 
> python3-pip, so a plain {{@udf}} fails on it:
> {noformat}
> ModuleNotFoundError: No module named 'pyarrow'
> {noformat}
> Installing {{pyarrow>=18.0.0}} fixes it for about 160 MB. I left pandas out 
> since only pandas UDFs need it. Tested by building master's Dockerfiles over 
> the 4.3.0-rc1 distribution and running UDFs through Spark Connect.
> PR: https://github.com/apache/spark/pull/59280 (first raised in 
> apache/spark-docker#137)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to