
Hive external table for twitter hashtags
By: a guest on
Nov 20th, 2012 | syntax:
SQL | size: 0.25 KB | hits: 100 | expires: Never
CREATE EXTERNAL TABLE tweets (
entities STRUCT<
urls:ARRAY<STRING>,
user_mentions:ARRAY<STRING>,
hashtags:ARRAY<STRUCT<text:STRING,indicies:STRING>>>
)
ROW FORMAT SERDE 'com.cloudera.hive.serde.JSONSerDe'
LOCATION '/path/to/your/twitter-json/';