The SparkSession that Geni functions use when they aren't given one. Requiring Geni doesn't start Spark: the session is looked up, or created, when a function first needs it.
The SparkSession that Geni functions use when they aren't given one. Requiring Geni doesn't start Spark: the session is looked up, or created, when a function first needs it.
(set-default-session! spark)Makes spark the SparkSession that Geni functions use when they aren't
given one, and returns it. Pass nil to go back to Spark's active session.
(g/set-default-session! (g/create-spark-session {:app-name "My App"}))
Makes `spark` the SparkSession that Geni functions use when they aren't
given one, and returns it. Pass nil to go back to Spark's active session.
```clojure
(g/set-default-session! (g/create-spark-session {:app-name "My App"}))
```The default SparkSession, which Geni functions use when they aren't given
one. Deref it to get the session: the one passed to set-default-session!,
or else Spark's active session, or else a new local one. Geni configures
only the sessions it creates, and then only as create-spark-session
describes.
The default SparkSession, which Geni functions use when they aren't given one. Deref it to get the session: the one passed to `set-default-session!`, or else Spark's active session, or else a new local one. Geni configures only the sessions it creates, and then only as `create-spark-session` describes.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |