Re: Schema RDD and saveAsTable in hive

2014-11-03 Thread Michael Armbrust
You need to compile with -Phive and use a HiveContext for that function to work. You can use saveAsParquetFile with a normal SQLContext however. On Mon, Nov 3, 2014 at 3:05 AM, Addanki, Santosh Kumar < santosh.kumar.adda...@sap.com> wrote: > Hi, > > > > I have a schemaRDD created like below :

Schema RDD and saveAsTable in hive

2014-11-03 Thread Addanki, Santosh Kumar
Hi, I have a schemaRDD created like below : schemaTransactions = sqlContext.applySchema(transactions,schema); When I try to save the schemaRDD as a table using : schemaTransactions.saveAsTable("transactions") I get the error below Py4JJavaError: An error occurred while calling o70.saveAsTabl