Skip to content

Conversation

@HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

Currently, if I run spark-shell in my local, it started to show the logs as below:

$ ./bin/spark-shell
...
19/02/28 04:42:43 INFO SecurityManager: Changing view acls to: hkwon
19/02/28 04:42:43 INFO SecurityManager: Changing modify acls to: hkwon
19/02/28 04:42:43 INFO SecurityManager: Changing view acls groups to:
19/02/28 04:42:43 INFO SecurityManager: Changing modify acls groups to:
19/02/28 04:42:43 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users  with view permissions: Set(hkwon); groups with view permissions: Set(); users  with modify permissions: Set(hkwon); groups with modify permissions: Set()
19/02/28 04:42:43 INFO SignalUtils: Registered signal handler for INT
19/02/28 04:42:48 INFO SparkContext: Running Spark version 3.0.0-SNAPSHOT
19/02/28 04:42:48 INFO SparkContext: Submitted application: Spark shell
19/02/28 04:42:48 INFO SecurityManager: Changing view acls to: hkwon

Seems to be the cause is #23806 and prepareSubmitEnvironment looks actually reinitializing the logging again.

This PR proposes to uninitializing log later after prepareSubmitEnvironment.

How was this patch tested?

Manually tested.

@HyukjinKwon
Copy link
Member Author

cc @vanzin

@vanzin
Copy link
Contributor

vanzin commented Feb 27, 2019

looks good (haven't tried myself but looks sane).

@SparkQA
Copy link

SparkQA commented Feb 28, 2019

Test build #102832 has finished for PR 23911 at commit 40ec592.

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

@vanzin
Copy link
Contributor

vanzin commented Feb 28, 2019

Merging to master.

@vanzin vanzin closed this in 6e31ccf Feb 28, 2019
@HyukjinKwon
Copy link
Member Author

Thanks, @vanzin

vanzin pushed a commit to vanzin/spark that referenced this pull request Aug 21, 2019
…tEnvironment` in SparkSubmit

Currently, if I run `spark-shell` in my local, it started to show the logs as below:

```
$ ./bin/spark-shell
...
19/02/28 04:42:43 INFO SecurityManager: Changing view acls to: hkwon
19/02/28 04:42:43 INFO SecurityManager: Changing modify acls to: hkwon
19/02/28 04:42:43 INFO SecurityManager: Changing view acls groups to:
19/02/28 04:42:43 INFO SecurityManager: Changing modify acls groups to:
19/02/28 04:42:43 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users  with view permissions: Set(hkwon); groups with view permissions: Set(); users  with modify permissions: Set(hkwon); groups with modify permissions: Set()
19/02/28 04:42:43 INFO SignalUtils: Registered signal handler for INT
19/02/28 04:42:48 INFO SparkContext: Running Spark version 3.0.0-SNAPSHOT
19/02/28 04:42:48 INFO SparkContext: Submitted application: Spark shell
19/02/28 04:42:48 INFO SecurityManager: Changing view acls to: hkwon
```

Seems to be the cause is apache#23806 and `prepareSubmitEnvironment` looks actually reinitializing the logging again.

This PR proposes to uninitializing log later after `prepareSubmitEnvironment`.

Manually tested.

Closes apache#23911 from HyukjinKwon/SPARK-26895.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Marcelo Vanzin <[email protected]>
(cherry picked from commit 6e31ccf)
@HyukjinKwon HyukjinKwon deleted the SPARK-26895 branch March 3, 2020 01:19
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.

3 participants