SHARE
TWEET

Hive external table for twitter hashtags

a guest Nov 20th, 2012 531 Never
  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/';
RAW Paste Data
Top