dongjoon-hyun commented on PR #48755:
URL: https://github.com/apache/spark/pull/48755#issuecomment-2456223417
> We can use `--name NAME`?
No, it doesn't work in all cases like the following because
`SparkSession.builder().appName("Spark Pi").getOrCreate()` applied at the last
time, @yaooqinn .
```
$ bin/run-example --name SPARK-50222 SparkPi 2>&1 | grep app_name | jq
{
"ts": "2024-11-05T04:42:04.736Z",
"level": "INFO",
"msg": "Submitted application: Spark Pi",
"context": {
"app_name": "Spark Pi"
},
"logger": "SparkContext"
}
```
```
$ bin/spark-submit --name NEWNAME --class org.apache.spark.examples.SparkPi
examples/jars/spark-examples_2.13-4.0.0-preview2.jar 2>&1 | grep app_name | jq
{
"ts": "2024-11-05T04:41:00.286Z",
"level": "INFO",
"msg": "Submitted application: Spark Pi",
"context": {
"app_name": "Spark Pi"
},
"logger": "SparkContext"
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]