尝试从Spark数据框创建hive表时观察到错误

时间:2017-05-01 23:08:04

标签: apache-spark dataframe hive hivecontext

创建HIVE背景,然后尝试使用视图创建表

Final_Data是一个数据框。

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;;

0 个答案:

没有答案