andrew
andrew

Reputation: 4089

SBT console vs Spark-Shell for interactive development

I'm wondering if there are any important differences between using SBT console and Spark-shell for interactively developing new code for a Spark project (notebooks are not really an option w/ the server firewalls).

Are there others?

Upvotes: 0

Views: 383

Answers (2)

afeldman
afeldman

Reputation: 512

From my experience sbt calls external jars innately spark shell calls series of imports and contexts innately. I prefer spark shell because it follows the standard you need to adhere to when build the spark submit session.

For running the code in production you need to build the code into jars, calling them via spark submit. To build that you need to package it via sbt (compilation check) and run the spark submit submit call (logic check).

You can develope using either tool but you should code as if you did not have the advantages of sbt (calling the jars) and spark shell (calling the imports and contexts) because spark submit doesn't do either.

Upvotes: 1

Ged
Ged

Reputation: 18098

With SBT you need not install SPARK itself theoretically.

I use databricks.

Upvotes: 1

Related Questions