apache spark - What is right way of Broadcasting a big Dataframe -


i have need broadcast 1 big file (converted dataframe) in spark 1.6.1 lookup. whether below code right way -

val file = sc.broadcast(dataframe_df)

then accessing using below code in udf.

def abc{ file.value.sqlcontext.sql(query) .... }

i read sc.broadcast brings data driver first , sends executors not approach this. right? help.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -