You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/03/18 02:43:39 UTC

[GitHub] [spark] HyukjinKwon opened a new pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

HyukjinKwon opened a new pull request #35907:
URL: https://github.com/apache/spark/pull/35907


   ### What changes were proposed in this pull request?
   
   This PR is a retry of https://github.com/apache/spark/pull/35871 with bumping up the version to 0.10.9.5.
   It was reverted because of Python 3.10 is broken, and Python 3.10 was not officially supported in Py4J.
   
   In Py4J 0.10.9.5, the issue was fixed (https://github.com/py4j/py4j/pull/475), and it added Python 3.10 support officially with CI set up (https://github.com/py4j/py4j/pull/477).
   
   
   ### Why are the changes needed?
   
   See https://github.com/apache/spark/pull/35871 
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   See https://github.com/apache/spark/pull/35871 
   
   
   ### How was this patch tested?
   
   Py4J sets up Python 3.10 CI now, and I manually tested PySpark with Python 3.10 with this patch:
   
   ```bash
   ./bin/pyspark
   ```
   
   ```
   import py4j
   py4j.__version__
   spark.range(10).show()
   ```
   
   ```
   Using Python version 3.10.0 (default, Mar  3 2022 03:57:21)
   Spark context Web UI available at http://172.30.5.50:4040
   Spark context available as 'sc' (master = local[*], app id = local-1647571387534).
   SparkSession available as 'spark'.
   >>> import py4j
   >>> py4j.__version__
   '0.10.9.5'
   >>> spark.range(10).show()
   +---+
   | id|
   +---+
   ...
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun commented on pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on pull request #35907:
URL: https://github.com/apache/spark/pull/35907#issuecomment-1071984246


   Oh, got it. If you reverted cleanly from all branches, there is no problem.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun commented on pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on pull request #35907:
URL: https://github.com/apache/spark/pull/35907#issuecomment-1071974033


   SPARK-38563 solved the resource leakage and new JIRA adds Python 3.10 support.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun commented on pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun commented on pull request #35907:
URL: https://github.com/apache/spark/pull/35907#issuecomment-1071974033






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon closed pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
HyukjinKwon closed pull request #35907:
URL: https://github.com/apache/spark/pull/35907


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon edited a comment on pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
HyukjinKwon edited a comment on pull request #35907:
URL: https://github.com/apache/spark/pull/35907#issuecomment-1071974826


   BTW, Python 3.10 already works with Spark 3.2 too - Py4J upgrade broke that (unofficial) support.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #35907:
URL: https://github.com/apache/spark/pull/35907#issuecomment-1072032333


   Merged to master, branch-3.3 and branch-3.2.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #35907:
URL: https://github.com/apache/spark/pull/35907#issuecomment-1071974826


   BTW, Python 3.10 already works with Spark 3.2 too


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon edited a comment on pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
HyukjinKwon edited a comment on pull request #35907:
URL: https://github.com/apache/spark/pull/35907#issuecomment-1071974826


   BTW, Python 3.10 already works with Spark 3.2 too - Py4J upgrade broke that (unofficial) support.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #35907:
URL: https://github.com/apache/spark/pull/35907#issuecomment-1071974307


   Oh no. That's not released yet. i reverted it from branch-3.2 too.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon closed pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
HyukjinKwon closed pull request #35907:
URL: https://github.com/apache/spark/pull/35907


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #35907:
URL: https://github.com/apache/spark/pull/35907#issuecomment-1071971950






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #35907:
URL: https://github.com/apache/spark/pull/35907#issuecomment-1071977675


   Technically what you said is correct because `branch-3.2` only officially supports Python up to 3.9 but I will port this together to branch-3.2 if you don't mind just to reduce the breakage (although it's not official). The risk here is very small.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun edited a comment on pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun edited a comment on pull request #35907:
URL: https://github.com/apache/spark/pull/35907#issuecomment-1071974033


   SPARK-38563 solved the resource leakage and new JIRA adds Python 3.10 support (on top of it)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun edited a comment on pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun edited a comment on pull request #35907:
URL: https://github.com/apache/spark/pull/35907#issuecomment-1071974033






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on pull request #35907:
URL: https://github.com/apache/spark/pull/35907#issuecomment-1071971950


   cc @dongjoon-hyun @wangyum FYI


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] dongjoon-hyun edited a comment on pull request #35907: [SPARK-38563][PYTHON] Upgrade to Py4J 0.10.9.5

Posted by GitBox <gi...@apache.org>.
dongjoon-hyun edited a comment on pull request #35907:
URL: https://github.com/apache/spark/pull/35907#issuecomment-1071974033


   SPARK-38563 solved the resource leakage in `branch-3.2` and new JIRA adds Python 3.10 support (on top of it)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org