Re: Creating Parquet external table using HiveContext API

2015-09-10 Thread Michael Armbrust
Easiest is to just use SQL: hiveContext.sql("CREATE TABLE USING parquet OPTIONS (path '')") When you specify the path its automatically created as an external table. The schema will be discovered. On Wed, Sep 9, 2015 at 9:33 PM, Mohammad Islam wrote: > Hi, > I

Re: Creating Parquet external table using HiveContext API

2015-09-10 Thread Mohammad Islam
Thanks a lot Michael for giving a solution. If I want to provide my own schema, can I do that? On Thursday, September 10, 2015 11:05 AM, Michael Armbrust wrote: Easiest is to just use SQL: hiveContext.sql("CREATE TABLE USING parquet OPTIONS (path '')")

Creating Parquet external table using HiveContext API

2015-09-09 Thread Mohammad Islam
Hi,I want to create  an external hive table using HiveContext. I have the following :1. full path/location of parquet data directory2. name of the new table3. I can get the schema as well. What API will be the best (for 1,3.x or 1.4.x)? I can see 6 createExternalTable() APIs but not sure which