bhomass
bhomass

Reputation: 3572

how to do broadcast in SparkR 2.2

I find no information for doing broadcast in SparkR 2.2. The syntax broadcast(sc, object) is for the old versions.

Can anyone provide some sample code for this? along with necessary libraries.

Thanks

Upvotes: 0

Views: 135

Answers (1)

desertnaut
desertnaut

Reputation: 60400

broadcast() in SparkR will be available from Spark 2.3, according to this pull request.

In Spark 2.2, you should use hint(); according to the above pull request (scroll down), broadcast(x) in Spark 2.3 will be equivalent to hint(x, "broadcast").

Upvotes: 1

Related Questions