I have created a table with a bucket
CREATE TABLE empl_buck ( EmpID INT, EmpName STRING, Salary FLOAT, DOJ STRING ) CLUSTERED BY (DOJ) INTO 4 Buckets ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n';
Enfonced Bucketing:
SET hive.enforce.bucketing=true;
Loaded the data:
LOAD DATA LOCAL INPATH '/home/jugal/Desktop' INTO TABLE empl_buck;
Now how to view the bucketed data which is stored in the textfile or the other formats in the HDFS?