Hive loading in partitioned table
I have a log file in HDFS, values are delimited by comma. For example: 2012-10-11 12:00,opened_browser,userid111,deviceid222 Now I want to load this file to Hive table which has columns "timestamp","action" and partitioned by "userid","deviceid". How can I ask Hive to take that last 2 columns in log file as partition for table? All examples e.g. "hive> LOAD DATA INPATH '/user/myname/kv2.txt' OVERWRITE INTO TABLE invites PARTITION (ds='2008-08-15');" require definition of partitions in the script, but I want partitions to set up automatically from HDFS file. The one solution is to create