Mule HDFS Connector

15
MULE HDFS CONNECTOR BY – ANKUSH SHARMA

Transcript of Mule HDFS Connector

Page 1: Mule HDFS Connector

MULE HDFS CONNECTORBY – ANKUSH SHARMA

Page 2: Mule HDFS Connector

WHAT IS HDFS CONNECTOR?

• The Anypoint Connector for the Hadoop Distributed File System (HDFS) is used as a bi-directional gateway between applications. Its source is stored at the HDFS Connector GitHub site.

Page 3: Mule HDFS Connector

PRE-REQUISITES

• To use the HDFS connector, you must have the following:• A working Apache Hadoop Server.• Anypoint Studio Community edition.

Page 4: Mule HDFS Connector

MULE HDFS CONNECTOR – CONFIGURATION WIZARD (GENERAL TAB) (CONT.)

Page 5: Mule HDFS Connector

MULE HDFS CONNECTOR – CONFIGURATION WIZARD (GENERAL TAB)• Following are the options on general tab –• Display Name – The name of the component to be displayed in Mule

flow.• Config Reference – Reference to the global configuration.• Operation – The operation to be performed on server.• Path – The path of the file to write to.• Buffer Size – The buffer size to use for appending content in file.

Page 6: Mule HDFS Connector

MULE HDFS CONNECTOR – CONFIGURATION WIZARD (CONNECTION TAB) (CONT.)

Page 7: Mule HDFS Connector

MULE HDFS CONNECTOR – CONFIGURATION WIZARD (CONNECTION TAB)• This tab is used to add a connection key.• By default the connection key is ‘DEFAULT’.

Page 8: Mule HDFS Connector

MULE HDFS CONNECTOR – CONFIG REFERENCE CONFIGURATION WIZARD (GENERAL TAB) (CONT.)

Page 9: Mule HDFS Connector

MULE HDFS CONNECTOR – CONFIG REFERENCE CONFIGURATION WIZARD (GENERAL TAB)• Following are the options in general tab –• Name – The name of the configuration.• Connection Key – The key used in connection.• Default File System Name – The name of the file system to connect to.• Configuration Resources – Use this radio button to configure various

resources.• Configuration Enteries – Use this radio button to configure various

enteries.• File System Reference – A readily configured to used to connect to

HDFS.

Page 10: Mule HDFS Connector

MULE HDFS CONNECTOR – CONFIG REFERENCE CONFIGURATION WIZARD (POOLING PROFILE TAB) (CONT.)

Page 11: Mule HDFS Connector

MULE HDFS CONNECTOR – CONFIG REFERENCE CONFIGURATION WIZARD (POOLING PROFILE TAB)• Mule HDFS connector configuration’s pooling profile tab contains following properties –• Max active – Property which define how many connections can be there in connection pool.• Max idle – Defines maximum number of connections that can be idle.• Initialization policy – Defines how to initialize new connections.• Exhausted action – Defines how to release a connection after usage.• Max wait – Maximum time to wait for a new connection to be available.• Min eviction time – Minimum amount of time a connection can sit idle

for.

Page 12: Mule HDFS Connector

MULE HDFS CONNECTOR – CONFIG REFERENCE CONFIGURATION WIZARD (RECONNECTION TAB) (CONT.)

Page 13: Mule HDFS Connector

MULE HDFS CONNECTOR – CONFIG REFERENCE CONFIGURATION WIZARD (RECONNECTION TAB)• The Reconnection tab contains following properties –

• Do not use a Reconnection Strategy – This is the default radio button which specifies do not try to reconnect if there is error connecting to the web address URL.

• Standard Reconnection – Use this radio button to enable a standard reconnection strategy.• Frequency (ms) – The frequency time in milliseconds after which the HDFS connector will try to

access the web address URL.• Reconnect Attempts – This tells how many times the HDFS connector will try to connect to web

address URL.• Reconnector Forever – Check this box if there is need to make HDFS connector connect to web

address URL until there is a successful connection with it.• Custom Reconnection – Use this radio button to create a custom Reconnection strategy.

• Class – The java class which will come in action after a failed connection attempt.• Run the connection in a separated thread – Check this box if there is need to use this custom

reconnection operation in separate thread.

Page 14: Mule HDFS Connector

MULE HDFS CONNECTOR – CONFIGURATION WIZARD (NOTES TAB)• Notes Tab is used to add special notes for Mule HDFS

Connector.

Page 15: Mule HDFS Connector

THANK YOU!