Zoomdata Version

Connecting to Data Sources

You can connect to a variety of data sources within Zoomdata. If you are new to Zoomdata, review the following topics to better understand how the data is cached and what time formats are supported by Zoomdata.

By default, your environment comes pre-configured with certain connectors enabled. These connectors are displayed on the Sources page. However, additional connectors are available. For more information about what connectors are available in version 2.6, as well as general information about each connector, see the Data Sources Reference Sheet.

Certain connectors require a JDBC driver, which is obtained through a separate download. This allows to you select and add a driver that meets your operation needs or certain policies. The following connectors need a JDBC driver to be installed before configuring and connecting:

Connecting a New Data Source

At a high level, the steps for setting up a new data source are as follows:

  1. Select Settings and then select Sources.
  2. From the Sources page, select the data source you want to connect to. If the data source you want is not available, it may be due to the fact that the data source is not enabled. For more information, see Managing Connectors.
  3. On the General page for the connector, enter a unique name in the Source Name field. You can also add a description, if desired.
  4. Select Next.
  5. On the Connection page, you can enter information for a new connection or select a validated connection.
  6. To start a new connection, do the following:
    1. Select Input New Credentials.
    2. Specify the connection details and, if applicable, authentication credentials in order to connect to the data source. The fields vary depending on the selected data source.
    3. Select Validate to substantiate the connection . If the connection is successful, you are able to continue on in the connection process. Save your settings.
  7. To use an existing connection, do the following:
    1. Select Use Validated Credentials.
    2. From the drop-down list, select the connection you want to use.
    3. Select Next.
  8. On the Tables page, select the table you want to use from the list of available options. Each data source and connector has different options.
  9. For more information about what is available for the data source you have select, see that particular topic for more information.
  10. Select the table from the available collection in the data source:
    • Schema
    • Table (index or collection)
    • Custom SQL —available for certain data sources. If you want to use specific fields from the table, you can run SQL query to list them.
  11. You can enable or disable caching of aggregated query results for your data source. Select On or Off. For more information about how the data is cached, see How Zoomdata Caches the Data.
  12. If you are using Solr, ElasticSearch, or Cloudera Search as your data source, you can enable Lookup Values for your connection to reduce the retrieval time for filtering values. You can configure a scheduled job to refresh the distinct values in the metadata store.
    Otherwise, the data source is queried directly each time.
  13. Once you have selected the table you want to use, select the fields and types you want displayed. By default, all of them are selected. You can see a sample of your first 10 records of your data in the Preview window.
  14. For search-based data sources, there is additional option to configure a Request Handler : a plug-in that defines a logic when executing a search request (available in both Cloudera Search and Solr sources).
  15. Select Next.
  16. On the Fields page, you configure the settings for the fields from the tables for your data source. These fields are then used as attributes and metrics. To define the fields metadta, 1,000 records of data are sampled.
  17. Configure the settings as follows:
    • Visible —by default, all the fields are visible. This means that you can visualize the data from these fields on your charts. If you do not want to use specific fields, clear the corresponding checkboxes.
    • Label —by default, the names of the fields from your data source are used as labels.
    • Type —when you select tables, each field type is defined by Zoomdata. The default data types are displayed in the Type column. You can change them by selecting another option from the drop-down list.
    • You can set the maximum character length of attribute fields. By default, it is limited to 200 characters and the field is recognized as Attribute. If this limit is exceeded, the field is recognized as Text field.
      Modify the FieldsTypeDetector​ property in the application.properties file as required.
  18. If you are using Cloudera Impala, Hive on Tez, Spark SQL, or Apache Drill as your data source, the Partitioned column shows if fields within your source are partitioned.
  19. For metrics, you can define the default value: SUM, AVG, MAX, MIN
  20. Set the time pattern and granularity for the fields of the Time type. If required, you can define the time and date pattern by selecting the Pattern item from the list and specifying it in the corresponding field. Otherwise, you can proceed with the Default pattern.
    1. You can also set the default time granularity for a particular field by selecting the required item (Second, Minute, Hour, Day, Week, Month, and Year) from the corresponding list.
    2. You can apply time zone labels for the time fields within your data source.
    3. Select the current label to access the Time Zone pane.
    4. Then either manually input the desired time zone in the text field or select from the drop-down list.
    5. Check the box if this label should be applied to all time fields for the data source.
    6. Apply your changes.
  21. Choose to enable or disable distinct count for the fields.
  22. For Filter Display, you can set the range of data that is available in the filter for all data types.

    For fields that are of type ATTRIBUTE, you can select the Only Allow Custom Values checkbox.
    If this checkbox is selected, you have to enter the names of the attributes manually while working with the Filters pane , since the list of attributes is not displayed

  23. To set the range of values available in the filter for the INTEGER, MONEY, and NUMBER types, select Custom Range and specify 'Min' and 'Max' values. You can also set the TIME type range by specify the 'To' and 'From' range.
  24. To set the refresh out your metadata, select the Statistics colunm which is available for all sources except Upload API and Flat Files. Select Refresh.
  25. Once you are finished setting up the refresh for certain fields, select Next.
  26. On the Refresh page you can step up and configure the refresh rates for your data. For detailed steps and more information about the scheduler, see Using the Zoomdata Scheduler.
  27. Select Next.
  28. As the last step of your data source configuration, define the default settings for each chart type . When you visualize the data from a data source, the default settings are applied to a chart.
  29. Select Save. Once your data source is saved, you are brought back to the main data source page. Your new connection is listed under My Data Sources.

Was this topic helpful?