To create a fetch task to retrieve real-time data from a Gnip stream, follow these steps.
To create a new Fetch Task
In the [FetchTasks]
section of the configuration file, specify the number of fetch tasks using the Number
parameter. If you are configuring the first fetch task, type Number=1
. If one or more fetch tasks have already been configured, increase the value of the Number
parameter by one (1). Below the Number
parameter, specify the names of the fetch tasks, starting from zero (0). For example:
[FetchTasks] Number=1 0=MyTask
Below the [FetchTasks]
section, create a new TaskName section. The name of the section must match the name of the new fetch task. For example:
[FetchTasks] Number=1 0=MyTask [MyTask]
In the new section, set the following configuration parameters:
BasicUsername
|
The username to use to access Gnip. Micro Focus recommends you encrypt the value of this parameter before adding it to the configuration file. For information about how to encrypt parameter values, see Encrypt Passwords. |
BasicPassword
|
The password to use to access Gnip. Micro Focus recommends you encrypt the value of this parameter before adding it to the configuration file. For information about how to encrypt parameter values, see Encrypt Passwords. |
StreamUrl
|
The URL for the Gnip stream to use. You can find the URLs of your streams at https://console.gnip.com/. |
If you intend to retrieve entries from a stream that provides a high volume of data, Micro Focus recommends increasing the value of the IngestBatchSize
parameter. Find the [Ingestion]
section of the configuration file and set the parameter IngestBatchSize
to 1000
or more:
[Ingestion]
...
IngestBatchSize=1500
(Optional) If the connector is installed on a machine that is behind a proxy server, you might also need to set some additional configuration parameters so that the connector can access the internet. For more information, see Use a Proxy Server to Access Gnip.
|