Skip to content

Latest commit

 

History

History
57 lines (33 loc) · 4.39 KB

adding-a-new-program.md

File metadata and controls

57 lines (33 loc) · 4.39 KB
description
Explains the process to add a new program into cQube Ed

Adding a New Program

Introduction: This guide will help you add a new program in cQube by following the steps outlined below. Ensure that you have the latest version of cQube installed to access all the latest features and functionalities.

  1. Install or Update cQube: Before you start adding a new program, make sure you have the most recent version of cQube installed. If you need assistance with the installation or upgrading process, refer to the following guides:
  • Installation Guide: Provides step-by-step instructions for installing cQube.
  • Upgradation Guide: Offers detailed steps for upgrading your cQube installation to the latest version.
  1. Create Event and Dimension Schema: Design the event and dimension schema for your program. This schema defines the structure and relationships between different data elements, such as event attributes and dimensions.
  • Event Schema: The event schema defines the structure of the events to be ingested into the system. It includes information such as the event name, its attributes (e.g., event timestamp, user ID, etc.), and data types.
  • Dimension Schema: The dimension schema defines the dimensions, or attributes, that will be used to group and filter events. It includes information such as the dimension name, its attributes (e.g., dimension value, category, etc.), and data types.
  1. Create a Config.json: Config.json provides directives to the processing engine on how to process the grammar and data files, where they are stored, etc.
  • Place the Config.json in the /ingest/ folder.

  • Define the following settings in the Config.json file:

    • globals: Global settings for the cQube processing engine.
    • dimensions: Includes the file format, location, and namespace for dimensions.
    • programs: Program-specific settings like namespace, description, input location, output location, and dimensions to be considered.
  1. Place Event and Dimension Grammar Files: Once you've generated Event & Dimension grammar files based on the Event & Dimension Schema, place these files in the appropriate folders within the cQube directory structure.
  • Dimension Grammar: Place the dimension grammar file as <xyz>-dimension.grammar.csv in the /processing-ms/impl/c-qube/ingest/dimensions/ folder, or as specified in the Config.json settings

  • Event Grammar: Create a new program folder in the /processing-ms/impl/c-qube/ingest/programs/ directory. Place the event grammar file as <xyz>-event.grammar.csv in the new program folder, or as specified in the Config.json settings

  1. Ingest Event and Dimension Schema: Import the event and dimension schema into the cQube platform, as specified in step 3.
  • Through API Method: Use the Event Spec API (spec/event) to import the schema.

  • Through YARN CLI: Use the YARN CLI INGEST command to ingest Event and Dimension Spec and Dimension Data based on the configuration in Config.json.
  1. Data Ingestion: Ingest data into the cQube platform using one of the following methods:
  • Uploading through CSV: Upload data by providing a CSV file containing the necessary information. For detailed instructions, refer to the Uploading through CSV Guide.
  • Connecting to Database: Connect directly to a database to ingest data. For more information on how to establish this connection, consult the Connecting to Database Guide.
  1. Add Event Data Regularly: To keep your program up-to-date, continuously add new event data to the platform. Determine an appropriate frequency for updating the data, such as daily, weekly, or monthly. Ensure that the new data is compatible with the existing event