PrabhuJoseph opened a new pull request, #23700:
URL: https://github.com/apache/flink/pull/23700
## What is the purpose of the change
Currently, the PYTHONPATH includes only platlib
(lib64/python3.7/site-packages) in Python 3.7. Some of the Python packages,
like cloudpickle, are installed in purelib (lib/python3.7/site-packages)
instead of platlib, and so the pyflink jobs are failing with the below error.
This change is to include both purelib and platlib as part of PYTHONPATH.
`
No module named 'cloudpickle
`
```
[hadoop@ip-1-2-3-4 tmp]$ python --version
Python 3.7.16
[hadoop@ip-172-31-44-103 tmp]$ python -m sysconfig | grep site
platlib = "/usr/lib64/python3.7/site-packages"
purelib = "/usr/lib/python3.7/site-packages"
[root@ip-1-2-3-4 container_1699102054926_0016_01_000002]# ls -lrt
/mnt1/yarn/usercache/hadoop/appcache/application_1699102054926_0016/python-dist-bdc13f5d-ee1b-454e-b312-a7fc43634616/python-requirements/lib/python3.7/site-packages/
| grep cloudpickle
drwxr-xr-x 3 yarn yarn 110 Nov 13 09:33 cloudpickle
drwxr-xr-x 2 yarn yarn 102 Nov 13 09:33 cloudpickle-2.2.1.dist-info
```
## Brief change log
* Updated the variable GET_SITE_PACKAGES_PATH_SCRIPT inside of the file
PythonEnvironmentManagerUtils to include purelib (lib/python3.7/site-packages)
along with existing platlib (lib64/python3.7/site-packages).
## Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
## Does this pull request potentially affect one of the following parts:
* Dependencies (does it add or upgrade a dependency): no
* The public API, i.e., is any changed class annotated with
@Public(Evolving): no
* The serializers: no
* The runtime per-record code paths (performance sensitive): no
* Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Kubernetes/Yarn, * ZooKeeper: no
* The S3 file system connector: no
## Documentation
* Does this pull request introduce a new feature? no
* If yes, how is the feature documented? not applicable
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]