Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]Enable customized and isolated python environment for Pyspark #3525

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

saLeox
Copy link
Contributor

@saLeox saLeox commented Sep 23, 2022

What is the purpose of the change

Allows user to specify the isolated environment for pyspark, in case there is a need to utilize special python packages or latest one, like pyArrow, or pandas.

Related issues/PRs

Related issues: #3396

Brief change log

  • Allow user to specify the python environment from global setting via UI;

image

  • The three parameters(example from bellow) will take effect when pyspark initGateway;
spark.yarn.dist.archives=hdfs://acluster/user/spark/python-env/py.tar.gz#environment
spark.pyspark.python=./environment/bin/python
spark.pyspark.driver.python=/usr/local/python-env/py/bin/python

Checklist

  • I have read the Contributing Guidelines on pull requests.
  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the Linkis mailing list first)
  • If this is a code change: I have written unit tests to fully verify the new behavior.

@codecov
Copy link

codecov bot commented Sep 23, 2022

Codecov Report

Merging #3525 (94851e5) into dev-1.3.1 (4874820) will increase coverage by 0.08%.
The diff coverage is 0.00%.

❗ Current head 94851e5 differs from pull request most recent head d2df0e5. Consider uploading reports for the commit d2df0e5 to get more accurate results

@@               Coverage Diff               @@
##             dev-1.3.1    #3525      +/-   ##
===============================================
+ Coverage        14.14%   14.22%   +0.08%     
- Complexity        1512     1523      +11     
===============================================
  Files             1046     1036      -10     
  Lines            38647    38369     -278     
  Branches          5426     5427       +1     
===============================================
- Hits              5465     5459       -6     
+ Misses           32422    32149     -273     
- Partials           760      761       +1     
Impacted Files Coverage Δ
...engineplugin/spark/config/SparkConfiguration.scala 93.54% <ø> (-0.21%) ⬇️
...ineplugin/spark/executor/SparkPythonExecutor.scala 0.00% <0.00%> (ø)
...a/org/apache/linkis/scheduler/queue/Consumer.scala 85.71% <0.00%> (-14.29%) ⬇️
...orcode/LinkisGwAuthenticationErrorCodeSummary.java 63.63% <0.00%> (-8.59%) ⬇️
...data/errorcode/LinkisMetadataErrorCodeSummary.java 59.09% <0.00%> (-7.58%) ⬇️
...s/cs/errorcode/LinkisCsServerErrorCodeSummary.java 58.82% <0.00%> (-2.72%) ⬇️
...s/scheduler/queue/fifoqueue/FIFOUserConsumer.scala 36.79% <0.00%> (-1.89%) ⬇️
...ugin/jdbc/executor/JDBCMultiDatasourceParser.scala 45.86% <0.00%> (-0.71%) ⬇️
...main/scala/org/apache/linkis/rpc/RPCMapCache.scala 0.00% <0.00%> (ø)
.../org/apache/linkis/rpc/transform/RPCConsumer.scala 0.00% <0.00%> (ø)
... and 91 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@casionone
Copy link
Contributor

Run 'mvn spotless:apply' to fix these violations.

@casionone casionone changed the title Enable customized and isolated python environment for Pyspark [WIP]Enable customized and isolated python environment for Pyspark Oct 17, 2022
@casionone casionone changed the title [WIP]Enable customized and isolated python environment for Pyspark Enable customized and isolated python environment for Pyspark Oct 22, 2022
@peacewong peacewong changed the base branch from dev-1.3.1 to dev-1.3.2 February 1, 2023 11:45
@casionone casionone changed the title Enable customized and isolated python environment for Pyspark [WIP]Enable customized and isolated python environment for Pyspark Mar 22, 2023
@jackxu2011 jackxu2011 changed the base branch from dev-1.3.2 to dev-1.4.0 April 7, 2023 14:40
@peacewong peacewong changed the base branch from dev-1.4.0 to master June 20, 2023 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants