Hi Shaik
You can do bucketing on any kind of hive table (partitions are not a prerequisite for bucketing). You need to specify in your DDL how the data should be distributed among how many buckets like. CREATE TABLE user_info_bucketed(user_id BIGINT, firstname STRING, lastname STRING) CLUSTERED BY(user_id) INTO 256 BUCKETS; http://hive.apache.org/docs/r0.8.1/language_manual/working_with_bucketed_tables.html Based on the values of columns included in CLUSTERED BY the data is distributed among n buckets. (here n = 256). When you are loading data into a bucketed table a MR job is triggered which does the grouping/selection of data into various buckets Regards Bejoy KS ________________________________ From: shaik ahamed <[email protected]> To: [email protected] Sent: Monday, June 25, 2012 1:46 PM Subject: hive buckets Hi Users, I am new to hive ,i need the clarity on hive buckets as this is done with the hive partition table only or we can create a buckets for hive table .please give an example with the sample data.
