dongjoon-hyun commented on PR #48126:
URL: https://github.com/apache/spark/pull/48126#issuecomment-2357266872
To @HyukjinKwon , I closed the above follow-up and kept this original PR.
> Could we maybe just reuse 'PYSPARK_SUBMIT_ARGS' environment variable set
to '--master local[1]' if this is just dev/test only? I haven't tested cuz I am
away from keyboard today but I think it should work.
This PR has more contributions on top of Python Doc Generations. For
example, `PYSPARK_SUBMIT_ARGS` cannot support `spark-shell` and `spark-sql` and
so on.
```
$ JDK_JAVA_OPTIONS="-Dspark.test.master=local[1]" bin/spark-shell
NOTE: Picked up JDK_JAVA_OPTIONS: -Dspark.test.master=local[1]
NOTE: Picked up JDK_JAVA_OPTIONS: -Dspark.test.master=local[1]
WARNING: Using incubator modules: jdk.incubator.vector
Using Spark's default log4j profile:
org/apache/spark/log4j2-pattern-layout-defaults.properties
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use
setLogLevel(newLevel).
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 4.0.0-SNAPSHOT
/_/
Using Scala version 2.13.14 (OpenJDK 64-Bit Server VM, Java 21.0.4)
Type in expressions to have them evaluated.
Type :help for more information.
24/09/17 17:44:03 WARN NativeCodeLoader: Unable to load native-hadoop
library for your platform... using builtin-java classes where applicable
Spark context Web UI available at http://localhost:4040
Spark context available as 'sc' (master = local[1], app id =
local-1726620243965).
Spark session available as 'spark'.
scala>
```
```
$ JDK_JAVA_OPTIONS="-Dspark.test.master=local[1]" bin/spark-sql
NOTE: Picked up JDK_JAVA_OPTIONS: -Dspark.test.master=local[1]
NOTE: Picked up JDK_JAVA_OPTIONS: -Dspark.test.master=local[1]
WARNING: Using incubator modules: jdk.incubator.vector
Using Spark's default log4j profile:
org/apache/spark/log4j2-pattern-layout-defaults.properties
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use
setLogLevel(newLevel).
24/09/17 17:44:19 WARN NativeCodeLoader: Unable to load native-hadoop
library for your platform... using builtin-java classes where applicable
24/09/17 17:44:22 WARN ObjectStore: Version information not found in
metastore. hive.metastore.schema.verification is not enabled so recording the
schema version 2.3.0
24/09/17 17:44:22 WARN ObjectStore: setMetaStoreSchemaVersion called but
recording version is disabled: version = 2.3.0, comment = Set by MetaStore
[email protected]
24/09/17 17:44:22 WARN ObjectStore: Failed to get database default,
returning NoSuchObjectException
Spark Web UI available at http://localhost:4040
Spark master: local[1], Application Id: local-1726620260476
spark-sql (default)>
```
--
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]