Skip to content
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-33363] Add prompt information related to the current task when pyspark/sparkR starts #30266

Closed
wants to merge 11 commits into from
Closed

Conversation

echohlne
Copy link
Contributor

@echohlne echohlne commented Nov 5, 2020

What changes were proposed in this pull request?

add prompt information about current applicationId, current URL and master info when pyspark / sparkR starts.

Why are the changes needed?

The information printed when pyspark/sparkR starts does not prompt the basic information of current application, and it is not convenient when used pyspark/sparkR in dos.

Does this PR introduce any user-facing change?

no

How was this patch tested?

manual test result shows below:
pyspark new print
sparkR

@HyukjinKwon
Copy link
Member

ok to test

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Test build #130684 has finished for PR 30266 at commit d780999.

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

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35295/

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35295/

@github-actions github-actions bot added the R label Nov 6, 2020
@echohlne echohlne changed the title [SPARK-33363] Add prompt information related to the current task when pyspark starts [SPARK-33363] Add prompt information related to the current task when pyspark/sparkR starts Nov 6, 2020
@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35316/

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Test build #130706 has finished for PR 30266 at commit a8bb388.

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

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35316/

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Test build #130716 has finished for PR 30266 at commit aae1264.

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

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Test build #130715 has finished for PR 30266 at commit a929e18.

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

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Test build #130718 has finished for PR 30266 at commit 0aaddd2.

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

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Test build #130719 has finished for PR 30266 at commit 762b86e.

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

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35325/

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35327/

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Test build #130721 has finished for PR 30266 at commit 976e2ce.

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

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35325/

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35327/

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35328/

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35328/

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35330/

@SparkQA
Copy link

SparkQA commented Nov 6, 2020

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35330/

@echohlne
Copy link
Contributor Author

echohlne commented Nov 8, 2020

@HyukjinKwon hi,please help me to review this when you have time, thanks~.

@@ -43,5 +43,8 @@
cat(" /_/", "\n")
cat("\n")

cat("\nSpark context Web UI available at", SparkR::sparkR.uiWebUrl())
cat("\nSpark context available as 'sc' (master = ", unlist(SparkR::sparkR.conf("spark.master")),
Copy link
Member

Choose a reason for hiding this comment

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

Let's remove this line. Spark context is a private API in SparkR.

Copy link
Member

Choose a reason for hiding this comment

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

Namely something like:

cat("\nSparkSession available as 'spark' (master = ", unlist(SparkR::sparkR.conf("spark.master")), ", app id = ", unlist(SparkR::sparkR.conf("spark.app.id")), ").", sep = "")

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

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

Looks good otherwise.

@SparkQA
Copy link

SparkQA commented Nov 9, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35394/

@SparkQA
Copy link

SparkQA commented Nov 9, 2020

Test build #130785 has finished for PR 30266 at commit 732cb2a.

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

@SparkQA
Copy link

SparkQA commented Nov 9, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35394/

@SparkQA
Copy link

SparkQA commented Nov 9, 2020

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35402/

@SparkQA
Copy link

SparkQA commented Nov 9, 2020

Test build #130793 has finished for PR 30266 at commit 9742ad9.

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

@SparkQA
Copy link

SparkQA commented Nov 9, 2020

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/35402/

@echohlne
Copy link
Contributor Author

echohlne commented Nov 9, 2020

@HyukjinKwon done this, please help to review it again, thanks a lot.

@HyukjinKwon
Copy link
Member

Merged to master.

@echohlne echohlne deleted the pyspark-hint-info branch November 10, 2020 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants