Retrieve Real-Time Data

To create a fetch task to retrieve real-time data from a Gnip stream, follow these steps.

To create a new Fetch Task

  1. Stop the connector.
  2. Open the configuration file in a text editor.
  3. 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
  4. 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]
  1. 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/.

  2. 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
  3. (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.

  4. Save and close the configuration file.