Register Components

Register custom components (Channel and Processor) by uploading a customized jar. Use custom components in Gathr applications.

Access Register Components tab under Register Entities feature from the main menu.

Download a sample component jar, customize it as per your requirements, and upload the same on Register Components page.

Register Component

Custom Code Implementation

Gathr allows you implement your custom code in the platform to extend functionalities for:

Channel: To read from any source.

Processor: To perform any operation on data-in-motion.

Custom code implementation allows importing custom components and versioning.

You can download a Maven based project that contains all the necessary Gathr dependencies for writing custom code and sample code for reference.

Prerequisites for custom code development

  • JDK 1.7 or higher

  • Apache Maven 3.x

  • Eclipse or any other IDE

Steps for Custom Code Implementation

  1. Download a Sample Maven-based project from the ‘Register Components’ page.

  2. Import the project in Eclipse or any IDE of your choice.

  3. Write custom code against one or more of the interfaces.

  4. Build the Maven project.

  5. Upload/Register the Component.

Build Custom Code

Provide all the dependencies required for the custom components in pom.xml available in the project.

  • Build project using mvn clean install.

  • Use jar-with-dependencies.jar for component registration.

Register custom code

  1. Upload jar-with-dependencies.jar on the Register Component page.

  2. Provide processor names (e.g., Accumio and BlueCoat).

  3. Provide an icon and/or initialization parameters.

  4. Click on Register.

  5. Registered components will be visible on the Data Pipeline page inside the Processor section.

The list of custom components is displayed on the Components page and the properties are described below:

FieldDescription
ComponentsThe icon of the component is displayed in this column, which symbolizes a Data Source or a Processor.
NameProvide name for Custom Component.
ConfigConfig link of the component. You can add configuration to a custom component or upload a jar.
EngineThe supported engine which is Spark.
Scope

The component can be used for a Project or across Workspace.

Actions

Add Config (+)

Upload Jar

Delete

OwnerIf the custom component was created by a Superuser or workspace user.
VersionThe version number of the custom component.

Perform following operation on uploaded custom components.

  • Change scope of custom components (i.e. Global/Local)

  • Change icon of custom components.

  • Add extra configuration properties.

  • Update or delete registered custom components.

Version Support (Versioning) in component registration

Register multiple versions of a registered component and use any version in your pipeline.

  • The user can view the details of listing page of the created Component including details such as Components, Owner, Parent Project (the project in which the Component is registered), Scope (Workspace/Project), Owner, so on and so forth.

  • If you have used any registered component in the pipeline, make sure that all the registered components (ones registered with single jar) should be of the same version. If you have registered a component with a fully qualified name, then that component cannot be registered with another jar in the same workspace.

  • If same jar is uploaded having same FQN, a new version of that component will get created.

Top