[
https://issues.apache.org/jira/browse/FLINK-19378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17201705#comment-17201705
]
Aljoscha Krettek commented on FLINK-19378:
------------------------------------------
I think this is the expected behaviour since you need the Hadoop dependencies
when doing Hadoop business.
Technically, it might work with just the JobManager address from the properties
file but the support code for that is not loaded when Hadoop is not present.
> Running "./bin/flink run" without HADOOP_CLASSPATH to submit job to running
> YARN session fails
> ----------------------------------------------------------------------------------------------
>
> Key: FLINK-19378
> URL: https://issues.apache.org/jira/browse/FLINK-19378
> Project: Flink
> Issue Type: Bug
> Components: Command Line Client, Deployment / YARN
> Affects Versions: 1.11.2
> Reporter: Robert Metzger
> Priority: Major
>
> Steps to reproduce:
> Shell A:
> 1. export HADOOP_CLASSPATH
> 2. start YARN session
> Shell B
> (unset HADOOP_CLASSPATH if it is set automatically)
> 3. start a Flink job using {{./bin/flink run}}.
> It will fail with {{Connection refused: localhost/127.0.0.1:8081}}.
> Expected behavior: connect to YARN cluster using YARN properties file.
> Workaround: set HADOOP_CLASSPATH, then the client will find the properties
> file.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)