Liking cljdoc? Tell your friends :D

zero-one.geni.defaults

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.
raw docstring

set-default-session!clj

(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"}))
```
sourceraw docstring

sparkclj

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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close