Register SDC Edge
You must register each Data Collector Edge (SDC Edge) to work with Control Hub. You can register Edge Data Collectors from Control Hub or from the SDC Edge command line interface.
A registered SDC Edge communicates with Control Hub at regular intervals. If an SDC Edge cannot connect to Control Hub, due to a network or system outage, then the SDC Edge uses the Control Hub disconnected mode.
For more details about how Control Hub and SDC Edge work together, see SDC Edge Communication.
Registering from Control Hub
When you register SDC Edge from Control Hub, you use Control Hub to generate an authentication token and then modify the SDC Edge configuration file.
Registering from the Command Line Interface
When you register SDC Edge from the command line interface, the command generates the authentication token and modifies the SDC Edge configuration file for you.
You can register SDC Edge from the command line using a Control Hub password or using a Control Hub user authentication token.
Registering with a Password
You can use the SDC Edge command line interface to register SDC Edge with Control Hub using your Control Hub user name and password.
bin/edge -enableControlHub -controlHubUrl=<Control Hub URL> -controlHubUser=<user name> -controlHubPassword=<password> -controlHubLabels=<labels>
bin/edge -enableControlHub -controlHubUrl=https://cloud.streamsets.com -controlHubUser=admin@MyCompany -controlHubPassword=MyPassword -controlHubLabels=Production,East
After running the command, restart SDC Edge to complete the registration process.
Registering with a User Authentication Token
To avoid exposing your Control Hub password, you can use the Control Hub REST API to log into the Control Hub security application and generate a user authentication token for your user account. Then use the SDC Edge command line interface to register SDC Edge with Control Hub using this user authentication token.
You might want to use a user authentication token when you need to register multiple Edge Data Collectors running on remote edge devices. You can send the user authentication token to the remote edge devices instead of sending your password.
When you generate a user authentication token, the token is valid for 24 hours. If desired, you can run a command to invalidate the token immediately after using it.
enableControlHub Command Line Options
Use the -enableControlHub
command to register SDC Edge. SDC Edge does
not need to be running to use the command.
bin/edge -enableControlHub \
(-controlHubUrl <Control Hub URL>) \
(-controlHubUser <Control Hub user>) \
[(-controlHubPassword <password>)] \
[(-controlHubUserToken <user token>)] \
[(-controlHubLabels <labels>)]
-enableControlHub
options:
enableControlHub Option | Description |
---|---|
-controlHubUrl <Control Hub URL> | Required. URL to access Control Hub. Set to
|
-controlHubUser <Control Hub user> | Required. Enter your Control Hub user ID using
the following format:
|
-controlHubPassword <password> | Required when registering with a password. Enter the
password for your Control Hub user
account. Do not use with the |
-controlHubUserToken <user token> | Required when registering with a user authentication
token. Enter the user authentication token generated
for your Control Hub user
account. Do not use with the |
-controlHubLabels <labels> | Optional. Assign a label to this SDC Edge. You can
enter multiple labels separated by commas. Labels that you assign here
are defined in the SDC Edge
configuration file, <SDCEdge_home>/etc/edge.conf . To
remove these labels after you register the SDC Edge, you must
modify the configuration file.Use labels to group Edge Data Collectors registered with Control Hub. If you know how you want to group your Edge Data Collectors, you can assign labels now. Or you can assign labels in Control Hub after you register SDC Edge. Default is "all", which you can use to run a job on all registered Edge Data Collectors. |
Deleting Unregistered Tokens
Delete unregistered authentication tokens when you used Control Hub to generate the tokens, but did not copy or download the tokens from the Generate Authentication Token window.
Control Hub lists the number of unregistered authentication tokens in the Data Collector Edge Administration view as follows:
- In the Navigation panel, click .
-
Click the Toggle Filter Column icon (
) to view the number of unregistered authentication tokens.
-
Click the More icon
, and then click Delete Unregistered Authentication Tokens.
Deactivating a Registered SDC Edge
Deactivate a registered SDC Edge when you want to temporarily prevent users from using that SDC Edge.
When you deactivate an SDC Edge, Control Hub deactivates the authentication token for the SDC Edge. Shut down the SDC Edge before you deactivate it. You cannot start a deactivated SDC Edge.
Regenerating a Token
You can regenerate an authentication token for an SDC Edge. You might need to regenerate a token to replace a token that has been compromised or to follow your organization's security policy.
When you regenerate an
authentication token for an SDC Edge, you replace the previous authentication token with a new one. You must copy the
new token into the <SDCEdge_home>/etc/edge.conf
file for the SDC Edge.
Disabling SDC Edge from Working with Control Hub
Use the SDC Edge command line interface to temporarily disable an SDC Edge installation from working with Control Hub. SDC Edge does not need to be running to use the command.
bin/edge -disableControlHub
The command sets the enabled
property to false in the SDC Edge
configuration file, <SDCEdge_home>/etc/edge.conf.
To enable SDC Edge to
work with Control Hub
again, simply set the enabled
property to true in the
edge.conf file.
Unregistering an SDC Edge
You can unregister an SDC Edge from Control Hub when you no longer want to use that SDC Edge installation with Control Hub.
When you unregister an SDC Edge from Control Hub, Control Hub deactivates the authentication token. If you want to locally run the SDC Edge on the edge device, modify the SDC Edge configuration file to remove the authentication token and to disable communication with Control Hub.
- In Control Hub, stop all jobs running on the SDC Edge.
- Shut down the SDC Edge on the edge device.
- In Control Hub, click in the Navigation panel.
- Hover over the SDC Edge that you shut down, and then click the Delete icon.
- In the confirmation dialog box, click Delete and Unregister.
-
On the edge device where the SDC Edge is installed, open the
<SDCEdge_home>/etc/edge.conf
file, and make the following changes:- Set the
enabled
property to false. - Remove the authentication token from the
app-auth-token
property.
- Set the