Skip to main content
Version: 5.7.1

clc demo

This command group provides commands for creating and preparing demos.

Usage:

bash
clc demo [command] [options]

Commands​

clc demo generate data​

Generates stream events

Generate data for given name, supported names are:

  • wikipedia-event-stream: Real-time Wikipedia event stream. Following key-value pairs can be set
  • map=<MAP-NAME>: generated stream items are written into the map

Note that the data is streamed from Wikipedia changes. Hazelcast has no control over the incoming data,

Usage:

bash
clc demo generate-data [event-stream-name] [key=val, ...] [flags]

Parameters:

ParameterRequiredDescriptionDefault
event-stream-nameRequiredName for the event stream source. Supported sources are mentioned above.
key=valOptionalKey value pairs used by event stream sources.
--previewOptionalPrint the generated data without interacting with the cluster.
--max-valuesOptionalNumber of events to create.

Example:

bash
clc demo generate-data wikipedia-event-stream map=wiki-events --preview

clc demo map setmany​

Generates multiple map entries.

Usage:

bash
clc demo map-setmany [entry-count] [flags]

Parameters:

ParameterRequiredDescriptionDefault
--name, -nOptionalName of the map.default
--sizeOptionalSize of the map value in bytes, the following suffixes can also be used: kb, mb, e.g., 42kb1

Example:

bash
clc demo map-setmany 10 --name myMap --size 1kb