Advertisement
Guest User

Hive external table for twitter hashtags

a guest
Nov 20th, 2012
927
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.25 KB | None | 0 0
  1. CREATE EXTERNAL TABLE tweets (
  2.  entities STRUCT<
  3.    urls:ARRAY<STRING>,
  4.    user_mentions:ARRAY<STRING>,
  5.    hashtags:ARRAY<STRUCT<text:STRING,indicies:STRING>>>
  6. )
  7. ROW FORMAT SERDE 'com.cloudera.hive.serde.JSONSerDe'
  8. LOCATION '/path/to/your/twitter-json/';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement