Skip to content

Conversation

tillrohrmann
Copy link
Contributor

The YARN cli will now split the dynamic propertie at the first occurrence of
the = sign instead of splitting it at every = sign. That way we support dynamic
properties of the form -yDenv.java.opts="-DappName=foobar".

The YARN cli will now split the dynamic propertie at the first occurrence of
the = sign instead of splitting it at every = sign. That way we support dynamic
properties of the form -yDenv.java.opts="-DappName=foobar".
Copy link
Contributor

@zentol zentol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had one question, otherwise +1.

String key = propLine.substring(0, firstEquals).trim();
String value = propLine.substring(firstEquals + 1, propLine.length()).trim();

if (!key.isEmpty() && !value.isEmpty()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We didn't reject empty values before. Not sure if there's a valid use-case for that though, maybe overriding/clearing some variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, in order to keep in sync with the old behaviour, I'll remove the check whether a value is empty.

@tillrohrmann
Copy link
Contributor Author

Thanks for the review @zentol. I'll address your comment and then merge the PR once Travis gives green light.

@rmetzger
Copy link
Contributor

+1

@johnboy14
Copy link

Thanks for turning this around quickly @tillrohrmann We are experiencing this issue with AWS EMR. Is it possible to patch the current 1.2.0 version available via EMR?

@tillrohrmann
Copy link
Contributor Author

@johnboy14 I can merge this PR also into the 1.2 branch. This means that it will be included in the next bug fix release 1.2.2. How quickly it will be included in EMR depends a little bit on the AWS/Apache BigTop. We can try to ping them. But if customers complain, then it's much more efficient.

@johnboy14
Copy link

When's the next bug fix release scheduled for @tillrohrmann ?

@tillrohrmann
Copy link
Contributor Author

This is not decided yet. Usually we do it depending on the urgency of the fixes and the time since the last bug fix release. Currently, we're working on the 1.3 release which requires most of our time. Thus, I would assume not before mid of next month but this is a community decision.

@johnboy14
Copy link

johnboy14 commented May 16, 2017

At this time I am looking a workaround. Is there anyway to override the log4j.properties file for each application deployed to EMR?

@asfgit asfgit closed this in dceb5cc May 16, 2017
@tillrohrmann tillrohrmann deleted the fixYarnDynPropertyParsing branch July 6, 2017 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants