-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-7277][SQL] Throw exception if the property mapred.reduce.tasks is set to -1 #5811
Conversation
Test build #31436 has finished for PR 5811 at commit
|
if (value == "-1") { | ||
logWarning( | ||
s"Set this property to -1 for automatically determining the number of reducers " + | ||
s"is not supported, showing current ${SQLConf.SHUFFLE_PARTITIONS} instead.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: "Setting this property ..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually can I suggest a small rewording a think is a little clearer?
Setting this property to -1 for automatically determing the number of reducers is not supported. Ignoring request, and showing ${SQLConf.SHUFFLE_PARTITIONS} instead
could you also add a test that things work when you try to set it to -1? from the jira it seems that was a major goal here, to prevent incorrect results. |
though I wonder if instead it should fail (with a good error) if you give a bad value, rather than just logging a message and ignoring the request. any thoughts, @marmbrus? |
Warnings seem likely to be missed. I would throw an exception. |
Thanks. Updated to throw exception now. Also added a test for it. |
Test build #31504 has finished for PR 5811 at commit
|
should not be a related failure. |
test again please. |
Jenkins, retest this please |
Test build #31552 has finished for PR 5811 at commit
|
lgtm |
Has anyone verified that a string comparison against -1 completely fully fixes the issue? Isn't it interpreted as an integer later? |
Setting Since it will parse the given string value, the configuration value of "-01" or "-2" should be able to be parsed to integer value too. As I can tell from the Hive sources, it checks if Although I don't think it will be possible to have such values as setting values for |
Great, thanks for looking into this. |
Test build #31754 has finished for PR 5811 at commit
|
…s is set to -1 JIRA: https://issues.apache.org/jira/browse/SPARK-7277 As automatically determining the number of reducers is not supported (`mapred.reduce.tasks` is set to `-1`), we should throw exception to users. Author: Liang-Chi Hsieh <[email protected]> Closes #5811 from viirya/no_neg_reduce_tasks and squashes the following commits: e518f96 [Liang-Chi Hsieh] Consider other wrong setting values. fd9c817 [Liang-Chi Hsieh] Merge remote-tracking branch 'upstream/master' into no_neg_reduce_tasks 4ede705 [Liang-Chi Hsieh] Throw exception instead of warning message. 68a1c70 [Liang-Chi Hsieh] Show warning message if mapred.reduce.tasks is set to -1. (cherry picked from commit ea3077f) Signed-off-by: Michael Armbrust <[email protected]>
Thanks, merged to master and 1.4 |
…s is set to -1 JIRA: https://issues.apache.org/jira/browse/SPARK-7277 As automatically determining the number of reducers is not supported (`mapred.reduce.tasks` is set to `-1`), we should throw exception to users. Author: Liang-Chi Hsieh <[email protected]> Closes apache#5811 from viirya/no_neg_reduce_tasks and squashes the following commits: e518f96 [Liang-Chi Hsieh] Consider other wrong setting values. fd9c817 [Liang-Chi Hsieh] Merge remote-tracking branch 'upstream/master' into no_neg_reduce_tasks 4ede705 [Liang-Chi Hsieh] Throw exception instead of warning message. 68a1c70 [Liang-Chi Hsieh] Show warning message if mapred.reduce.tasks is set to -1.
…s is set to -1 JIRA: https://issues.apache.org/jira/browse/SPARK-7277 As automatically determining the number of reducers is not supported (`mapred.reduce.tasks` is set to `-1`), we should throw exception to users. Author: Liang-Chi Hsieh <[email protected]> Closes apache#5811 from viirya/no_neg_reduce_tasks and squashes the following commits: e518f96 [Liang-Chi Hsieh] Consider other wrong setting values. fd9c817 [Liang-Chi Hsieh] Merge remote-tracking branch 'upstream/master' into no_neg_reduce_tasks 4ede705 [Liang-Chi Hsieh] Throw exception instead of warning message. 68a1c70 [Liang-Chi Hsieh] Show warning message if mapred.reduce.tasks is set to -1.
…s is set to -1 JIRA: https://issues.apache.org/jira/browse/SPARK-7277 As automatically determining the number of reducers is not supported (`mapred.reduce.tasks` is set to `-1`), we should throw exception to users. Author: Liang-Chi Hsieh <[email protected]> Closes apache#5811 from viirya/no_neg_reduce_tasks and squashes the following commits: e518f96 [Liang-Chi Hsieh] Consider other wrong setting values. fd9c817 [Liang-Chi Hsieh] Merge remote-tracking branch 'upstream/master' into no_neg_reduce_tasks 4ede705 [Liang-Chi Hsieh] Throw exception instead of warning message. 68a1c70 [Liang-Chi Hsieh] Show warning message if mapred.reduce.tasks is set to -1.
JIRA: https://issues.apache.org/jira/browse/SPARK-7277
As automatically determining the number of reducers is not supported (
mapred.reduce.tasks
is set to-1
), we should throw exception to users.