Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 01-04-2017 05:34 PM
Hi,
Trying to complete Lab 4 (Riskfactor Analysis with Spark), i got the following error for the last instruction:
%spark hiveContext.sql("create table riskfactor as select * from finalresults")
<console>:28: error: not found: value hiveContext
hiveContext.sql("create table riskfactor as select * from finalresults")
^
Any idea please?
Regards,
Created 01-04-2017 06:00 PM
Did u run the import and initialization of hive context like below ?
import org.apache.spark.sql.hive.orc._ import org.apache.spark.sql._
val hiveContext = new org.apache.spark.sql.hive.HiveContext(sc)
If you still face issues, check if hive is running.
Created 01-04-2017 06:00 PM
Did u run the import and initialization of hive context like below ?
import org.apache.spark.sql.hive.orc._ import org.apache.spark.sql._
val hiveContext = new org.apache.spark.sql.hive.HiveContext(sc)
If you still face issues, check if hive is running.
Created 01-04-2017 06:29 PM
Now it works fine thank you.