I have log files with that contain the date and hour in the file name. Is there a way to extract date & hour from the filename to add extra columns in hive, an example of the file is weblogs-20150101-010000.gz.
The method that I know is to sequentially append the date and hour to each line using a map only job, but I am trying to see if there an easier method via hadoop streaming.