public class YarnSiteAclXmlBuilder
extends java.lang.Object
| Constructor | Description |
|---|---|
YarnSiteAclXmlBuilder(java.lang.String pathToYarnSiteXml) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
build() |
Builds the yarn-site.xml file, either freshly from
YARN_SITE_TEMPLATE_FILE or by merging with pathToYarnSiteXml. |
static void |
main(java.lang.String[] args) |
Usage : YarnSiteAclXmlBuilder pathToYarnSiteXml
|
public YarnSiteAclXmlBuilder(java.lang.String pathToYarnSiteXml)
public java.lang.String build()
throws java.io.IOException
YARN_SITE_TEMPLATE_FILE or by merging with pathToYarnSiteXml.
If pathToYarnSiteXml is a valid file, then the contents of the file are
read and CONFIG_DEMARCATION is replaced with
the new contents returned by buildYarnSiteXmlFromTemplate().java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.