Установка Apache Ignie
Установка из пакетов
sudo apt update
sudo apt install gnupg ca-certificates --no-install-recommends -y
sudo bash -c 'cat <<EOF > /etc/apt/sources.list.d/ignite.list
deb http://apache.org/dist/ignite/deb/ apache-ignite main
EOF'
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0EE62FB37A00258D
sudo apt update
sudo apt install apache-ignite --no-install-recommends
Установка из архива
wget https://dlcdn.apache.org/ignite/2.13.0/apache-ignite-2.13.0-bin.zip
Если попросит Java
sudo apt -y install openjdk-8-jdk
Распаковываем
unzip apache-ignite-2.13.0-bin.zip -d ignite
Проверяем работу
./ignite/apache-ignite-2.13.0-bin/bin/ignite.sh
Если все хорошо то должно быть что то вроде
[12:56:08] __________ ________________
[12:56:08] / _/ ___/ |/ / _/_ __/ __/
[12:56:08] _/ // (7 7 // / / / / _/
[12:56:08] /___/\___/_/|_/___/ /_/ /x___/
[12:56:08]
[12:56:08] ver. 2.13.0#20220420-sha1:551f6ece
[12:56:08] 2022 Copyright(C) Apache Software Foundation
[12:56:08]
[12:56:08] Ignite documentation: https://ignite.apache.org
[12:56:08]
[12:56:08] Quiet mode.
[12:56:08] ^— Logging to file ‘/root/ignite/apache-ignite-2.13.0-bin/work/log/ignite-522b4a94.0.log’
[12:56:08] ^— Logging by ‘JavaLogger [quiet=true, config=null]’
[12:56:08] ^— To see **FULL** console log here add -DIGNITE_QUIET=false or «-v» to ignite.{sh|bat}
[12:56:08]
[12:56:09] OS: Linux 5.4.0-70-generic amd64
[12:56:09] VM information: OpenJDK Runtime Environment 1.8.0_312-8u312-b07-0ubuntu1~20.04-b07 Private Build OpenJDK 64-Bit Server VM 25.312-b07
[12:56:09] Please set system property ‘-Djava.net.preferIPv4Stack=true’ to avoid possible problems in mixed environments.
[12:56:09] Configured plugins:
[12:56:09] ^— None
[12:56:09]
[12:56:09] Configured failure handler: [hnd=StopNodeOrHaltFailureHandler [tryStop=false, timeout=0, super=AbstractFailureHandler [ignoredFailureTypes=UnmodifiableSet [SYSTEM_WORKER_BLOCKED, SYSTEM_CRITICAL_OPERATION_TIMEOUT]]]]
[12:56:09] Initial heap size is 126MB (should be no less than 512MB, use -Xms512m -Xmx512m).
[12:56:09] Message queue limit is set to 0 which may lead to potential OOMEs when running cache operations in FULL_ASYNC or PRIMARY_SYNC modes due to message queues growth on sender and receiver sides.
[12:56:11] Data Regions Started: 4
[12:56:11]
[12:56:11] ^— sysMemPlc region [type=internal, persistence=false, lazyAlloc=false,
[12:56:11] … initCfg=40MB, maxCfg=100MB, usedRam=0MB, freeRam=100%, allocRam=40MB]
[12:56:11] ^— default region [type=default, persistence=false, lazyAlloc=true,
[12:56:11] … initCfg=256MB, maxCfg=1592MB, usedRam=0MB, freeRam=100%, allocRam=0MB]
[12:56:11] ^— TxLog region [type=internal, persistence=false, lazyAlloc=false,
[12:56:11] … initCfg=40MB, maxCfg=100MB, usedRam=0MB, freeRam=100%, allocRam=40MB]
[12:56:11] ^— volatileDsMemPlc region [type=user, persistence=false, lazyAlloc=true,
[12:56:11] … initCfg=40MB, maxCfg=100MB, usedRam=0MB, freeRam=100%, allocRam=0MB]
[12:56:12] Security status [authentication=off, sandbox=off, tls/ssl=off]
[12:56:12] Performance suggestions for grid (fix if possible)
[12:56:12] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[12:56:12] ^— Switch to the most recent 11 JVM version
[12:56:12] ^— Enable G1 Garbage Collector (add ‘-XX:+UseG1GC’ to JVM options)
[12:56:12] ^— Specify JVM heap max size (add ‘-Xmx<size>[g|G|m|M|k|K]’ to JVM options)
[12:56:12] ^— Set max direct memory size if getting ‘OOME: Direct buffer memory’ (add ‘-XX:MaxDirectMemorySize=<size>[g|G|m|M|k|K]’ to JVM options)
[12:56:12] ^— Speed up flushing of dirty pages by OS (alter vm.dirty_expire_centisecs parameter by setting to 500)
[12:56:12] ^— Reduce pages swapping ratio (set vm.swappiness=10 or less)
[12:56:12] Refer to this page for more performance suggestions: https://ignite.apache.org/docs/latest/perf-and-troubleshooting/memory-tuning
[12:56:12]
[12:56:12] To start Console Management & Monitoring run ignitevisorcmd.{sh|bat}
[12:56:12]
[12:56:12] Ignite node started OK (id=522b4a94)
[12:56:12] Topology snapshot [ver=1, locNode=522b4a94, servers=1, clients=0, state=ACTIVE, CPUs=2, offheap=1.6GB, heap=1.7GB]
[12:56:12] ^— Baseline [id=0, size=1, online=1, offline=0]
Работа с Ignite Visor
./ignite/apache-ignite-2.13.0-bin/bin/ignitevisorcmd.sh
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128M; support was removed in 8.0
___ _________________________ ________
__ | / /____ _/__ ___/__ __ \___ __ \
__ | / / __ / _____ \ _ / / /__ /_/ /
__ |/ / __/ / ____/ / / /_/ / _ _, _/
_____/ /___/ /____/ \____/ /_/ |_|
ADMIN CONSOLE
2022 Copyright(C) Apache Software Foundation
+————————————-+
| Status | Disconnected |
| Ignite instance name | <n/a> |
| Config path | <n/a> |
| Uptime | <n/a> |
+————————————-+
Type ‘help’ for more information.
Type ‘open’ to join the grid.
Вводим команду open
Local configuration files:
+===============================================================================================+
| # | Configuration File |
+===============================================================================================+
| 0 | config/default-config.xml |
| 1 | benchmarks/config/ignite-base-config.xml |
| 2 | benchmarks/config/ignite-localhost-config.xml |
| 3 | benchmarks/config/ignite-multicast-config.xml |
| 4 | benchmarks/config/ignite-remote-config.xml |
| 5 | benchmarks/sources/config/ignite-base-config.xml |
| 6 | benchmarks/sources/config/ignite-localhost-config.xml |
| 7 | benchmarks/sources/config/ignite-multicast-config.xml |
| 8 | benchmarks/sources/config/ignite-remote-config.xml |
| 9 | (?) config/router/default-router.xml |
| 10 | examples/config/encryption/example-encrypted-store.xml |
| 11 | examples/config/example-cache.xml |
| 12 | examples/config/example-data-regions.xml |
| 13 | examples/config/example-default.xml |
| 14 | (?) examples/config/example-ignite-ml.xml |
| 15 | (?) examples/config/example-ignite.xml |
| 16 | (?) examples/config/example-sql.xml |
| 17 | examples/config/persistentstore/example-persistent-store.xml |
| 18 | examples/config/redis/example-redis.xml |
| 19 | examples/config/spark/example-shared-rdd.xml |
| 20 | examples/src/main/java/org/apache/ignite/examples/misc/springbean/spring-bean.xml |
| 21 | platforms/cpp/examples/cluster-compute-example/config/cluster-compute-example-client.xml |
| 22 | platforms/cpp/examples/cluster-compute-example/config/cluster-compute-example1.xml |
| 23 | platforms/cpp/examples/cluster-compute-example/config/cluster-compute-example2.xml |
| 24 | platforms/cpp/examples/compute-example/config/compute-example.xml |
| 25 | platforms/cpp/examples/continuous-query-example/config/continuous-query-example.xml |
| 26 | platforms/cpp/examples/odbc-example/config/example-odbc.xml |
| 27 | platforms/cpp/examples/put-get-example/config/example-cache.xml |
| 28 | platforms/cpp/examples/query-example/config/query-example.xml |
+————————————————————————————————+
Выбираем конфигурацию
Choose configuration file number (‘c’ to cancel) [0]: 0
+—————————————————————————————+
| Using configuration | /root/ignite/apache-ignite-2.13.0-bin/config/default-config.xml |
+—————————————————————————————+
[13:08:57] __________ ________________
[13:08:57] / _/ ___/ |/ / _/_ __/ __/
[13:08:57] _/ // (7 7 // / / / / _/
[13:08:57] /___/\___/_/|_/___/ /_/ /x___/
[13:08:57]
[13:08:57] ver. 2.13.0#20220420-sha1:551f6ece
[13:08:57] 2022 Copyright(C) Apache Software Foundation
[13:08:57]
[13:08:57] Ignite documentation: https://ignite.apache.org
[13:08:57]
[13:08:57] Quiet mode.
[13:08:57] ^— Logging to file ‘/root/ignite/apache-ignite-2.13.0-bin/work/log/ignite-f5e4053b.0.log’
[13:08:57] ^— Logging by ‘JavaLogger [quiet=true, config=null]’
[13:08:57] ^— To see **FULL** console log here add -DIGNITE_QUIET=false or «-v» to ignite.{sh|bat}
[13:08:57]
[13:08:57] OS: Linux 5.4.0-70-generic amd64
[13:08:57] VM information: OpenJDK Runtime Environment 1.8.0_312-8u312-b07-0ubuntu1~20.04-b07 Private Build OpenJDK 64-Bit Server VM 25.312-b07
[13:08:57] Please set system property ‘-Djava.net.preferIPv4Stack=true’ to avoid possible problems in mixed environments.
[13:08:57] Configured plugins:
[13:08:57] ^— None
[13:08:57]
[13:08:57] Configured failure handler: [hnd=StopNodeOrHaltFailureHandler [tryStop=false, timeout=0, super=AbstractFailureHandler [ignoredFailureTypes=UnmodifiableSet [SYSTEM_WORKER_BLOCKED, SYSTEM_CRITICAL_OPERATION_TIMEOUT]]]]
[13:08:57] Message queue limit is set to 0 which may lead to potential OOMEs when running cache operations in FULL_ASYNC or PRIMARY_SYNC modes due to message queues growth on sender and receiver sides.
[13:09:00] Security status [authentication=off, sandbox=off, tls/ssl=off]
[13:09:00] Performance suggestions for grid (fix if possible)
[13:09:00] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[13:09:00] ^— Switch to the most recent 11 JVM version
[13:09:00] ^— Enable G1 Garbage Collector (add ‘-XX:+UseG1GC’ to JVM options)
[13:09:00] ^— Set max direct memory size if getting ‘OOME: Direct buffer memory’ (add ‘-XX:MaxDirectMemorySize=<size>[g|G|m|M|k|K]’ to JVM options)
[13:09:00] ^— Speed up flushing of dirty pages by OS (alter vm.dirty_expire_centisecs parameter by setting to 500)
[13:09:00] ^— Reduce pages swapping ratio (set vm.swappiness=10 or less)
[13:09:00] Refer to this page for more performance suggestions: https://ignite.apache.org/docs/latest/perf-and-troubleshooting/memory-tuning
[13:09:00]
[13:09:00] To start Console Management & Monitoring run ignitevisorcmd.{sh|bat}
[13:09:00]
[13:09:00] Ignite node started OK (id=f5e4053b)
Some useful commands:
+———————————————+
| Type ‘top’ | to see full topology. |
| Type ‘node’ | to see node statistics. |
| Type ‘cache’ | to see cache statistics. |
| Type ‘tasks’ | to see tasks statistics. |
| Type ‘config’ | to see node configuration. |
+———————————————+
Type ‘help’ to get help.
+—————————————————————————————-+
| Status | Connected |
| Ignite instance name | <default> |
| Config path | /root/ignite/apache-ignite-2.13.0-bin/config/default-config.xml |
| Uptime | 00:00:00 |
+—————————————————————————————-+