Skip to content

Conversation

@HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR adds a note that explicitly spark.executor.pyspark.memory is dependent on resource module's behaviours at Python memory usage.

For instance, I at least see some difference at #21977 (comment)

How was this patch tested?

Manually built the doc.

@HyukjinKwon
Copy link
Member Author

add @rdblue and @vanzin

@SparkQA
Copy link

SparkQA commented Jan 27, 2019

Test build #101723 has finished for PR 23664 at commit fe41943.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jan 27, 2019

Test build #101724 has finished for PR 23664 at commit 88e2aa1.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jan 28, 2019

Test build #101741 has finished for PR 23664 at commit b24a4ac.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jan 31, 2019

Test build #101934 has finished for PR 23664 at commit 7fa33ed.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member Author

Merged to master.

@asfgit asfgit closed this in 0d77d57 Jan 31, 2019
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
…ndent on 'resource'

## What changes were proposed in this pull request?

This PR adds a note that explicitly `spark.executor.pyspark.memory` is dependent on resource module's behaviours at Python memory usage.

For instance, I at least see some difference at apache#21977 (comment)

## How was this patch tested?

Manually built the doc.

Closes apache#23664 from HyukjinKwon/note-resource-dependent.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
@HyukjinKwon HyukjinKwon deleted the note-resource-dependent branch March 3, 2020 01:20
dongjoon-hyun added a commit that referenced this pull request Nov 9, 2021
…environment

### What changes were proposed in this pull request?

This PR aims to ignore `test_memory_limit` on non-Linux environment.

### Why are the changes needed?

Like the documentation #23664, it fails on non-Linux environment like the following MacOS example.

**BEFORE**
```
$ build/sbt -Phadoop-cloud -Phadoop-3.2 test:package
$ python/run-tests --modules pyspark-core
...
======================================================================
FAIL: test_memory_limit (pyspark.tests.test_worker.WorkerMemoryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/dongjoon/APACHE/spark-merge/python/pyspark/tests/test_worker.py", line 212, in test_memory_limit
    self.assertEqual(soft_limit, 2 * 1024 * 1024 * 1024)
AssertionError: 9223372036854775807 != 2147483648

----------------------------------------------------------------------
```

**AFTER**
```
...
Tests passed in 104 seconds

Skipped tests in pyspark.tests.test_serializers with /Users/dongjoon/.pyenv/versions/3.8.12/bin/python3:
    test_serialize (pyspark.tests.test_serializers.SciPyTests) ... skipped 'SciPy not installed'

Skipped tests in pyspark.tests.test_worker with /Users/dongjoon/.pyenv/versions/3.8.12/bin/python3:
    test_memory_limit (pyspark.tests.test_worker.WorkerMemoryTest) ... skipped "Memory limit feature in Python worker is dependent on Python's 'resource' module on Linux; however, not found or not on Linux."
```

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manual.

Closes #34527 from dongjoon-hyun/SPARK-37252.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
dongjoon-hyun added a commit that referenced this pull request Nov 9, 2021
…environment

### What changes were proposed in this pull request?

This PR aims to ignore `test_memory_limit` on non-Linux environment.

### Why are the changes needed?

Like the documentation #23664, it fails on non-Linux environment like the following MacOS example.

**BEFORE**
```
$ build/sbt -Phadoop-cloud -Phadoop-3.2 test:package
$ python/run-tests --modules pyspark-core
...
======================================================================
FAIL: test_memory_limit (pyspark.tests.test_worker.WorkerMemoryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/dongjoon/APACHE/spark-merge/python/pyspark/tests/test_worker.py", line 212, in test_memory_limit
    self.assertEqual(soft_limit, 2 * 1024 * 1024 * 1024)
AssertionError: 9223372036854775807 != 2147483648

----------------------------------------------------------------------
```

**AFTER**
```
...
Tests passed in 104 seconds

Skipped tests in pyspark.tests.test_serializers with /Users/dongjoon/.pyenv/versions/3.8.12/bin/python3:
    test_serialize (pyspark.tests.test_serializers.SciPyTests) ... skipped 'SciPy not installed'

Skipped tests in pyspark.tests.test_worker with /Users/dongjoon/.pyenv/versions/3.8.12/bin/python3:
    test_memory_limit (pyspark.tests.test_worker.WorkerMemoryTest) ... skipped "Memory limit feature in Python worker is dependent on Python's 'resource' module on Linux; however, not found or not on Linux."
```

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manual.

Closes #34527 from dongjoon-hyun/SPARK-37252.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 2c7f201)
Signed-off-by: Dongjoon Hyun <[email protected]>
dongjoon-hyun added a commit that referenced this pull request Nov 9, 2021
…environment

### What changes were proposed in this pull request?

This PR aims to ignore `test_memory_limit` on non-Linux environment.

### Why are the changes needed?

Like the documentation #23664, it fails on non-Linux environment like the following MacOS example.

**BEFORE**
```
$ build/sbt -Phadoop-cloud -Phadoop-3.2 test:package
$ python/run-tests --modules pyspark-core
...
======================================================================
FAIL: test_memory_limit (pyspark.tests.test_worker.WorkerMemoryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/dongjoon/APACHE/spark-merge/python/pyspark/tests/test_worker.py", line 212, in test_memory_limit
    self.assertEqual(soft_limit, 2 * 1024 * 1024 * 1024)
AssertionError: 9223372036854775807 != 2147483648

----------------------------------------------------------------------
```

**AFTER**
```
...
Tests passed in 104 seconds

Skipped tests in pyspark.tests.test_serializers with /Users/dongjoon/.pyenv/versions/3.8.12/bin/python3:
    test_serialize (pyspark.tests.test_serializers.SciPyTests) ... skipped 'SciPy not installed'

Skipped tests in pyspark.tests.test_worker with /Users/dongjoon/.pyenv/versions/3.8.12/bin/python3:
    test_memory_limit (pyspark.tests.test_worker.WorkerMemoryTest) ... skipped "Memory limit feature in Python worker is dependent on Python's 'resource' module on Linux; however, not found or not on Linux."
```

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manual.

Closes #34527 from dongjoon-hyun/SPARK-37252.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 2c7f201)
Signed-off-by: Dongjoon Hyun <[email protected]>
sunchao pushed a commit to sunchao/spark that referenced this pull request Dec 8, 2021
…environment

### What changes were proposed in this pull request?

This PR aims to ignore `test_memory_limit` on non-Linux environment.

### Why are the changes needed?

Like the documentation apache#23664, it fails on non-Linux environment like the following MacOS example.

**BEFORE**
```
$ build/sbt -Phadoop-cloud -Phadoop-3.2 test:package
$ python/run-tests --modules pyspark-core
...
======================================================================
FAIL: test_memory_limit (pyspark.tests.test_worker.WorkerMemoryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/dongjoon/APACHE/spark-merge/python/pyspark/tests/test_worker.py", line 212, in test_memory_limit
    self.assertEqual(soft_limit, 2 * 1024 * 1024 * 1024)
AssertionError: 9223372036854775807 != 2147483648

----------------------------------------------------------------------
```

**AFTER**
```
...
Tests passed in 104 seconds

Skipped tests in pyspark.tests.test_serializers with /Users/dongjoon/.pyenv/versions/3.8.12/bin/python3:
    test_serialize (pyspark.tests.test_serializers.SciPyTests) ... skipped 'SciPy not installed'

Skipped tests in pyspark.tests.test_worker with /Users/dongjoon/.pyenv/versions/3.8.12/bin/python3:
    test_memory_limit (pyspark.tests.test_worker.WorkerMemoryTest) ... skipped "Memory limit feature in Python worker is dependent on Python's 'resource' module on Linux; however, not found or not on Linux."
```

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manual.

Closes apache#34527 from dongjoon-hyun/SPARK-37252.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 2c7f201)
Signed-off-by: Dongjoon Hyun <[email protected]>
catalinii pushed a commit to lyft/spark that referenced this pull request Feb 22, 2022
…environment

### What changes were proposed in this pull request?

This PR aims to ignore `test_memory_limit` on non-Linux environment.

### Why are the changes needed?

Like the documentation apache#23664, it fails on non-Linux environment like the following MacOS example.

**BEFORE**
```
$ build/sbt -Phadoop-cloud -Phadoop-3.2 test:package
$ python/run-tests --modules pyspark-core
...
======================================================================
FAIL: test_memory_limit (pyspark.tests.test_worker.WorkerMemoryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/dongjoon/APACHE/spark-merge/python/pyspark/tests/test_worker.py", line 212, in test_memory_limit
    self.assertEqual(soft_limit, 2 * 1024 * 1024 * 1024)
AssertionError: 9223372036854775807 != 2147483648

----------------------------------------------------------------------
```

**AFTER**
```
...
Tests passed in 104 seconds

Skipped tests in pyspark.tests.test_serializers with /Users/dongjoon/.pyenv/versions/3.8.12/bin/python3:
    test_serialize (pyspark.tests.test_serializers.SciPyTests) ... skipped 'SciPy not installed'

Skipped tests in pyspark.tests.test_worker with /Users/dongjoon/.pyenv/versions/3.8.12/bin/python3:
    test_memory_limit (pyspark.tests.test_worker.WorkerMemoryTest) ... skipped "Memory limit feature in Python worker is dependent on Python's 'resource' module on Linux; however, not found or not on Linux."
```

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manual.

Closes apache#34527 from dongjoon-hyun/SPARK-37252.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 2c7f201)
Signed-off-by: Dongjoon Hyun <[email protected]>
catalinii pushed a commit to lyft/spark that referenced this pull request Mar 4, 2022
…environment

### What changes were proposed in this pull request?

This PR aims to ignore `test_memory_limit` on non-Linux environment.

### Why are the changes needed?

Like the documentation apache#23664, it fails on non-Linux environment like the following MacOS example.

**BEFORE**
```
$ build/sbt -Phadoop-cloud -Phadoop-3.2 test:package
$ python/run-tests --modules pyspark-core
...
======================================================================
FAIL: test_memory_limit (pyspark.tests.test_worker.WorkerMemoryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/dongjoon/APACHE/spark-merge/python/pyspark/tests/test_worker.py", line 212, in test_memory_limit
    self.assertEqual(soft_limit, 2 * 1024 * 1024 * 1024)
AssertionError: 9223372036854775807 != 2147483648

----------------------------------------------------------------------
```

**AFTER**
```
...
Tests passed in 104 seconds

Skipped tests in pyspark.tests.test_serializers with /Users/dongjoon/.pyenv/versions/3.8.12/bin/python3:
    test_serialize (pyspark.tests.test_serializers.SciPyTests) ... skipped 'SciPy not installed'

Skipped tests in pyspark.tests.test_worker with /Users/dongjoon/.pyenv/versions/3.8.12/bin/python3:
    test_memory_limit (pyspark.tests.test_worker.WorkerMemoryTest) ... skipped "Memory limit feature in Python worker is dependent on Python's 'resource' module on Linux; however, not found or not on Linux."
```

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Manual.

Closes apache#34527 from dongjoon-hyun/SPARK-37252.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 2c7f201)
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants