创建了配置单元上下文,然后尝试使用视图创建表
最后的数据是一个Dataframe。
val sqlCtx= new HiveContext(sc)
Final_Data.createOrReplaceTempView("Final_Prediction")
sqlCtx.sql("create table results as select * from Final_Prediction")
错误日志如下-
Name: org.apache.spark.sql.AnalysisException
Message: unresolved operator 'CreateHiveTableAsSelectLogicalPlan CatalogTable(
Table: `hve1`
Created: Mon May 01 17:44:38 CDT 2017
Last Access: Wed Dec 31 17:59:59 CST 1969
Type: MANAGED
Storage(InputFormat: org.apache.hadoop.mapred.TextInputFormat, OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat)), false;;
暂无答案!
目前还没有任何答案,快来回答吧!