> For the complete documentation index, see [llms.txt](https://zjffdu.gitbook.io/flink-on-zeppelin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zjffdu.gitbook.io/flink-on-zeppelin/execution-mode/yarn-application-mode.md).

# yarn-application mode

Application mode is a new execution mode which is introduced after Flink 1.11. The purpose of application mode is to mitigate the resource pressure on the client side. yarn-application mode would launch a Flink cluster on YARN, where the main() method of the application jar gets executed on the JobManager in YARN.

## Architecture

The is the original yarn mode where Flink Interpreter would run in the same host with Zeppelin server host.

![](/files/-MeJ4sc3FK7EuPDfItfu)

This is yarn-application mode where Flink Interpreter would run in JobManager.

![](/files/-MeJ5-K90iPVldjC0wU1)

## Configuration

It is very to easy to configure `yarn-application` mode, very similar as `yarn` mode

* Configure `FLINK_HOME`
* Configure `flink.execution.mode` as `yarn-application`
* Make sure hadoop client installed, and put hadoop in `PATH`.  Because flink itself doesn't ship hadoop jars, 为Flink本身不带hadoop相关依赖（你可以把flink-shaded-hadoop 拷贝到flink lib下），when zeppelin run flink, it would calll command `hadoop classpath`，then put all the jars under `CLASSPATH`

## Community

Join Zeppelin community to discuss with others&#x20;

{% embed url="<http://zeppelin.apache.org/community.html>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zjffdu.gitbook.io/flink-on-zeppelin/execution-mode/yarn-application-mode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
