Esempio n. 1
0
 def __init__(
     self,
     oozie_node: Element,
     name: str,
     dag_name: str,
     props: PropertySet,
     jar_files: List[str],
     **kwargs,
 ):
     ActionMapper.__init__(self,
                           oozie_node=oozie_node,
                           dag_name=dag_name,
                           name=name,
                           props=props,
                           **kwargs)
     self.file_extractor = FileExtractor(oozie_node=oozie_node,
                                         props=self.props)
     self.archive_extractor = ArchiveExtractor(oozie_node=oozie_node,
                                               props=self.props)
     self.main_class: Optional[str] = None
     self.java_opts: List[str] = []
     self.args: Optional[List[str]] = None
     self.hdfs_files: Optional[List[str]] = None
     self.hdfs_archives: Optional[List[str]] = None
     self.prepare_extension: PrepareMapperExtension = PrepareMapperExtension(
         self)
     self.jar_files: List[str] = jar_files if jar_files else []
     self.jar_files_in_hdfs: List[str] = []
     self._get_jar_files_in_hdfs_full_paths()
Esempio n. 2
0
 def __init__(self, oozie_node: Element, name: str, props: PropertySet, **kwargs):
     ActionMapper.__init__(self, oozie_node=oozie_node, name=name, props=props, **kwargs)
     self.git_uri: Optional[str] = None
     self.git_branch: Optional[str] = None
     self.destination_path: Optional[str] = None
     self.key_path_uri: Optional[str] = None
     self.key_path: Optional[str] = None
     self.prepare_extension: PrepareMapperExtension = PrepareMapperExtension(self)
Esempio n. 3
0
 def __init__(self, oozie_node: Element, name: str, props: PropertySet,
              **kwargs):
     ActionMapper.__init__(self,
                           oozie_node=oozie_node,
                           name=name,
                           props=props,
                           **kwargs)
     self._parse_oozie_node()
     self.prepare_extension: PrepareMapperExtension = PrepareMapperExtension(
         self)
 def __init__(self, oozie_node: Element, name: str, dag_name: str, props: PropertySet, **kwargs):
     ActionMapper.__init__(
         self, oozie_node=oozie_node, name=name, dag_name=dag_name, props=props, **kwargs
     )
     self.params_dict: Dict[str, str] = {}
     self.file_extractor = FileExtractor(oozie_node=oozie_node, props=self.props)
     self.archive_extractor = ArchiveExtractor(oozie_node=oozie_node, props=self.props)
     self.name_node: Optional[str] = None
     self.hdfs_files: Optional[List[str]] = None
     self.hdfs_archives: Optional[List[str]] = None
     self.prepare_extension: PrepareMapperExtension = PrepareMapperExtension(self)
 def __init__(self, oozie_node: ET.Element, name: str, props: PropertySet, **kwargs):
     ActionMapper.__init__(self, oozie_node=oozie_node, name=name, props=props, **kwargs)
     self.java_class: Optional[str] = None
     self.java_jar: Optional[str] = None
     self.job_name: Optional[str] = None
     self.jars: List[str] = []
     self.application_args: List[str] = []
     self.file_extractor = FileExtractor(oozie_node=oozie_node, props=self.props)
     self.archive_extractor = ArchiveExtractor(oozie_node=oozie_node, props=self.props)
     self.hdfs_files: List[str] = []
     self.hdfs_archives: List[str] = []
     self.dataproc_jars: List[str] = []
     self.spark_opts: Dict[str, str] = {}
     self.prepare_extension: PrepareMapperExtension = PrepareMapperExtension(self)
Esempio n. 6
0
 def __init__(self, oozie_node: Element, name: str, props: PropertySet,
              **kwargs):
     ActionMapper.__init__(self,
                           oozie_node=oozie_node,
                           name=name,
                           props=props,
                           **kwargs)
     self.params_dict: Dict[str, str] = {}
     self.file_extractor = FileExtractor(oozie_node=oozie_node,
                                         props=self.props)
     self.archive_extractor = ArchiveExtractor(oozie_node=oozie_node,
                                               props=self.props)
     self._parse_oozie_node()
     self.prepare_extension: PrepareMapperExtension = PrepareMapperExtension(
         self)
 def __init__(self, oozie_node: Element, name: str, props: PropertySet,
              **kwargs):
     ActionMapper.__init__(self,
                           oozie_node=oozie_node,
                           name=name,
                           props=props,
                           **kwargs)
     self.variables: Optional[Dict[str, str]] = None
     self.query: Optional[str] = None
     self.script: Optional[str] = None
     self.hdfs_files: Optional[List[str]] = None
     self.hdfs_archives: Optional[List[str]] = None
     self.file_extractor = FileExtractor(oozie_node=oozie_node,
                                         props=self.props)
     self.archive_extractor = ArchiveExtractor(oozie_node=oozie_node,
                                               props=self.props)
     self.prepare_extension: PrepareMapperExtension = PrepareMapperExtension(
         self)
Esempio n. 8
0
 def get_mapper_extension(node: ET.Element, props: PropertySet):
     mapper = BaseMapper(oozie_node=node, name=TEST_MAPPER_NAME, props=props, dag_name="dag")
     return PrepareMapperExtension(mapper)