Complete the code to create a broadcast variable in Spark.
broadcastVar = sc.[1](value)Use sc.broadcast() to create a broadcast variable in Spark.
Complete the code to access the value of a broadcast variable.
value = broadcastVar.[1]Access the broadcast variable's data using the .value attribute.
Fix the error in the code to broadcast a dictionary named 'config'.
broadcastConfig = sc.[1](config)The correct method to broadcast is sc.broadcast(). Other options are invalid method names.
Fill both blanks to create a broadcast variable and access its value inside a map function.
broadcastVar = sc.[1](data) result = rdd.map(lambda x: x + broadcastVar.[2])
Use sc.broadcast() to create the broadcast variable and access its data with .value.
Fill all three blanks to broadcast a list, use it in a filter, and collect the results.
broadcastList = sc.[1](myList) filtered = rdd.filter(lambda x: x in broadcastList.[2]) result = filtered.[3]()
Create a broadcast variable with sc.broadcast(), access its data with .value, and collect the filtered results with .collect().