You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Eric Yang (Jira)" <ji...@apache.org> on 2020/05/18 16:00:00 UTC
[jira] [Commented] (YARN-10228) Yarn Service fails if am java opts
contains ZK authentication file path
[ https://issues.apache.org/jira/browse/YARN-10228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17110407#comment-17110407 ]
Eric Yang commented on YARN-10228:
----------------------------------
Thank you [~BilwaST] for the bug report. I think there are two methods to resolve this issue:
1. Use YARN service json with:
{code}
"configuration" : {
"properties" : {
"java.security.auth.login.config" : "/opt/hadoop/etc/jaas-zk.conf"
}
}
{code}
2. Allow "/" character to pass through in launch command.
{code}
- Pattern pattern = Pattern.compile("[!~#?@*&%${}()<>\\[\\]|\"\\/,`;]");
+ Pattern pattern = Pattern.compile("[!~#?@*&%${}()<>\\[\\]|\",`;]");
{code}
The second approach will allow the specified yarn.service.am.java.opts to receive "/" character. I am not sure 100% sure, if this could have any undesired loophole. Some confirmation from your side would be great. Thanks
> Yarn Service fails if am java opts contains ZK authentication file path
> -----------------------------------------------------------------------
>
> Key: YARN-10228
> URL: https://issues.apache.org/jira/browse/YARN-10228
> Project: Hadoop YARN
> Issue Type: Bug
> Reporter: Bilwa S T
> Assignee: Bilwa S T
> Priority: Major
>
> If i configureĀ
> {code:java}
> yarn.service.am.java.opts=-Xmx768m -Djava.security.auth.login.config=/opt/hadoop/etc/jaas-zk.conf
> {code}
> Invalid character error is getting printed .
> This is due to jvm opts validation added in YARN-9718
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org