Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Conversation

@duyanghao
Copy link

@duyanghao duyanghao commented Aug 31, 2017

What changes were proposed in this pull request?

Fix #471(Set ENV_DRIVER_MEMORY to memory instead of memory+overhead)

How was this patch tested?

Manual tests show settings do work.

@duyanghao duyanghao force-pushed the fix_driverJvmMemory_branch branch from c7179b4 to cab62f2 Compare August 31, 2017 12:10
Copy link

@ash211 ash211 left a comment

Choose a reason for hiding this comment

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

Looks right to me, please fix the test.

Thanks for spotting this @duyanghao ! I completely missed it when I was just in here

.toMap
assert(envs.size === 6)
assert(envs(ENV_SUBMIT_EXTRA_CLASSPATH) === "/opt/spark/spark-exmaples.jar")
assert(envs(ENV_DRIVER_MEMORY) === "456M")
Copy link

Choose a reason for hiding this comment

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

please change the value here of what this should now be equal to in this test

@ash211 ash211 requested a review from mccheah August 31, 2017 18:20
@ash211
Copy link

ash211 commented Aug 31, 2017

Pushed a change that restored the test -- will merge with an approval from @mccheah

@mccheah mccheah merged commit 728ba0a into apache-spark-on-k8s:branch-2.2-kubernetes Aug 31, 2017
ifilonenko pushed a commit to ifilonenko/spark that referenced this pull request Feb 26, 2019
https://issues.apache.org/jira/browse/SPARK-26626
apache#23556 

## What changes were proposed in this pull request?

This adds a `spark.sql.maxRepeatedAliasSize` config option, which specifies the maximum size of an aliased expression to be substituted (in CollapseProject and PhysicalOperation).  This prevents large aliased expressions from being substituted multiple times and exploding the size of the expression tree, eventually OOMing the driver.

The default config value of 100 was chosen through testing to find the optimally performant value:

![image](https://user-images.githubusercontent.com/17480705/51204201-dd285300-18b7-11e9-8781-dd698df00389.png)

## How was this patch tested?

Added unit tests, and did manual testing
puneetloya pushed a commit to puneetloya/spark that referenced this pull request Mar 11, 2019
…ark-on-k8s#475)

* Set ENV_DRIVER_MEMORY to memory instead of memory+overhead

Signed-off-by: duyanghao <[email protected]>

* Restore test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants