Re: Unable to load data in hive table

2014-05-20 Thread Szehon Ho
Yea, it was just an example, as I didnt know your schema. Then you can do (cust_prof='Pilot') or (cust_prof='Teacher'). Does that work for you? On Tue, May 20, 2014 at 4:27 PM, Rahul Channe wrote: > Hi Szehon, > > I have following records in my File, I want to load the cust table such a > way

Re: Unable to load data in hive table

2014-05-20 Thread Rahul Channe
Hi Szehon, I have following records in my File, I want to load the cust table such a way that the records are partitioned based on profession 401,Kristina,Chung,55,Pilot 402,Paige,Chen,74,Teacher 403,Sherri,Melton,34,Firefighter 404,Gretchen,Hill,66,Computer hardware engineer 4000

Re: Unable to load data in hive table

2014-05-20 Thread Szehon Ho
In this kind of insert where you mention partition, you need to specify which partition. Example load data local inpath './custs' into table custs partition(cust_prof=1); On Mon, May 19, 2014 at 7:02 PM, Rahul Channe wrote: > I have created the following partitioned table in hive > > create ta

Unable to load data in hive table

2014-05-19 Thread Rahul Channe
I have created the following partitioned table in hive create table custs ( cust_id int, first_name String,last_name String,cust_age int ) partitioned by ( cust_prof String) row format delimited fields terminated by ','; when I am trying to load data into the table, I am getting error load dat