Guest User

Untitled

a guest
Aug 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. How to get Hive working with bz2 ?
  2. CREATE TABLE IF NOT EXISTS image_bzip (
  3. image_id STRING,
  4. image_feature STRING,
  5. other_stuff STRING)
  6. ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE LOCATION '/hivestore/bzip';
  7.  
  8. LOAD DATA LOCAL INPATH '/nfs/directory/*.bz2' OVERWRITE INTO TABLE image_bzip;
Add Comment
Please, Sign In to add comment