Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subdir templates #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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