{"id":18245521,"url":"https://github.com/touk/nussknacker-ignite-quickstart","last_synced_at":"2025-04-08T18:53:05.605Z","repository":{"id":41100019,"uuid":"445607147","full_name":"TouK/nussknacker-ignite-quickstart","owner":"TouK","description":"Nussknacker demo project showing Apache Ignite integration","archived":false,"fork":false,"pushed_at":"2023-10-24T08:47:10.000Z","size":1051,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":24,"default_branch":"main","last_synced_at":"2025-02-14T14:56:47.938Z","etag":null,"topics":["ignite","kafka"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TouK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-07T17:51:19.000Z","updated_at":"2022-01-25T11:30:41.000Z","dependencies_parsed_at":"2024-11-05T09:22:40.597Z","dependency_job_id":"b7dac83c-6388-4827-97c5-4aa9fee53bcc","html_url":"https://github.com/TouK/nussknacker-ignite-quickstart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TouK%2Fnussknacker-ignite-quickstart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TouK%2Fnussknacker-ignite-quickstart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TouK%2Fnussknacker-ignite-quickstart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TouK%2Fnussknacker-ignite-quickstart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TouK","download_url":"https://codeload.github.com/TouK/nussknacker-ignite-quickstart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247909134,"owners_count":21016475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ignite","kafka"],"created_at":"2024-11-05T09:21:08.794Z","updated_at":"2025-04-08T18:53:05.568Z","avatar_url":"https://github.com/TouK.png","language":"Shell","readme":"[![Build status](https://github.com/touk/nussknacker-quickstart/workflows/CI/badge.svg)](https://github.com/touk/nussknacker-quickstart/actions?query=workflow%3A%22CI%22)\n\n# Nussknacker Ignite Quickstart\n\nThis is slightly modified version of Nussknacker's [quickstart](https://nussknacker.io/quickstart/docker).\n\nIt shows how to use [Apache Ignite](https://ignite.apache.org/) in several cases of Nussknacker deployment:\n * aggregation - persist large aggregates collected while processing input records\n * enrichment - enrich input records with detailed data using Ignite as super-fast cache \n \n![diagram](https://user-images.githubusercontent.com/50945192/150360471-83eeda01-381f-46ec-bf77-348b3e104ac8.png)\n\n\n## Running\n\n### Prerequisites\n* `docker-compose`\n* `jq`\n\nTo run end-to-end scenarios, just run:\n```bash\n./testAggregates.sh\n```\nfor aggregation scenario, or\n```bash\n./testEnrichment.sh\n``` \nfor enrichment.\n\nTo cleanup Docker stuff after running end-to-end tests run `./cleanup.sh`.\n\n## Detailed setup\n\nYou can just run `./start.sh` to pull and start required docker images. \n\nAfter doing it, you can access following components:\n* [Nussknacker](http://localhost:8081/) - user/password: admin/admin\n* [Apache Flink UI](http://localhost:8081/flink/)\n* [Apache NiFi](http://localhost:3080/nifi/)\n* [Grafana](http://localhost:8081/grafana/)\n* [AKHQ](http://localhost:8081/akhq/)\n\n### Ignite\nIgnite doesn't expose any UI to access, you can connect to it using JDBC or built-in `sqlline` tool:\n```bash\n#\u003e docker exec -it nussknacker_ignite bash\nbash-4.4# /opt/ignite/apache-ignite/bin/sqlline.sh -u 'jdbc:ignite:thin://ignite' -n ignite -p ignite\nsqlline version 1.9.0\n0: jdbc:ignite:thin://ignite\u003e select * from customer;\n+----------+---------------+----------+\n| clientId |     name      | category |\n+----------+---------------+----------+\n| client1  | John Doe      | STANDARD |\n| client2  | Robert Wright | GOLD     |\n| client3  | Юрий Шевчук   | PLATINUM |\n| client4  | Иосиф Кобзон  | STANDARD |\n+----------+---------------+----------+\n4 rows selected (0.036 seconds)\n0: jdbc:ignite:thin://ignite\u003e \n```\n\nThere is also helper script to query aggregates table:\n```bash\n#\u003e ./testData/aggregates/queryIgniteAggregates.sh\n1/1          SELECT * FROM AGGREGATES ORDER BY \"eventDate\" DESC;\n+----------+-----------------------+--------+\n| clientId |       eventDate       | amount |\n+----------+-----------------------+--------+\n| client1  | 2022-01-10 00:00:00.0 | 158    |\n| client2  | 2022-01-10 00:00:00.0 | 175    |\n| client3  | 2022-01-10 00:00:00.0 | 190    |\n| client4  | 2022-01-10 00:00:00.0 | 192    |\n| client5  | 2022-01-10 00:00:00.0 | 188    |\n+----------+-----------------------+--------+\n5 rows selected (0.061 seconds)\nsqlline version 1.9.0\n```\n\n### NiFi\nIn aggregates scenario, updated aggregate records are published to `dailyAggregates` topic. In order to populate this data\nto Ignite, a simple NiFi flow is provided:\n\n![nifi_aggregates](https://user-images.githubusercontent.com/513361/148759847-16f3f62e-1b06-46f3-9536-7b72b8f38aa2.png)\n\nThis `PutIgniteRecord` processor is a part of our [nifi-extensions](https://github.com/TouK/nifi-extensions) project.\n\n### Scripts\nHere's a brief summary of scripts located in `testData` directory, which are used in end-to-end scenarios:\n* `createIgniteTables.sh` - creates Ignite tables and populates with basic data\n* `importAndDeploy.sh \u003cscenario_file\u003e` - imports Nussknacker's scenario from `scenario_file` and deploys it to Flink\n* `sendTestTransactions.sh \u003ccount\u003e` - sends random `count` transactions to input topic \n\n## What's next?\n\nMore advanced usages of Nussknacker image (available properties and so on) you can find out on our [Installation guide](https://docs.nussknacker.io/docs/next/installation_configuration_guide/Installation)\n\n### Contributing\n\nPlease send your feedback on our [mailing list](https://groups.google.com/g/nussknacker).\nIssues and pull request can be reported on our [project page](https://github.com/TouK/nussknacker)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouk%2Fnussknacker-ignite-quickstart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftouk%2Fnussknacker-ignite-quickstart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouk%2Fnussknacker-ignite-quickstart/lists"}