Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/12812#discussion_r61674919
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala
---
@@ -64,6 +65,22 @@ class SparkSession private(
| Session-related state |
* ----------------------- */
+ {
+ val defaultWarehousePath =
+ SQLConf.WAREHOUSE_PATH
+ .defaultValueString
+ .replace("${system:user.dir}", System.getProperty("user.dir"))
+ val warehousePath = sparkContext.conf.get(
+ SQLConf.WAREHOUSE_PATH.key,
+ defaultWarehousePath)
+ sparkContext.conf.set(SQLConf.WAREHOUSE_PATH.key, warehousePath)
+ sparkContext.conf.set("hive.metastore.warehouse.dir", warehousePath)
+ // scalastyle:off println
+ println(s"Setting warehouse location to $warehousePath")
--- End diff --
That's what the logging is for I feel? Or we print it in the spark-shell.
In general printlns are very annoying, unless the program is used as a command
line program.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]