Last active
December 23, 2015 14:49
-
-
Save mraad/6651547 to your computer and use it in GitHub Desktop.
Create log4j hive table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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