2016-03-21 21:03:13 +00:00
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
Hadoop: YARN-UI V2
=================
2016-11-04 14:54:43 +00:00
Prerequisites
-------------
Please make sure Hadoop is built by passing -Pyarn-ui to Maven (reference to BUILDING.txt for more details)
2016-08-24 10:40:19 +00:00
Configurations
-------------
2016-10-18 18:19:55 +00:00
*In `yarn-site.xml` *
2016-08-24 10:40:19 +00:00
| Configuration Property | Description |
|:---- |:---- |
2016-10-18 18:19:55 +00:00
| `yarn.webapp.ui2.enable` | *(Required)* In the server side it indicates whether the new YARN-UI v2 is enabled or not. Defaults to `false` . |
| `yarn.webapp.ui2.war-file-path` | *(Optional)* WAR file path for launching yarn UI2 web application. By default this is empty and YARN will lookup required war file from classpath |
2016-03-21 21:03:13 +00:00
2016-10-18 18:19:55 +00:00
Please note that, If you run YARN daemons locally in your machine for test purpose,
you need the following configurations added to `yarn-site.xml` to enable cross
origin (CORS) support.
2016-08-24 10:40:19 +00:00
2016-10-18 18:19:55 +00:00
| Configuration Property | Value | Description |
|:---- |:---- |:---- |
| `yarn.timeline-service.http-cross-origin.enabled` | true | Enable CORS support for Timeline Server |
| `yarn.resourcemanager.webapp.cross-origin.enabled` | true | Enable CORS support for Resource Manager |
| `yarn.nodemanager.webapp.cross-origin.enabled` | true | Enable CORS support for Node Manager |
2016-08-24 10:40:19 +00:00
2016-10-28 12:50:55 +00:00
Also please ensure that CORS related configurations are enabled in `core-site.xml` .
Kindly refer [here ](https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/HttpAuthentication.html )
2016-08-24 10:40:19 +00:00
Use it
-------------
2016-10-18 18:19:55 +00:00
Open your browser, go to `rm-address:8088/ui2` and try it!
2016-10-26 16:28:30 +00:00
Notes
-------------
- This UI framework is not verified under security environment, please use with caution under security environment.