Skip to content

Conversation

@mikelikespie
Copy link

Hi,

I made some tweaks to allow for subdirectories to be defined by using ${YEAR}, ${MONTH}, ${DAY}, and ${HOUR} which allows for simple partitioning with HDFS and whatnot. It is much more flexible than the "store_tree" patch.

If you'd like me to make some changes just let me know.

Thanks,
Mike

…nt date

This involved the following changes:
  * remove filePath from FileStoreBase
    and replaced with method makeFilePath
    which takes a tm object
  * make every function that formerly
    referenced filePath to reference require
    a tm argument

This will subsitute ${YEAR}, ${MONTH}, ${DAY}, and ${HOUR} in
the 'sub_directory' argument in the configuration file. ex:

  sub_directory=${YEAR}/${MONTH}/${DAY}

Or if for having it work with hive partitions:

  sub_directory=dt=${YEAR}${MONTH}${DAY}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants