[ 
https://issues.apache.org/jira/browse/FLINK-18166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17133153#comment-17133153
 ] 

Robert Metzger commented on FLINK-18166:
----------------------------------------

Please validate that JAVA_HOME is set in your shell by running {{echo 
$JAVA_HOME}}. If that has an empty output, then Flink can not pick it up.

I don't think this issue relates to Flink, it's rather a Linux question.

> JAVA_HOME is not read from .bashrc when start flink
> ---------------------------------------------------
>
>                 Key: FLINK-18166
>                 URL: https://issues.apache.org/jira/browse/FLINK-18166
>             Project: Flink
>          Issue Type: Bug
>          Components: Deployment / Scripts
>    Affects Versions: 1.10.1
>            Reporter: appleyuchi
>            Priority: Major
>
> when I start flink
> I got error
> Please specify JAVA_HOME. Either in Flink config ./conf/flink-conf.yaml or as 
> system-wide JAVA_HOME.
> But I have already written:
> export JAVA_HOME=~/Java/jdk1.8.0_131
> in .bashrc and open a New Terminal to Fresh it.
> Why my Flink can not recognise the variable set in environment ?
>  
> Thanks for your help~!
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to