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

LAW support of HDFS targets #174

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions law.cfg.example
Original file line number Diff line number Diff line change
Expand Up @@ -1325,3 +1325,18 @@
; The environment variables defined in this section are applied to all cmssw sandboxes. To
; configure variables per cmssw version, create a section "cmssw_sandbox_env_<cmssw_version>" with
; the desired values.

; --- hdfs_fs section ------------------------------------------------------------------------------

[hdfs_fs]

; Note:
; Remote file operations are handled by HDFS. For more info, see https://hadoop-user-guide.web.cern.ch
;
; Here you can define environmental variables to configure the Hadoop cluster parameters and access.
; Most of the parameters are shared with the already detailed [wlcg_fs] section.
;
; It's probable that more parameters are needed to configure the Hadoop conextion. Those ones are
; included in Luigi configuration, so they may be used by [luigi_hdfs] and [luigi_hadoop]. Complete
; details, here:
; https://luigi.readthedocs.io/en/stable/configuration.html#hadoop
12 changes: 12 additions & 0 deletions law/contrib/hadoop/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# coding: utf-8
# flake8: noqa

"""
HDFS file interface for remote target access.
"""

__all__ = ["HDFSFileInterface"]


# provisioning imports
from law.contrib.hadoop.target import HDFSFileInterface
13 changes: 13 additions & 0 deletions law/contrib/hadoop/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# coding: utf-8

"""
Function returning the config defaults of the hdfs package.
"""


def config_defaults(default_config):
return {
"logging": {
"hdfs": "WARNING",
},
}
Loading