Must be used before SparkInterpreter (%spark) initialized

Have more questions? Submit a request


  • Avatar
    Chris Fregly

    This is most-likely caused when you are trying to add a dependency using %dep such as the following:

    z.addRepo("maven central").url("")

    after you've already run a %spark command. note that %spark is the default even if you run an empty cell with no code at all.

    the workaround is to restart the Spark interpreter. note that when you do this, you'll lose any notebook-scoped variables as well as interpreter-wide temp tables, etc.