Huang Xingbo created FLINK-26665:
------------------------------------

             Summary: Improve the error of incomplete pyflink installation 
package
                 Key: FLINK-26665
                 URL: https://issues.apache.org/jira/browse/FLINK-26665
             Project: Flink
          Issue Type: Sub-task
          Components: API / Python
    Affects Versions: 1.16.0
            Reporter: Huang Xingbo


Currently, if the installation package is incomplete, the error message is very 
unfriendly, such as the following error message:

{code: python}
The flink-python jar is not found in the opt folder of the FLINK_HOME: 
D:\Anaconda3\lib\site-packages\pyflink
{code}

We could give more useful messages for pyflink users, such as the following 
error message:

{code:pythoon}
You can fix it by following steps:
Step 1. Check whether the FLINK_HOME environment variable is set. If so, check 
whether there is a flink-python jar package in the $FLINK_HOME/opt directory. 
If not, it means that your flink binary is not complete, and you need to go to 
the official website to download it again. If not set FLINK_HOME environment 
variable, you will skip to step 2

Step 2. Check if there is a flink-python package in the opt directory under the 
pyflink installation package you installed. If not, you need to reinstall it 
with the command `pip install --force-reinstall apache-flink-libraries`
{code}





--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to