Building and Running Custom Node¶
Fire Insights allows you to build your own Custom Nodes.
In this tutorial we would build a custom node built upon scorecardpy.
Install the scorecardpy dependencies¶
Since we are using the library scorecardpy, we would install its packages both on the Fire Insights machine and on the Databricks cluster.
Use the command below to install it on the Fire Insights machines:
pip install scorecardpy
Install it on your Databricks cluster with the below:
- Open a Notebook
- %sh pip install scorecardpy
Go to Custom Processors¶
Once you login to Fire Insights application, there is PROCESSORS menu in top, select Custom Processors.
Click on CREATE PROCESSORS¶
Click on CREATE PROCESSORS to start creating the new processor.
It would open up the Create Processor Page as below.
Enter the name and other details for the new processor.
Then provide details for the various fields of the new processors. These fields would appear in the processor dialog when used in the workflow editor.
Click on the + sign to add a new field. For each field provide the following:
- WIDGET
- NAME
- TITLE
- VALUE
- DESCRIPTION
Finally click on the Next button to go to the Code tab.
Execute Code¶
The Code tab is where you write the execution code for the new Custom Processor.
Its updated for scorecardpy here.
It shows the default template which you can update for scorecardpy.
Then click on Next button to go to the Schema tab.
Schema Update Code¶
The Schema tab is where you add the code which updates the incoming schema to produce the output schema from this processor.
It displays the default template code which you can update.
Finally click on the Submit button to finish creating the new custom processor.
Once the custom processor submitted successfully, it will be vissible in Custom Processors list page.
Using the new Processor¶
The processor is now available in the Workflow Editor.
You can click on the custom processor to start using it in your workflow & submit the job.