Table of Contents
- Overview
- System Requirements
- Set Up Instructions
Overview
Establishing a Data & Insights Gateway connection is a two-step process:
Agents are small programs that establish a secure connection to the Data & Insights data platform and act as a manager for a plugin or set of plugins.
After the agent is downloaded and set up, we’ll help you connect to your individual data sources with plugins for specific data types.
You can add as many plugins as you like to a single agent, including multiple plugins of the same type.
You can find a 60-second video on setting up an agent in Windows here.
System Requirements
The agent requires Java 8 or newer
Find it here: OpenJDK 11
Networking
The host must be allowed to make connections to the Data & Insights platform on port 443
SSL
If you have special SSL and/or Self-Signed Certificates configured, they must be added to the Java trust store. For more information, please see: http://www.thesqlreport.com/?p=576
User Permissions
Sudo (root) or Administrator access is required to configure the service
Set Up Instructions
STEP 1: Create an Agent
Start the agent and run it as a service
- From your Data & Insights data site click the “Provision Agent” button on either the:
- Admin/Gateway page ({Your_Domain}/admin/gateway) OR
- When you're choosing your data source while creating or editing a dataset
- Follow the agent naming and download process.
- Place the downloaded folder in a directory on the server or computer you are connecting to the Data & Insights data site (if it’s not there already). Note or copy this folder path. You’ll need it when you set up a plugin later.
- Extract/Unzip the downloaded file.
- Open the subfolder named “Windows”.
- Run the agent as a service.
- Right-click on the “Install” Windows batch file.
- Choose “Run as an Administrator”.
- This will launch the command prompt.
- In the command prompt, name the Service (it will say “Enter Service Name”) and choose a name that makes sense to you.
- Hit “Enter”.
-
Check the status of your agent to ensure the set up was successful. A successfully connected agent is needed before you can move on to step 2 of the Gateway set up — adding and configuring a plugin.
On your Data & Insights data site you can check the agent status in the following places:
- In the “Provision Agent” set up stepper (On the “Set up instructions” page there is an “Am I connected?” widget. Clicking “refresh” will check your connection.
- On the Admin/Gateway page ({Your_Domain}/admin/gateway), it will appear in the table
- When you're choosing your data source while creating or editing a dataset it will appear in the list as “Connected”
Stopping the agent/service
Important: All plugins associated with this agent will also stop and any schedules associated with datasets created under this agent will stop.
- From the start menu, search for and select "Services”.
- Scroll to your Windows Service (created in the Starting Your Agent section). The description will be 'The Socrata Ingress Agent.
- Right-click on the service and select "Stop”.
Re-starting the agent
Right-click the service and select "Start”.
Delete or Uninstall the agent/service
Locally:
- Open command prompt as an administrator.
- Run: sc.exe delete {the name of your service}.
On the Data & Insights data site:
Note: This does not delete the service from your machine. It only deletes it from appearing on the data platform.
- Navigate to {Your_Domain}/admin/gateway
- Choose "Delete agent" from the "Actions" menu.
Check the status of the agent on your computer or server
- Open the Windows Services Manager.
- Search for Windows Service Manager OR
- Run services.msc from the Run box
- Find your agent. The description will be “The Socrata Ingress Agent”.
- Check the “Status” column
STEP 2: Add and Configure a Plugin
TIPS:
- ”PLUGIN_TYPE” is a type from a list you’ll be presented upon set up.
- “PLUGIN_NAME” is a name you select to identify this plugin on the Data & Insights platform.
- Configuration for the plugin type and plugin name are case sensitive. Please ensure you’re using the case presented at set up.
- You can add as many plugins as you like to a single agent, including multiple plugins of the same type.
Option 1: Start from the Command Line
Open the command prompt on your computer or server and navigate to the directory where the downloaded agent jar file resides.
- To list available plugin types
- java -jar socrata-ingress-agent.jar --list-available-plugins
- To install or reconfigure a plugin
- java -jar socrata-ingress-agent.jar --configure-plugin PLUGIN_TYPE:PLUGIN_NAME
- Example: java -jar socrata-ingress-agent.jar --configure-plugin csv:Finance_Risk_CSV
- When the plugin is run it will display a window on your server asking for plugin-specific configuration and credentials (if needed). This information will not live on the Data & Insights platform.
- Fill out the configuration information and click “OK”. Return to the data site and your plugin will then be ready to use!
Option 2: Start from the Data & Insights data site
- Click "Add Plugin" either
- On the Admin/Gateway page ({Your_Domain}/admin/gateway)
- When you're choosing your data source while creating or editing a dataset
- Choose your plugin.
- Name your plugin.
- Naming tip: Who is responsible + Data source description + Data source type
- Example: Finance_Risk_CSV
- Non alphanumeric characters will be converted to underscores
- Open the command prompt on your computer or server and navigate to the directory where the downloaded agent jar file resides.
- Copy and paste the plugin command into the command prompt.
- Run the command by hitting enter or return. This will download the plugin from the Data & Insights site, verify it, and run it on your server.
Tip: If you get an error, try changing directories. - When the plugin is run it will display a window on your server asking for plugin-specific configuration and credentials (if needed). This information will not live on the Data & Insights platform.
- Fill out the configuration information and click “OK”. Return to the data site and your plugin will then be ready to use!
Reconfigure a plugin
- Open the command prompt on your computer or server and navigate to the directory where the downloaded agent jar file resides.
- In the command prompt enter:
- java -jar socrata-ingress-agent.jar --configure-plugin PLUGIN_TYPE:PLUGIN_NAME
- Example: java -jar socrata-ingress-agent.jar --configure-plugin csv:Finance_Risk_CSV
- When the plugin is run it will display a window on your server asking for plugin-specific configuration and credentials (if needed). This information will not live on the Data & Insights platform.
- Fill out the configuration information and click “OK”. Return to the data site and your reconfigured plugin will then be ready to use!
Removing a plugin
Important: All schedules associated with the dataset(s) created under this plugin will break when you remove the plugin.
-
Find your gateway agent service in Services and stop the service
- Open the command prompt on your computer or server and navigate to the directory where the downloaded agent jar file resides.
- In the command prompt enter:
java -jar socrata-ingress-agent.jar --delete-plugin PLUGIN_TYPE:PLUGIN_NAME
Example: java -jar socrata-ingress-agent.jar --delete-plugin csv:Finance_Risk_CSV
Comments
Article is closed for comments.