Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. REVISION 12 30364918 Anarchism 2005-12-06T17:44:47Z RJII 141644
  2.  
  3. create external table testTable (
  4. tag string,
  5. a string,
  6. r string
  7. )
  8. row format SERDE 'org.apache.hadoop.hive.contrib.serde2.RegexSerDe'
  9. WITH SERDEPROPERTIES(
  10. "input.regex" = "REVISIONs,[0-9]*,s,[0-9]*,s[a-zA-Z0-9]*s,[0-9]*-[0-9]*-[0-9]*T[0-9]*:[0-9]*:[0-9]*Z",
  11. "output.format.string" = "%1$s %2$s %3$s")
  12. stored as textfile
  13. location 'hdfs://location:8020/user/bd4-project1/enwiki-20080103-sample';
  14.  
  15. create table ts_test2(
  16. tag string,
  17. a string,
  18. r string
  19. )
  20. row format SERDE 'org.apache.hadoop.hive.contrib.serde2.RegexSerDe'
  21. WITH SERDEPROPERTIES(
  22. "input.regex" = "REVISION ([0-9]+) ([0-9]+) [a-zA-Z0-9]+ ([0-9]+-[0-9]+-[0-9]+T[0-9]+:[0-9]+:[0-9]+[Z]) RJII [0-9]+$",
  23. "output.format.string" = "%1$s %2$s %3$s");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement