SlideShare a Scribd company logo
HDFS Connector API
Make Directories
• <hdfs:make-directories>
• Make the given file and all non-existent
parents into directories. Has the semantics of
Unix 'mkdir -p'. Existence of the directory
hierarchy is not an error
Make Directories - Attributes
Name Java Type Description
config-ref String Specify which config to use
path String the path to create directories for.
permission String the file system permission to use
when creating the directories, either
in octal or symbolic format (umask).
Rename
• <hdfs:rename>
• Renames path target to path destination
Rename - XML Sample
• <hdfs:rename source="/tmp/my-dir"
target="/tmp/new-dir" config-ref="hdfs-
conf"/>
Rename - Attributes
Name Java Type Description
config-ref String Specify which config to use
source String the source path to be renamed.
target String the target new path after rename
Returns
Return Java Type Description
Boolean Boolean true if rename is
successful
List Status
• <hdfs:list-status>
• List the statuses of the files/directories in the
given path if the path is a directory
List Status - XML Sample
• <hdfs:list-status path="/tmp/my-dir"
filter="^.*/2014/02/$" config-ref="hdfs-
conf"/>
List Status - Attributes
Name Java Type Description
config-ref String Specify which config to use
path String the given path
filter String the user supplied path filter
List Status - Returns
Return Java Type Description
List FileStatus the statuses of the
files/directories in the given path
Glob Status
• <hdfs:glob-status>
• Return all the files that match file pattern and
are not checksum files. Results are sorted by
their names
Glob Status - XML Sample
• <hdfs:glob-status pathPattern="/tmp/*/*"
config-ref="hdfs-conf"/>
Glob Status - Attributes
Name Java Type Description
config-ref String Specify which config to use
pathPattern String a regular expression specifying the path
pattern.
filter PathFilter the user supplied path filter
Glob Status - Returns
Return Java Type Description
List FileStatus an array of paths that
match the path pattern
Copy From Local File
• <hdfs:copy-from-local-file>
• Copy the source file on the local disk to the
FileSystem at the given target path, set
deleteSource if the source should be removed
Copy From Local File - XML Sample
• <hdfs:copy-from-local-file
deleteSource="true" overwrite="false"
source="/tmp/mulesoft/"
target="/user/mulesoft/" config-ref="hdfs-
conf"/>
Copy From Local File -
Name Java Type Description
config-ref String Specify which config to use
deleteSource boolean whether to delete the source.
overwrite boolean whether to overwrite a existing file.
source String the source path on the local disk.
target String the target path on the File System.
Copy to Local File
• <hdfs:copy-to-local-file>
• Copy the source file on the FileSystem to local
disk at the given target path, set deleteSource
if the source should be removed
• useRawLocalFileSystem indicates whether to
use RawLocalFileSystem as it is a non CRC File
System
Copy to Local File - XML Sample
• <hdfs:copy-to-local-file
deleteSource="false"
useRawLocalFileSystem="false"
source="/tmp/mulesoft/"
target="/user/mulesoft/" config-ref="hdfs-
conf"/>
Copy to Local File - Attributes
Name Java Type Description
config-ref String Specify which config to use
deleteSource boolean whether to delete the source.
useRawLocal
FileSystem
boolean whether to use RawLocalFileSystem as local
file system or not.
source String the source path on the File System.
target String the target path on the local disk.
Set Permission
• <hdfs:set-permission>
• Set permission of a path (i.e., a file or a
directory)
Set Permission - XML Sample
• <!-- Set permission of a path to change. -->
<hdfs:set-permission path="/tmp/my-dir"
permission="511" config-ref="hdfs-conf"/>
Set Permission - Attributes
Name Java Type Description
config-ref String Specify which config to use
path String the path of the file or directory to set
permission.
permission String the file system permission to be set
Set Owner
• <hdfs:set-owner>
• Set owner of a path (i.e., a file or a directory).
The parameters username and groupname
cannot both be null
Set Owner - XML Sample
• <!-- Set owner of a path to change. -->
<hdfs:set-owner path="/tmp/my-dir"
ownername="mulesoft"
groupname="supergroup" config-ref="hdfs-
conf"/>
Set Owner - Attributes
Name Java Type Description
config-ref String Specify which config to use
path String the path of the file or directory to set
owner.
ownername String If it is null, the original username
remains unchanged.
groupname String If it is null, the original groupname
remains unchanged.
Sources
• Read From Path
• <hdfs:read>
• Read the content of a file designated by its path and
streams it to the rest of the flow, while adding the path
metadata in the following inbound properties:
– HDFSConnector#HDFS_PATH_EXISTS: a boolean set to true if the
path exists
– HDFSConnector#HDFS_CONTENT_SUMMARY: an instance of
ContentSummary if the path exists.
– HDFSConnector#HDFS_FILE_STATUS: an instance of FileStatus if
the path exists.
– HDFSConnector#HDFS_FILE_CHECKSUM: an instance of
FileChecksum if the path exists, is a file and has a checksum.
Sources - Attributes
Name Java Type Description
config-ref String Specify which config to use
path String the path of the file to read.
bufferSize int the buffer size to use when reading the file.
sourceCallba
ck
SourceCallb
ack
the SourceCallback used to propagate the
event to the rest of the flow
Question and answer

More Related Content

What's hot

Hadoop HDFS Concepts
Hadoop HDFS ConceptsHadoop HDFS Concepts
Hadoop HDFS Concepts
tutorialvillage
 
HDFS_Command_Reference
HDFS_Command_ReferenceHDFS_Command_Reference
HDFS_Command_Reference
Tata Consultancy Services
 
Commands guide apache hadoop
Commands guide   apache hadoopCommands guide   apache hadoop
Commands guide apache hadoop
Saum
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commands
Nomura Japanese Investment Bank
 
Course 102: Lecture 12: Basic Text Handling
Course 102: Lecture 12: Basic Text Handling Course 102: Lecture 12: Basic Text Handling
Course 102: Lecture 12: Basic Text Handling
Ahmed El-Arabawy
 
HDFS User Reference
HDFS User ReferenceHDFS User Reference
HDFS User Reference
Biju Nair
 
Hadoop basic commands
Hadoop basic commandsHadoop basic commands
Hadoop basic commands
bispsolutions
 
Consuming Libraries with CMake
Consuming Libraries with CMakeConsuming Libraries with CMake
Consuming Libraries with CMake
Richard Thomson
 
Course 102: Lecture 17: Process Monitoring
Course 102: Lecture 17: Process Monitoring Course 102: Lecture 17: Process Monitoring
Course 102: Lecture 17: Process Monitoring
Ahmed El-Arabawy
 
Ldap configuration documentation
Ldap configuration documentationLdap configuration documentation
Ldap configuration documentation
Shree Niraula
 
Hadoop file
Hadoop fileHadoop file
Hadoop file
HR Krutika Meheta
 
Top 10 Hadoop Shell Commands
Top 10 Hadoop Shell Commands Top 10 Hadoop Shell Commands
Top 10 Hadoop Shell Commands
SimoniShah6
 
Hadoop file
Hadoop fileHadoop file
Hadoop file
HR Krutika Meheta
 
File upload php
File upload phpFile upload php
File upload php
sana mateen
 
Postgre sql unleashed
Postgre sql unleashedPostgre sql unleashed
Postgre sql unleashed
Marian Marinov
 
05.linux basic-operations-1
05.linux basic-operations-105.linux basic-operations-1
05.linux basic-operations-1
Minsuk Lee
 
TP2 Big Data HBase
TP2 Big Data HBaseTP2 Big Data HBase
TP2 Big Data HBase
Amal Abid
 
Applecmdlista zs
Applecmdlista zsApplecmdlista zs
Applecmdlista zs
Ben Pope
 
Commands documentaion
Commands documentaionCommands documentaion
Commands documentaion
TejalNijai
 
Http
HttpHttp

What's hot (20)

Hadoop HDFS Concepts
Hadoop HDFS ConceptsHadoop HDFS Concepts
Hadoop HDFS Concepts
 
HDFS_Command_Reference
HDFS_Command_ReferenceHDFS_Command_Reference
HDFS_Command_Reference
 
Commands guide apache hadoop
Commands guide   apache hadoopCommands guide   apache hadoop
Commands guide apache hadoop
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commands
 
Course 102: Lecture 12: Basic Text Handling
Course 102: Lecture 12: Basic Text Handling Course 102: Lecture 12: Basic Text Handling
Course 102: Lecture 12: Basic Text Handling
 
HDFS User Reference
HDFS User ReferenceHDFS User Reference
HDFS User Reference
 
Hadoop basic commands
Hadoop basic commandsHadoop basic commands
Hadoop basic commands
 
Consuming Libraries with CMake
Consuming Libraries with CMakeConsuming Libraries with CMake
Consuming Libraries with CMake
 
Course 102: Lecture 17: Process Monitoring
Course 102: Lecture 17: Process Monitoring Course 102: Lecture 17: Process Monitoring
Course 102: Lecture 17: Process Monitoring
 
Ldap configuration documentation
Ldap configuration documentationLdap configuration documentation
Ldap configuration documentation
 
Hadoop file
Hadoop fileHadoop file
Hadoop file
 
Top 10 Hadoop Shell Commands
Top 10 Hadoop Shell Commands Top 10 Hadoop Shell Commands
Top 10 Hadoop Shell Commands
 
Hadoop file
Hadoop fileHadoop file
Hadoop file
 
File upload php
File upload phpFile upload php
File upload php
 
Postgre sql unleashed
Postgre sql unleashedPostgre sql unleashed
Postgre sql unleashed
 
05.linux basic-operations-1
05.linux basic-operations-105.linux basic-operations-1
05.linux basic-operations-1
 
TP2 Big Data HBase
TP2 Big Data HBaseTP2 Big Data HBase
TP2 Big Data HBase
 
Applecmdlista zs
Applecmdlista zsApplecmdlista zs
Applecmdlista zs
 
Commands documentaion
Commands documentaionCommands documentaion
Commands documentaion
 
Http
HttpHttp
Http
 

Similar to Hdfs connector api

5c_BigData_Hadoop_HDFS.PPTX
5c_BigData_Hadoop_HDFS.PPTX5c_BigData_Hadoop_HDFS.PPTX
5c_BigData_Hadoop_HDFS.PPTX
Miguel720844
 
Basics of Linux
Basics of LinuxBasics of Linux
Basics of Linux
SaifUrRahman180
 
Linux command line cheatsheet
Linux command line cheatsheetLinux command line cheatsheet
Linux command line cheatsheet
We Ihaveapc
 
Hadoop 20111117
Hadoop 20111117Hadoop 20111117
Hadoop 20111117
exsuns
 
intro unix/linux 07
intro unix/linux 07intro unix/linux 07
intro unix/linux 07
duquoi
 
Linux ppt
Linux pptLinux ppt
Linux ppt
Sanmuga Nathan
 
Quick guide of the most common linux commands
Quick guide of the most common linux commandsQuick guide of the most common linux commands
Quick guide of the most common linux commands
Carlos Enrique
 
Commands
CommandsCommands
Commands
damlepramod
 
101 4.7 find system files and place files in the correct location
101 4.7 find system files and place files in the correct location101 4.7 find system files and place files in the correct location
101 4.7 find system files and place files in the correct location
Acácio Oliveira
 
394753714-hdfc-command-biga data tecnology
394753714-hdfc-command-biga data tecnology394753714-hdfc-command-biga data tecnology
394753714-hdfc-command-biga data tecnology
SupriyaGhosh51
 
Unix Basics Commands
Unix Basics CommandsUnix Basics Commands
Unix Basics Commands
Sameeran Jenna
 
An a z index of the bash commands
An a z index of the bash commandsAn a z index of the bash commands
An a z index of the bash commands
Ben Pope
 
Unit3 browsing the filesystem
Unit3 browsing the filesystemUnit3 browsing the filesystem
Unit3 browsing the filesystem
root_fibo
 
QSpiders - Unix Operating Systems and Commands
QSpiders - Unix Operating Systems  and CommandsQSpiders - Unix Operating Systems  and Commands
QSpiders - Unix Operating Systems and Commands
Qspiders - Software Testing Training Institute
 
9780538745840 ppt ch05
9780538745840 ppt ch059780538745840 ppt ch05
9780538745840 ppt ch05
Terry Yoast
 
Linux cheat-sheet
Linux cheat-sheetLinux cheat-sheet
Linux cheat-sheet
Craig Cannon
 
Linux Commandos Cheat
Linux Commandos CheatLinux Commandos Cheat
Linux Commandos Cheat
Alvaro Gomes
 
Linux cheat-sheet
Linux cheat-sheetLinux cheat-sheet
Linux cheat-sheet
Zeeshan Rizvi
 
Comenzi unix
Comenzi unixComenzi unix
Comenzi unix
Valentin Valentin
 
2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx
Priyadarshini648418
 

Similar to Hdfs connector api (20)

5c_BigData_Hadoop_HDFS.PPTX
5c_BigData_Hadoop_HDFS.PPTX5c_BigData_Hadoop_HDFS.PPTX
5c_BigData_Hadoop_HDFS.PPTX
 
Basics of Linux
Basics of LinuxBasics of Linux
Basics of Linux
 
Linux command line cheatsheet
Linux command line cheatsheetLinux command line cheatsheet
Linux command line cheatsheet
 
Hadoop 20111117
Hadoop 20111117Hadoop 20111117
Hadoop 20111117
 
intro unix/linux 07
intro unix/linux 07intro unix/linux 07
intro unix/linux 07
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
Quick guide of the most common linux commands
Quick guide of the most common linux commandsQuick guide of the most common linux commands
Quick guide of the most common linux commands
 
Commands
CommandsCommands
Commands
 
101 4.7 find system files and place files in the correct location
101 4.7 find system files and place files in the correct location101 4.7 find system files and place files in the correct location
101 4.7 find system files and place files in the correct location
 
394753714-hdfc-command-biga data tecnology
394753714-hdfc-command-biga data tecnology394753714-hdfc-command-biga data tecnology
394753714-hdfc-command-biga data tecnology
 
Unix Basics Commands
Unix Basics CommandsUnix Basics Commands
Unix Basics Commands
 
An a z index of the bash commands
An a z index of the bash commandsAn a z index of the bash commands
An a z index of the bash commands
 
Unit3 browsing the filesystem
Unit3 browsing the filesystemUnit3 browsing the filesystem
Unit3 browsing the filesystem
 
QSpiders - Unix Operating Systems and Commands
QSpiders - Unix Operating Systems  and CommandsQSpiders - Unix Operating Systems  and Commands
QSpiders - Unix Operating Systems and Commands
 
9780538745840 ppt ch05
9780538745840 ppt ch059780538745840 ppt ch05
9780538745840 ppt ch05
 
Linux cheat-sheet
Linux cheat-sheetLinux cheat-sheet
Linux cheat-sheet
 
Linux Commandos Cheat
Linux Commandos CheatLinux Commandos Cheat
Linux Commandos Cheat
 
Linux cheat-sheet
Linux cheat-sheetLinux cheat-sheet
Linux cheat-sheet
 
Comenzi unix
Comenzi unixComenzi unix
Comenzi unix
 
2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx
 

More from Thang Loi

Mule web services
Mule web servicesMule web services
Mule web services
Thang Loi
 
Mule enterprise service bus
Mule enterprise service busMule enterprise service bus
Mule enterprise service bus
Thang Loi
 
File connector
File connectorFile connector
File connector
Thang Loi
 
Box connector
Box connectorBox connector
Box connector
Thang Loi
 
Amazon S3 connector
Amazon S3 connectorAmazon S3 connector
Amazon S3 connector
Thang Loi
 
Mule flows and subflows
Mule flows and subflowsMule flows and subflows
Mule flows and subflows
Thang Loi
 
Http connector
Http connectorHttp connector
Http connector
Thang Loi
 
Tcat server
Tcat serverTcat server
Tcat server
Thang Loi
 
File Connector
File ConnectorFile Connector
File Connector
Thang Loi
 
Mule transform
Mule transformMule transform
Mule transform
Thang Loi
 
Fpt connector
Fpt connectorFpt connector
Fpt connector
Thang Loi
 
Mule transformers
Mule transformersMule transformers
Mule transformers
Thang Loi
 
Http connector
Http connectorHttp connector
Http connector
Thang Loi
 
Mule mongodb connector
Mule mongodb connectorMule mongodb connector
Mule mongodb connector
Thang Loi
 
Mule message state
Mule message stateMule message state
Mule message state
Thang Loi
 
Mule transformers
Mule transformersMule transformers
Mule transformers
Thang Loi
 
Elements in a muleflow
Elements in a muleflowElements in a muleflow
Elements in a muleflow
Thang Loi
 
Mule maven
Mule mavenMule maven
Mule maven
Thang Loi
 
Mule soap
Mule soapMule soap
Mule soap
Thang Loi
 
Mule schedule
Mule scheduleMule schedule
Mule schedule
Thang Loi
 

More from Thang Loi (20)

Mule web services
Mule web servicesMule web services
Mule web services
 
Mule enterprise service bus
Mule enterprise service busMule enterprise service bus
Mule enterprise service bus
 
File connector
File connectorFile connector
File connector
 
Box connector
Box connectorBox connector
Box connector
 
Amazon S3 connector
Amazon S3 connectorAmazon S3 connector
Amazon S3 connector
 
Mule flows and subflows
Mule flows and subflowsMule flows and subflows
Mule flows and subflows
 
Http connector
Http connectorHttp connector
Http connector
 
Tcat server
Tcat serverTcat server
Tcat server
 
File Connector
File ConnectorFile Connector
File Connector
 
Mule transform
Mule transformMule transform
Mule transform
 
Fpt connector
Fpt connectorFpt connector
Fpt connector
 
Mule transformers
Mule transformersMule transformers
Mule transformers
 
Http connector
Http connectorHttp connector
Http connector
 
Mule mongodb connector
Mule mongodb connectorMule mongodb connector
Mule mongodb connector
 
Mule message state
Mule message stateMule message state
Mule message state
 
Mule transformers
Mule transformersMule transformers
Mule transformers
 
Elements in a muleflow
Elements in a muleflowElements in a muleflow
Elements in a muleflow
 
Mule maven
Mule mavenMule maven
Mule maven
 
Mule soap
Mule soapMule soap
Mule soap
 
Mule schedule
Mule scheduleMule schedule
Mule schedule
 

Recently uploaded

"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
Fwdays
 
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance PanelsNorthern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
Fwdays
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
Miro Wengner
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
Ajin Abraham
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Neo4j
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
christinelarrosa
 
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Ukraine
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
Safe Software
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
Day 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio FundamentalsDay 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio Fundamentals
UiPathCommunity
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
Neo4j
 
Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!
Tobias Schneck
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
DianaGray10
 
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin..."$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
Fwdays
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
christinelarrosa
 

Recently uploaded (20)

"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
 
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance PanelsNorthern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
 
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
GlobalLogic Java Community Webinar #18 “How to Improve Web Application Perfor...
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
Day 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio FundamentalsDay 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio Fundamentals
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
 
Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
 
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin..."$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
 

Hdfs connector api

  • 2. Make Directories • <hdfs:make-directories> • Make the given file and all non-existent parents into directories. Has the semantics of Unix 'mkdir -p'. Existence of the directory hierarchy is not an error
  • 3. Make Directories - Attributes Name Java Type Description config-ref String Specify which config to use path String the path to create directories for. permission String the file system permission to use when creating the directories, either in octal or symbolic format (umask).
  • 4. Rename • <hdfs:rename> • Renames path target to path destination
  • 5. Rename - XML Sample • <hdfs:rename source="/tmp/my-dir" target="/tmp/new-dir" config-ref="hdfs- conf"/>
  • 6. Rename - Attributes Name Java Type Description config-ref String Specify which config to use source String the source path to be renamed. target String the target new path after rename
  • 7. Returns Return Java Type Description Boolean Boolean true if rename is successful
  • 8. List Status • <hdfs:list-status> • List the statuses of the files/directories in the given path if the path is a directory
  • 9. List Status - XML Sample • <hdfs:list-status path="/tmp/my-dir" filter="^.*/2014/02/$" config-ref="hdfs- conf"/>
  • 10. List Status - Attributes Name Java Type Description config-ref String Specify which config to use path String the given path filter String the user supplied path filter
  • 11. List Status - Returns Return Java Type Description List FileStatus the statuses of the files/directories in the given path
  • 12. Glob Status • <hdfs:glob-status> • Return all the files that match file pattern and are not checksum files. Results are sorted by their names
  • 13. Glob Status - XML Sample • <hdfs:glob-status pathPattern="/tmp/*/*" config-ref="hdfs-conf"/>
  • 14. Glob Status - Attributes Name Java Type Description config-ref String Specify which config to use pathPattern String a regular expression specifying the path pattern. filter PathFilter the user supplied path filter
  • 15. Glob Status - Returns Return Java Type Description List FileStatus an array of paths that match the path pattern
  • 16. Copy From Local File • <hdfs:copy-from-local-file> • Copy the source file on the local disk to the FileSystem at the given target path, set deleteSource if the source should be removed
  • 17. Copy From Local File - XML Sample • <hdfs:copy-from-local-file deleteSource="true" overwrite="false" source="/tmp/mulesoft/" target="/user/mulesoft/" config-ref="hdfs- conf"/>
  • 18. Copy From Local File - Name Java Type Description config-ref String Specify which config to use deleteSource boolean whether to delete the source. overwrite boolean whether to overwrite a existing file. source String the source path on the local disk. target String the target path on the File System.
  • 19. Copy to Local File • <hdfs:copy-to-local-file> • Copy the source file on the FileSystem to local disk at the given target path, set deleteSource if the source should be removed • useRawLocalFileSystem indicates whether to use RawLocalFileSystem as it is a non CRC File System
  • 20. Copy to Local File - XML Sample • <hdfs:copy-to-local-file deleteSource="false" useRawLocalFileSystem="false" source="/tmp/mulesoft/" target="/user/mulesoft/" config-ref="hdfs- conf"/>
  • 21. Copy to Local File - Attributes Name Java Type Description config-ref String Specify which config to use deleteSource boolean whether to delete the source. useRawLocal FileSystem boolean whether to use RawLocalFileSystem as local file system or not. source String the source path on the File System. target String the target path on the local disk.
  • 22. Set Permission • <hdfs:set-permission> • Set permission of a path (i.e., a file or a directory)
  • 23. Set Permission - XML Sample • <!-- Set permission of a path to change. --> <hdfs:set-permission path="/tmp/my-dir" permission="511" config-ref="hdfs-conf"/>
  • 24. Set Permission - Attributes Name Java Type Description config-ref String Specify which config to use path String the path of the file or directory to set permission. permission String the file system permission to be set
  • 25. Set Owner • <hdfs:set-owner> • Set owner of a path (i.e., a file or a directory). The parameters username and groupname cannot both be null
  • 26. Set Owner - XML Sample • <!-- Set owner of a path to change. --> <hdfs:set-owner path="/tmp/my-dir" ownername="mulesoft" groupname="supergroup" config-ref="hdfs- conf"/>
  • 27. Set Owner - Attributes Name Java Type Description config-ref String Specify which config to use path String the path of the file or directory to set owner. ownername String If it is null, the original username remains unchanged. groupname String If it is null, the original groupname remains unchanged.
  • 28. Sources • Read From Path • <hdfs:read> • Read the content of a file designated by its path and streams it to the rest of the flow, while adding the path metadata in the following inbound properties: – HDFSConnector#HDFS_PATH_EXISTS: a boolean set to true if the path exists – HDFSConnector#HDFS_CONTENT_SUMMARY: an instance of ContentSummary if the path exists. – HDFSConnector#HDFS_FILE_STATUS: an instance of FileStatus if the path exists. – HDFSConnector#HDFS_FILE_CHECKSUM: an instance of FileChecksum if the path exists, is a file and has a checksum.
  • 29. Sources - Attributes Name Java Type Description config-ref String Specify which config to use path String the path of the file to read. bufferSize int the buffer size to use when reading the file. sourceCallba ck SourceCallb ack the SourceCallback used to propagate the event to the rest of the flow