Skip to content

Instantly share code, notes, and snippets.

@mraad
Last active December 23, 2015 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mraad/6651547 to your computer and use it in GitHub Desktop.
Save mraad/6651547 to your computer and use it in GitHub Desktop.
Create log4j hive table
create external table if not exists log4j(
mm int,
ss int,
level string,
clazz string,
message string
) partitioned by (year int, month int, day int, hour int)
row format delimited
fields terminated by '\t'
lines terminated by '\n'
stored as textfile
location '/flume/';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment