Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

resolved it

Highlighted

resolved it

 
2 REPLIES 2
Highlighted

Re: resolved it

Super Collaborator

@Kevin Major , you should mention sqlContext instead of sc. Can you please try with

df <- createDataFrame(sqlContext,x)

First, initialize your sqlContext by this:

sqlContext <- sparkRSQL.init(sc)

and then create the data frame.

Highlighted

Re: resolved it

Super Collaborator

@Kevin Major,can you please accept the answer to close the thread.

Don't have an account?
Coming from Hortonworks? Activate your account here