[docs] Update installation section.#226
Conversation
| ### Install Flink Agents to Flink | ||
|
|
||
|
|
||
| To install the Java dependencies to Flink, run: |
There was a problem hiding this comment.
Why only installing the java dependencies? What happen to the python?
There was a problem hiding this comment.
The python package will be installed to the python interpreter. By export PYTHONPATH before run python job.
export PYTHONPATH=$(python -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
The standalone cluster can find the python package.
There was a problem hiding this comment.
Does it also work for submitting to a remote cluster? If this is the right step, why not include it in the installation doc?
There was a problem hiding this comment.
It works when submitting the job to standalone cluster, I haven't test in yarn or k8s cluster.
I think this is not a installation step, but a submit job step. For user must export the PYTHONPATH each time they start cluster and submit the job.
But just install java package to flink, not install python package may confuse the user, I think maybe we can mention this behavior here.
There was a problem hiding this comment.
I think we should offer both options: export PYTHONPATH in .bashrc for once, or export it everytime before starting a cluster or submitting the job. This should be mentioned in both the installation and deployment documents.
Linked issue: #198
Purpose of change
Update the installation section.
Tests
No
API
No
Documentation
Yes