Import Templates

The Kylo installation includes some sample ingestion templates to get you started. You can import them either through the command line or in the UI

Import from the command line

The setup folder includes a script to import the templates locally.

$ <KYLO_HOME>/setup/data/install-templates-locally.sh

Import from the Kylo UI

  1. Import Index Text Template (For Elasticsearch or SOLR).

    1. Locate the file. You will need the file locally to upload it. You can find it in one of two places:

    If you are using a version of NiFi prior to 1.3:

    - <kylo_project>/samples/feeds/nifi-1.0/index_text_service_<TYPE>.zip
    - /opt/kylo/setup/data/feeds/nifi-1.0/index_text_service_<TYPE>.zip
    

    If you are using NiFi 1.3 or later:

    - <kylo_project>/samples/feeds/nifi-1.3/index_text_service_v2.zip
    - /opt/kylo/setup/data/feeds/nifi-1.3/index_text_service_v2.zip
    
    1. Go to the the Feeds page in Kylo.
    2. Click on the plus icon to add a feed.
    3. Select “Import from a file”.
    4. Choose the file from above.
    5. Click “Import Feed”.
  2. Import the data ingest template.

    1. Locate the data_ingest.zip file. You will need the file locally to upload it. You can find it in one of two places:
    - <kylo_project>/samples/templates/nifi-1.0/data_ingest.zip
    - /opt/kylo/setup/data/templates/nifi-1.0/data_ingest.zip
    
    1. Go to the templates page in the Admin section
    2. Click on the plus icon on the top left
    3. Click on “Import from file” and choose the data_ingest.zip
    4. If this is the first time you are importing the template you do not need to check any of the additional options
    5. Click “Import Template”
  3. Import the data transformation template.

    1. Locate the data_transformation.zip file. You will need the file locally to upload it. You can find it in one of two places:
    - <kylo_project>/samples/templates/nifi-1.0/data_transformation.zip
    - /opt/kylo/setup/data/templates/nifi-1.0/data_transformation.zip
    
    1. Go to the templates page in the Admin section
    2. Click on the plus icon on the top left
    3. Click on “Import from file” and choose the data_transformation.zip
    4. If this is the first time you are importing the template you do not need to check any of the additional options
    5. Click “Import Template”
  4. Import the data confidence template.

    1. Locate the data_confidence_invalid_records.zip file. You will need the file locally to upload it. You can find it in one of two places:
    - <kylo_project>/samples/templates/nifi-1.0/data_confidence_invalid_records.zip
    - /opt/kylo/setup/data/templates/nifi-1.0/data_confidence_invalid_records.zip
    
    1. Go to the templates page in the Admin section
    2. Click on the plus icon on the top left
    3. Click on “Import from file” and choose the data_confidence_invalid_records.zip
    4. If this is the first time you are importing the template you do not need to check any of the additional options
    5. Click “Import Template”