### Run CachePutGetExample.js Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/nodejs.adoc Run the ready-to-run Node.JS example from the Ignite installation's examples directory. Assumes the server node is running locally and prerequisites are completed. ```shell cd {client_dir}/examples node CachePutGetExample.js ``` -------------------------------- ### Run hello.py from command line Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/python.adoc Command to execute the saved Hello World example file. ```python python3 hello.py ``` -------------------------------- ### Build and run thick client example on Ubuntu Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/cpp.adoc Commands to build and run the put-get example on Ubuntu. Requires the Ignite C++ build and a separate build directory for examples. ```bash cd ${CPP_EXAMPLES_BUILD_DIR} cmake -DCMAKE_BUILD_TYPE=Release ${IGNITE_HOME}/platforms/cpp/examples && make cd ./put-get-example ./ignite-put-get-example ``` -------------------------------- ### Run a specific example Source: https://github.com/apache/ignite/blob/master/modules/platforms/dotnet/examples/README.md Navigate to the example directory and run it with dotnet run. For Thin Client examples, start a server node first. ```bash cd Thick/Cache/PutGet ``` ```bash dotnet run ``` -------------------------------- ### Install Apache.Ignite.Examples via dotnet new Source: https://github.com/apache/ignite/blob/master/modules/platforms/dotnet/examples/README.md Install the template package for Ignite.NET examples using the .NET CLI. ```bash dotnet new install Apache.Ignite.Examples ``` -------------------------------- ### Build and run thick client example on CentOS/RHEL Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/cpp.adoc Commands to build and run the put-get example on CentOS/RHEL. Requires the Ignite C++ build and a separate build directory for examples. ```shell cd ${CPP_EXAMPLES_BUILD_DIR} cmake3 -DCMAKE_BUILD_TYPE=Release ${IGNITE_HOME}/platforms/cpp/examples && make cd ./put-get-example ./ignite-put-get-example ``` -------------------------------- ### Run CachePutGetExample.php on Windows Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/php.adoc Command to run the CachePutGetExample.php example on Windows systems. Requires the server node to be running locally and prerequisites completed. ```shell cd {client_dir}\examples php CachePutGetExample.php ``` -------------------------------- ### Hello World example using pyignite thin client Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/python.adoc Connects to a local Ignite node, creates a cache, puts and gets a value, and prints the result. Requires Python 3.4+ and the pyignite package installed. ```python from pyignite import Client client = Client() client.connect('127.0.0.1', 10800) #Create cache my_cache = client.create_cache('my cache') #Put value in cache my_cache.put(1, 'Hello World') #Get value from cache result = my_cache.get(1) print(result) ``` -------------------------------- ### Run CachePutGetExample.php on Unix Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/php.adoc Command to run the CachePutGetExample.php example on Unix systems. Requires the server node to be running locally and prerequisites completed. ```shell cd {client_dir}/examples php CachePutGetExample.php ``` -------------------------------- ### Run ServerNode for Thin Client examples Source: https://github.com/apache/ignite/blob/master/modules/platforms/dotnet/examples/README.md Start an Ignite server node in a separate terminal before running Thin Client examples. ```bash cd ServerNode ``` ```bash dotnet run ``` -------------------------------- ### Replace Program.cs with Hello World example Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/dotnet.adoc Replace the contents of Program.cs with this code. It starts an Ignite node, creates a cache, puts a value, and retrieves it. Requires the Apache.Ignite package. ```csharp using System; using Apache.Ignite.Core; namespace IgniteTest { class Program { static void Main(string[] args) { var ignite = Ignition.Start(); var cache = ignite.GetOrCreateCache("my-cache"); cache.Put(1, "Hello, World"); Console.WriteLine(cache.Get(1)); } } } ``` -------------------------------- ### Start Apache Ignite service with example config Source: https://github.com/apache/ignite/blob/master/DEVNOTES.txt Example using default-config.xml. ```bash systemctl start apache-ignite@default-config.xml ``` -------------------------------- ### Build ML and DL Examples Source: https://github.com/apache/ignite/blob/master/docs/_docs/machine-learning/machine-learning.adoc Build the ML and DL examples from the examples directory after installing Apache Ignite. ```shell cd examples mvn clean package -DskipTests ``` -------------------------------- ### Build and install Ignite C++ on Ubuntu Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/cpp.adoc Commands to build and install Ignite C++ on Ubuntu using CMake and make. Requires the Ignite binary release and a build directory. ```bash cd ${CPP_BUILD_DIR} cmake -DCMAKE_BUILD_TYPE=Release -DWITH_THIN_CLIENT=ON ${IGNITE_HOME}/platforms/cpp make sudo make install ``` -------------------------------- ### PHP HelloWorld cache put/get example Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/php.adoc Simple PHP thin client example that connects to a local Ignite node, creates a cache, and performs put/get operations. Requires the Composer autoload file and correct path in require_once. Outputs the retrieved value or an error message. ```php connect(new ClientConfiguration('127.0.0.1:10800')); $cache = $client->getOrCreateCache('myCache')-> setKeyType(ObjectType::INTEGER); // put and get value $cache->put(1, 'Hello World'); $value = $cache->get(1); echo($value); } catch (ClientException $e) { echo($e->getMessage()); } finally { $client->disconnect(); } } performCacheKeyValueOperations(); ``` -------------------------------- ### Install and use Apache.Ignite.ExampleThin template: dotnet new ignite-example-thin Source: https://github.com/apache/ignite/blob/master/modules/platforms/dotnet/templates/README.md Internal template for Thin Client examples. Install locally with --install, then use. ```bash dotnet new --install internal/Apache.Ignite.ExampleThin ``` ```bash dotnet new ignite-example-thin ``` -------------------------------- ### Build and install Ignite C++ on CentOS/RHEL Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/cpp.adoc Commands to build and install Ignite C++ on CentOS/RHEL using cmake3 and make. Requires the Ignite binary release and a build directory. ```shell cd ${CPP_BUILD_DIR} cmake3 -DCMAKE_BUILD_TYPE=Release -DWITH_THIN_CLIENT=ON ${IGNITE_HOME}/platforms/cpp make sudo make install ``` -------------------------------- ### Install and use Apache.Ignite.Example template: dotnet new ignite-example Source: https://github.com/apache/ignite/blob/master/modules/platforms/dotnet/templates/README.md Internal template for Server and Thick Client examples. Install locally with --install, then use. ```bash dotnet new --install internal/Apache.Ignite.Example ``` ```bash dotnet new ignite-example ``` -------------------------------- ### Clone Apache Ignite repository Source: https://github.com/apache/ignite/blob/master/modules/platforms/dotnet/examples/README.md Clone the Apache Ignite repository and navigate to the examples directory. ```bash git clone https://github.com/apache/ignite --depth=1 ``` ```bash cd ignite/modules/platforms/dotnet/examples ``` -------------------------------- ### Run the .NET program Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/dotnet.adoc Run this command to execute the program. It launches a node and displays "Hello, World". ```bash > dotnet run ``` -------------------------------- ### HelloWorld cache put/get with Node.js thin client Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/nodejs.adoc Connects to Ignite at 127.0.0.1:10800, creates or gets a cache 'myCache' with integer keys, puts 'Hello World' at key 1, and prints the retrieved value. Disconnects in finally block. ```javascript const IgniteClient = require('apache-ignite-client'); const IgniteClientConfiguration = IgniteClient.IgniteClientConfiguration; const ObjectType = IgniteClient.ObjectType; const CacheEntry = IgniteClient.CacheEntry; async function performCacheKeyValueOperations() { const igniteClient = new IgniteClient(); try { await igniteClient.connect(new IgniteClientConfiguration('127.0.0.1:10800')); const cache = (await igniteClient.getOrCreateCache('myCache')). setKeyType(ObjectType.PRIMITIVE_TYPE.INTEGER); // put and get value await cache.put(1, 'Hello World'); const value = await cache.get(1); console.log(value); } catch (err) { console.log(err.message); } finally { igniteClient.disconnect(); } } performCacheKeyValueOperations(); ``` -------------------------------- ### Create a new .NET console project Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/dotnet.adoc Run this command to create an empty .NET console project. It generates a project file with metadata and a .cs file with code. ```bash > dotnet new console ``` -------------------------------- ### Example output of curl version command Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/restapi.adoc Expected output when running the version command. The response contains the Ignite version. ```shell $ curl "http://localhost:8080/ignite?cmd=version" {"successStatus":0,"error":null,"sessionToken":null,"response":"{version}"} ``` -------------------------------- ### Build examples from examples sub-folder Source: https://github.com/apache/ignite/blob/master/examples/DEVNOTES.txt Run from the 'examples' sub-folder under the Ignite project root to build the examples, skipping tests. ```bash mvn clean package -DskipTests ``` -------------------------------- ### Build and install Ignite C++ on Windows (Win64) Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/cpp.adoc Commands to build and install the Ignite C++ thin client on Windows 64-bit. Requires CMake 3.6+, OpenSSL, and JAVA_HOME set. The build generates Visual Studio projects; open Ignite.C++.sln in the build directory. ```bat cd cmake-build-release cmake .. -DWITH_THIN_CLIENT=ON -DCMAKE_GENERATOR_PLATFORM=x64 -DOPENSSL_ROOT_DIR= -DCMAKE_INSTALL_PREFIX= cmake --build . --target install --config Release ``` -------------------------------- ### Add Apache.Ignite package Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/dotnet.adoc Run this command to add the Apache.Ignite NuGet package to the project. It modifies the .csproj file to add dependencies. ```bash > dotnet add package Apache.Ignite ``` -------------------------------- ### Query all cities Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/sql.adoc Runs a basic SELECT query on the City table and shows the expected output. ```sql SELECT * FROM City; +--------------------------------+--------------------------------+ | ID | NAME | +--------------------------------+--------------------------------+ | 1 | Forest Hill | | 2 | Denver | | 3 | St. Petersburg | +--------------------------------+--------------------------------+ 3 rows selected (0.05 seconds) ``` -------------------------------- ### Connect to cluster with sqlline (Unix) Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/sql.adoc Connects to the Ignite cluster using the sqlline utility on Unix systems. Run from the {IGNITE_HOME}/bin folder. ```shell $ ./sqlline.sh -u jdbc:ignite:thin://127.0.0.1/ ``` -------------------------------- ### CMake configuration on Windows Source: https://github.com/apache/ignite/blob/master/modules/platforms/cpp/examples/README.txt Configures the CMake build for C++ examples on Windows. Set IGNITE_CPP_DIR to the Ignite C++ installation directory. ```bash cmake .. -DCMAKE_GENERATOR_PLATFORM=[Win32|x64] -DIGNITE_CPP_DIR= ``` -------------------------------- ### Connect to cluster with sqlline (Windows) Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/sql.adoc Connects to the Ignite cluster using the sqlline utility on Windows systems. Run from the {IGNITE_HOME}\bin folder. ```shell $ sqlline -u jdbc:ignite:thin://127.0.0.1 ``` -------------------------------- ### Navigate to the bin folder (Shell) Source: https://github.com/apache/ignite/blob/master/docs/_docs/includes/starting-node.adoc Navigate into the bin folder of the Ignite installation directory from a Unix or Windows command shell. ```shell cd {IGNITE_HOME}/bin/ ``` ```shell cd {IGNITE_HOME}\bin\ ``` -------------------------------- ### Install Ignite C++ Source: https://github.com/apache/ignite/blob/master/modules/platforms/cpp/DEVNOTES.txt Installs the built libraries. This step is optional but required to build and run examples, which can only find installed Ignite C++. ```bash cmake --build . --target install --config [Release|Debug] ``` -------------------------------- ### Start a node with custom configuration - Output Source: https://github.com/apache/ignite/blob/master/docs/_docs/includes/starting-node.adoc The output shows a successful node start and a topology snapshot with one server node, indicating the node has started and the cluster is active. Use this as a reference for a typical startup output. ```text [08:53:45] Ignite node started OK (id=7b30bc8e) [08:53:45] Topology snapshot [ver=1, locNode=7b30bc8e, servers=1, clients=0, state=ACTIVE, CPUs=4, offheap=1.6GB, heap=2.0GB] ``` -------------------------------- ### Build and install Ignite C++ on Windows (Win32) Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/cpp.adoc Commands to build and install the Ignite C++ thin client on Windows 32-bit. Requires CMake 3.6+, OpenSSL, and JAVA_HOME set. The build generates Visual Studio projects; open Ignite.C++.sln in the build directory. ```bat cd cmake-build-release cmake .. -DWITH_THIN_CLIENT=ON -DCMAKE_GENERATOR_PLATFORM=Win32 -DOPENSSL_ROOT_DIR= -DCMAKE_INSTALL_PREFIX= cmake --build . --target install --config Release ``` -------------------------------- ### Install Root Configuration Example Source: https://github.com/apache/ignite/blob/master/modules/ducktests/README.md Root directory for Ignite installation, pointing to the base directory where Ignite is installed for testing. Default is typically "/opt/ignite". ```json {"install_root": "/opt/ignite-testing"} ``` -------------------------------- ### Start Minikube Source: https://github.com/apache/ignite/blob/master/modules/kubernetes/DEVNOTES.md Starts the Minikube cluster for testing. ```bash minikube start ``` -------------------------------- ### HelloWorld.java - client node with cache and compute task Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/java.adoc Sample Java application that starts a client node, creates a cache, and broadcasts a compute task to server nodes. Requires imports for Ignite classes; Maven resolves dependencies. The compute task prints node details and reads cache values. ```java public class HelloWorld { public static void main(String[] args) throws IgniteException { // Preparing IgniteConfiguration using Java APIs IgniteConfiguration cfg = new IgniteConfiguration(); // The node will be started as a client node. cfg.setClientMode(true); // Classes of custom Java logic will be transferred over the wire from this app. cfg.setPeerClassLoadingEnabled(true); // Setting up an IP Finder to ensure the client can locate the servers. TcpDiscoveryMulticastIpFinder ipFinder = new TcpDiscoveryMulticastIpFinder(); ipFinder.setAddresses(Collections.singletonList("127.0.0.1:47500..47509")); cfg.setDiscoverySpi(new TcpDiscoverySpi().setIpFinder(ipFinder)); // Starting the node Ignite ignite = Ignition.start(cfg); // Create an IgniteCache and put some values in it. IgniteCache cache = ignite.getOrCreateCache("myCache"); cache.put(1, "Hello"); cache.put(2, "World!"); System.out.println(">> Created the cache and add the values."); // Executing custom Java compute task on server nodes. ignite.compute(ignite.cluster().forServers()).broadcast(new RemoteTask()); System.out.println(">> Compute task is executed, check for output on the server nodes."); // Disconnect from the cluster. ignite.close(); } /** * A compute tasks that prints out a node ID and some details about its OS and JRE. * Plus, the code shows how to access data stored in a cache from the compute task. */ private static class RemoteTask implements IgniteRunnable { @IgniteInstanceResource Ignite ignite; @Override public void run() { System.out.println(">> Executing the compute task"); System.out.println( " Node ID: " + ignite.cluster().localNode().id() + "\n" + " OS: " + System.getProperty("os.name") + " JRE: " + System.getProperty("java.runtime.name")); IgniteCache cache = ignite.cache("myCache"); System.out.println(">> " + cache.get(1) + " " + cache.get(2)); } } } ``` -------------------------------- ### Install from ZIP archive: npm link apache-ignite-client Source: https://github.com/apache/ignite/blob/master/docs/_docs/thin-clients/nodejs-thin-client.adoc Install the client from a downloaded zip archive. After unpacking, navigate to the root folder and run these commands to finish installation. ```shell npm link npm link apache-ignite-client ``` -------------------------------- ### Create City and Person tables Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/sql.adoc Creates two tables: City (replicated) and Person (with backups and affinity key). Run these statements in sqlline. ```sql CREATE TABLE City (id BIGINT PRIMARY KEY, name VARCHAR) WITH "template=replicated"; CREATE TABLE Person (id BIGINT, name VARCHAR, city_id BIGINT, PRIMARY KEY (id, city_id)) WITH "backups=1, affinity_key=city_id"; ``` -------------------------------- ### Start server node with ignite.sh Source: https://github.com/apache/ignite/blob/master/docs/_docs/starting-nodes.adoc Starts a server node using the ignite.sh script with a configuration file. ```shell ignite.sh path/to/configuration.xml ``` -------------------------------- ### Query with distributed JOIN Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/sql.adoc Runs a query with a distributed JOIN between Person and City tables and shows the expected output. ```sql SELECT p.name, c.name FROM Person p, City c WHERE p.city_id = c.id; +--------------------------------+--------------------------------+ | NAME | NAME | +--------------------------------+--------------------------------+ | Mary Major | Forest Hill | | Jane Roe | Denver | | John Doe | St. Petersburg | | Richard Miles | Denver | +--------------------------------+--------------------------------+ 4 rows selected (0.011 seconds) ``` -------------------------------- ### Start standalone node with Apache.Ignite.exe command line Source: https://github.com/apache/ignite/blob/master/docs/_docs/net-specific/net-standalone-nodes.adoc Command line example for starting a standalone Ignite.NET node with Apache.Ignite.exe, specifying configuration file, section name, assembly, and JVM heap options. ```shell Apache.Ignite.exe -ConfigFileName=c:\ignite\my-config.xml -ConfigSectionName=igniteConfiguration -Assembly=c:\ignite\my-code.dll -J-Xms1024m -J-Xmx2048m ``` -------------------------------- ### Install Ignite.NET as Windows Service with /install Source: https://github.com/apache/ignite/blob/master/docs/_docs/net-specific/net-standalone-nodes.adoc Installs Apache.Ignite.exe as a Windows Service using the /install command line argument. All other command line arguments are preserved and used each time the service starts. Use /uninstall to uninstall the service. ```shell Apache.Ignite.exe /install -J-Xms513m -J-Xmx555m -ConfigSectionName=igniteConfiguration ``` -------------------------------- ### Build and install ODBC MSI installers Source: https://github.com/apache/ignite/blob/master/modules/platforms/cpp/DEVNOTES.txt Builds and installs the ODBC MSI installers. The installers will be located in /bin. ```bash cmake --build . --target install --config Release ``` -------------------------------- ### Enable Apache Ignite service at system startup Source: https://github.com/apache/ignite/blob/master/docs/_docs/installation/deb-rpm.adoc Configures the apache-ignite service to start automatically at boot, using a configuration file relative to /etc/apache-ignite. ```shell sudo systemctl enable apache-ignite@ ``` -------------------------------- ### Get data from cache via REST get command Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/restapi.adoc Retrieves the value associated with key 1 from the 'myCache' cache. ```shell curl "http://localhost:8080/ignite?cmd=get&key=1&cacheName=myCache" ``` -------------------------------- ### Set JVM_OPTS environment variable and start Ignite node Source: https://github.com/apache/ignite/blob/master/docs/_docs/setup.adoc Use this command to set JVM options via the JVM_OPTS environment variable before starting a node with the ignite.sh script. The example adds -Xmx6G and disables sensitive data in toString output. ```shell export JVM_OPTS="$JVM_OPTS -Xmx6G -DIGNITE_TO_STRING_INCLUDE_SENSITIVE=false"; $IGNITE_HOME/bin/ignite.sh ``` -------------------------------- ### Start Apache Ignite as a service with custom configuration Source: https://github.com/apache/ignite/blob/master/docs/_docs/installation/deb-rpm.adoc Starts an Ignite node as a systemd service, using a configuration file whose name is relative to /etc/apache-ignite. Not recommended for Windows 10 WSL or Docker. ```shell sudo systemctl start apache-ignite@ ``` -------------------------------- ### Continuous Queries and Event Listeners Setup Source: https://github.com/apache/ignite/blob/master/docs/_docs/thin-clients/java-thin-client.adoc Example of setting up continuous queries and event listeners on the Java thin client. Note that on server disconnection, these queries and listeners are closed, and a disconnect listener can be used to handle such events. ```java include::{sourceCodeFile}[tag=continuous-queries,indent=0] ``` -------------------------------- ### Start client node in Java Source: https://github.com/apache/ignite/blob/master/docs/_docs/starting-nodes.adoc Starts a client node programmatically in Java by enabling client mode. ```java include::{javaFile}[tag=client-node,indent=0] ``` -------------------------------- ### Create cache via REST getorcreate command Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/restapi.adoc Creates a cache named 'myCache' if it does not already exist. This is the first step in the basic example. ```shell curl "http://localhost:8080/ignite?cmd=getorcreate&cacheName=myCache" ``` -------------------------------- ### Build LGPL-based libs with Maven (option 1) Source: https://github.com/apache/ignite/blob/master/examples/README.txt Run this Maven command at the Apache Ignite sources to install LGPL-based libraries (e.g., ignite-schedule) into the local Maven repository. Required when the Maven project cannot find these libraries. ```bash ./mvnw clean install -DskipTests -P lgpl ``` -------------------------------- ### CMake configuration for put-get-example Source: https://github.com/apache/ignite/blob/master/modules/platforms/cpp/examples/put-get-example/CMakeLists.txt CMake build configuration for the put-get-example project. It sets up the target executable, finds required dependencies (Ignite, Threads, Java 1.8, JNI), includes necessary directories, and links the executable against Ignite libraries and thread libraries. ```cmake project(put-get-example) set(TARGET ignite-${PROJECT_NAME}) find_package(Ignite) find_package(Threads) find_package(Java 1.8 REQUIRED) find_package(JNI REQUIRED) include_directories(SYSTEM ${IGNITE_INCLUDE_DIR} ${JNI_INCLUDE_DIRS}) include_directories(../include) add_executable(${TARGET} src/put_get_example.cpp) target_link_libraries(${TARGET} ${IGNITE_LIB} ${IGNITE_BINARY_LIB} ${IGNITE_COMMON_LIB} ${CMAKE_THREAD_LIBS_INIT}) ``` -------------------------------- ### Start client node in C#/.NET Source: https://github.com/apache/ignite/blob/master/docs/_docs/starting-nodes.adoc Starts a client node programmatically in C#/.NET by enabling client mode. ```csharp include::{csharpFile}[tag=start-client,indent=0] ``` -------------------------------- ### Put data via REST with form data Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/restapi.adoc Shows how to pass request parameters as form data using curl. This example puts a key-value pair into the 'myCache' cache. ```shell curl 'http://localhost:8080/ignite?cmd=put&cacheName=myCache' -X POST -H 'Content-Type: application/x-www-form-urlencoded' -d 'key=testKey&val=testValue' ``` -------------------------------- ### RIGHT function example Source: https://github.com/apache/ignite/blob/master/docs/_docs/sql-reference/string-functions.adoc Example query getting the last 3 letters of Players' names. ```sql SELECT RIGHT(NAME, 3) FROM Players; ``` -------------------------------- ### TxStart Source: https://github.com/apache/ignite/blob/master/docs/_docs/thin-clients/cpp-thin-client.adoc Starts a new client transaction with optional concurrency mode, isolation level, and timeout. The provided values override the default settings for this transaction. ```APIDOC ## TxStart ### Description Starts a new client transaction with optional concurrency mode, isolation level, and timeout. The provided values override the default settings for this transaction. ### Method TxStart ### Parameters - **concurrency** (TransactionConcurrency) - Optional - Concurrency mode for the transaction. - **isolation** (TransactionIsolation) - Optional - Isolation level for the transaction. - **timeout** (uint32_t) - Optional - Execution timeout in milliseconds. ### Returns ClientTransaction - The started transaction. ### Request Example ```cpp transactions::ClientTransactions transactions = client.ClientTransactions(); const uint32_t TX_TIMEOUT = 200; transactions::ClientTransaction tx = transactions.TxStart(TransactionConcurrency::OPTIMISTIC, TransactionIsolation::SERIALIZABLE, TX_TIMEOUT); ``` ``` -------------------------------- ### LEFT function example Source: https://github.com/apache/ignite/blob/master/docs/_docs/sql-reference/string-functions.adoc Example query getting the first 3 letters of Players' names. ```sql SELECT LEFT(NAME, 3) FROM Players; ``` -------------------------------- ### Example output of ignite.sh -systemProps Source: https://github.com/apache/ignite/blob/master/docs/_docs/setup.adoc Sample output from the -systemProps command, showing the format and a few properties with their types and default values. ```text ignite.sh -systemProps IGNITE_AFFINITY_HISTORY_SIZE - [Integer] Maximum size for affinity assignment history. Default is 25. IGNITE_ALLOW_ATOMIC_OPS_IN_TX - [Boolean] Allows atomic operations inside transactions. Default is true. IGNITE_ALLOW_DML_INSIDE_TRANSACTION - [Boolean] When set to true, Ignite will allow executing DML operation (MERGE|INSERT|UPDATE|DELETE) within transactions. Default is false. IGNITE_ALLOW_START_CACHES_IN_PARALLEL - [Boolean] Allows to start multiple caches in parallel. Default is true. ... ``` -------------------------------- ### CMake configuration for thin-client-put-get-example Source: https://github.com/apache/ignite/blob/master/modules/platforms/cpp/examples/thin-client-put-get-example/CMakeLists.txt Build configuration for the Apache Ignite C++ thin client put-get example. Defines the target ignite-thin-client-put-get-example, finds Ignite and Threads packages, includes required directories, and links the thin client, binary, and common libraries. ```cmake project(thin-client-put-get-example) set(TARGET ignite-${PROJECT_NAME}) find_package(Ignite) find_package(Threads) include_directories(SYSTEM ${IGNITE_INCLUDE_DIR}) include_directories(../include) add_executable(${TARGET} src/thin_client_put_get_example.cpp) target_link_libraries(${TARGET} ${IGNITE_THIN_CLIENT_LIB} ${IGNITE_BINARY_LIB} ${IGNITE_COMMON_LIB} ${CMAKE_THREAD_LIBS_INIT}) ``` -------------------------------- ### CMake configuration on Windows Source: https://github.com/apache/ignite/blob/master/modules/platforms/cpp/DEVNOTES.txt Run this command from the cmake-build-[release|debug] directory to configure the build. Use -DWITH_THIN_CLIENT=ON, -DWITH_ODBC=ON, or -DWITH_TESTS=ON to enable optional modules. CMAKE_INSTALL_PREFIX is only needed for a non-default install directory. ```bash cmake .. -DCMAKE_GENERATOR_PLATFORM=[Win32|x64] [-DCMAKE_INSTALL_PREFIX=] [-DWITH_THIN_CLIENT=ON] [-DWITH_ODBC=ON] [-DWITH_TESTS=ON] ``` -------------------------------- ### ATAN2 example Source: https://github.com/apache/ignite/blob/master/docs/_docs/sql-reference/numeric-functions.adoc Gets the angle from the X and Y columns of the Triangles table. ```sql SELECT ATAN2(X, Y) FROM Triangles; ``` -------------------------------- ### COS example Source: https://github.com/apache/ignite/blob/master/docs/_docs/sql-reference/numeric-functions.adoc Gets the cosine of the angle column from the Triangles table. ```sql SELECT COS(angle) FROM Triangles; ``` -------------------------------- ### Create C++ Thin Client Instance Source: https://github.com/apache/ignite/blob/master/docs/_docs/thin-clients/cpp-thin-client.adoc Start a C++ thin client using IgniteClient::Start(IgniteClientConfiguration). The API is under the ignite::thin namespace. ```cpp include::code-snippets/cpp/src/thin_creating_client_instance.cpp[tag=thin-creating-client-instance,indent=0] ``` -------------------------------- ### Enable partition awareness Source: https://github.com/apache/ignite/blob/master/docs/_docs/thin-clients/python-thin-client.adoc Create a Client with partition_aware=True and provide all server node addresses to connect. ```python client = Client(partition_aware=True) nodes = [ ('127.0.0.1', 10800), ('217.29.2.1', 10800), ('200.10.33.1', 10800), ] client.connect(nodes) ``` -------------------------------- ### Initialize and Start RocketMQ Streamer Source: https://github.com/apache/ignite/blob/master/docs/_docs/extensions-and-integrations/streaming/rocketmq-streamer.adoc Setup an IgniteDataStreamer and RocketMQStreamer with a custom tuple extractor, then start and stop it on shutdown. Requires implementing StreamSingleTupleExtractor or StreamMultipleTupleExtractor, shown as MyTupleExtractor. ```java IgniteDataStreamer dataStreamer = ignite.dataStreamer(MY_CACHE)); dataStreamer.allowOverwrite(true); dataStreamer.autoFlushFrequency(10); streamer = new RocketMQStreamer<>(); //configure. streamer.setIgnite(ignite); streamer.setStreamer(dataStreamer); streamer.setNameSrvAddr(NAMESERVER_IP_PORT); streamer.setConsumerGrp(CONSUMER_GRP); streamer.setTopic(TOPIC_NAME); streamer.setMultipleTupleExtractor(new MyTupleExtractor()); streamer.start(); ... // stop on shutdown streamer.stop(); dataStreamer.close(); ``` -------------------------------- ### Multiple Hints Example Source: https://github.com/apache/ignite/blob/master/docs/_docs/SQL/sql-calcite.adoc Shows how to combine several hints for the same relation operator by separating them with commas. ```SQL SELECT /*+ NO_INDEX, EXPAND_DISTINCT_AGG */ SUM(DISTINCT V1), AVG(DISTINCT V2) FROM TBL1 WHERE V3=? GROUP BY V3 ``` -------------------------------- ### TANH example Source: https://github.com/apache/ignite/blob/master/docs/_docs/sql-reference/numeric-functions.adoc Gets the hyperbolic tangent of the angle column from the Triangles table. ```sql SELECT TANH(angle) FROM Triangles; ``` -------------------------------- ### TAN example Source: https://github.com/apache/ignite/blob/master/docs/_docs/sql-reference/numeric-functions.adoc Gets the trigonometric tangent of the angle column from the Triangles table. ```sql SELECT TAN(angle) FROM Triangles; ``` -------------------------------- ### Create a Client Instance Source: https://github.com/apache/ignite/blob/master/docs/_docs/thin-clients/php-thin-client.adoc Instantiate the Client class to perform operations. Multiple instances can be created independently. ```php use Apache\Ignite\Client; $client = new Client(); ``` -------------------------------- ### SINH example Source: https://github.com/apache/ignite/blob/master/docs/_docs/sql-reference/numeric-functions.adoc Gets the hyperbolic sine of the angle column from the Triangles table. ```sql SELECT SINH(angle) FROM Triangles; ``` -------------------------------- ### SIN example Source: https://github.com/apache/ignite/blob/master/docs/_docs/sql-reference/numeric-functions.adoc Gets the trigonometric sine of the angle column from the Triangles table. ```sql SELECT SIN(angle) FROM Triangles; ``` -------------------------------- ### COT example Source: https://github.com/apache/ignite/blob/master/docs/_docs/sql-reference/numeric-functions.adoc Gets the trigonometric cotangent of the angle column from the Triangles table. ```sql SELECT COT(angle) FROM Triangles; ``` -------------------------------- ### CMake configuration on Linux or Mac OS X Source: https://github.com/apache/ignite/blob/master/modules/platforms/cpp/DEVNOTES.txt Run this command from the cmake-build-[release|debug] directory to configure the build. Use -DWITH_THIN_CLIENT=ON, -DWITH_ODBC=ON, or -DWITH_TESTS=ON to enable optional modules. CMAKE_INSTALL_PREFIX is only needed for a non-default install directory. ```bash cmake .. -DCMAKE_BUILD_TYPE=[Release|Debug] [-DCMAKE_INSTALL_PREFIX=] [-DWITH_THIN_CLIENT=ON] [-DWITH_ODBC=ON] [-DWITH_TESTS=ON] ``` -------------------------------- ### COSH example Source: https://github.com/apache/ignite/blob/master/docs/_docs/sql-reference/numeric-functions.adoc Gets the hyperbolic cosine of the angle column from the Triangles table. ```sql SELECT HCOS(angle) FROM Triangles; ``` -------------------------------- ### Pass JVM options via -J prefix (Unix and Windows) Source: https://github.com/apache/ignite/blob/master/docs/_docs/setup.adoc Use the -J prefix to pass JVM options directly to the node startup script. The Unix and Windows commands are equivalent alternatives for different platforms. ```shell ./ignite.sh -J-Xmx6G -J-DIGNITE_TO_STRING_INCLUDE_SENSITIVE=false ``` ```shell .\ignite.bat -J-Xmx6G -J-DIGNITE_TO_STRING_INCLUDE_SENSITIVE=false ``` -------------------------------- ### ATAN example Source: https://github.com/apache/ignite/blob/master/docs/_docs/sql-reference/numeric-functions.adoc Gets the arc tangent of the angle column from the Triangles table. ```sql SELECT atan(angle) FROM Triangles; ``` -------------------------------- ### ACOS example Source: https://github.com/apache/ignite/blob/master/docs/_docs/sql-reference/numeric-functions.adoc Gets the arc cosine value of the angle column from the Triangles table. ```sql SELECT acos(angle) FROM Triangles; ``` -------------------------------- ### Run .NET Core examples Source: https://github.com/apache/ignite/blob/master/docs/_docs/net-specific/net-cross-platform-support.adoc Navigate to the .NET Core examples directory and run the examples with `dotnet run`. Requires .NET Core SDK 2.0+ and Java 17 or 21 (macOS requires JDK). ```bash cd platforms/dotnet/examples/dotnetcore ``` ```bash dotnet run ``` -------------------------------- ### REST get command with keyType=int and valueType=date Source: https://github.com/apache/ignite/blob/master/docs/_docs/restapi.adoc Example of a get command that retrieves a date value using the Ignite REST protocol. The keyType and valueType parameters specify the Java types for the key and value. ```text http://[host]:[port]/ignite?cmd=get&key=1&cacheName=myCache&keyType=int&valueType=date ``` -------------------------------- ### Run Latest Version Source: https://github.com/apache/ignite/blob/master/docs/_docs/installation/installing-using-docker.adoc Launches a single Ignite node in a Docker container using the latest version. ```shell # Run the latest version sudo docker run -d apacheignite/ignite ``` -------------------------------- ### Use Apache.Ignite.Examples template: dotnet new ignite-examples Source: https://github.com/apache/ignite/blob/master/modules/platforms/dotnet/templates/README.md Installs and uses the public template for the entire Apache.Ignite.Examples.sln solution. Published to NuGet during release. ```bash dotnet new ignite-examples ``` -------------------------------- ### CMake configuration on Linux or Mac OS X Source: https://github.com/apache/ignite/blob/master/modules/platforms/cpp/examples/README.txt Configures the CMake build for C++ examples on Linux or Mac OS X. Set IGNITE_CPP_DIR if Ignite C++ is installed in a non-default directory. ```bash cmake .. -DCMAKE_BUILD_TYPE=[Release|Debug] [-DIGNITE_CPP_DIR=] ``` -------------------------------- ### Build CMake project Source: https://github.com/apache/ignite/blob/master/modules/platforms/cpp/examples/README.txt Builds the generated CMake project. Use the same configuration as the CMake configuration step. ```bash cmake --build . --config [Release|Debug] ``` -------------------------------- ### CMake configuration for continuous-query-example Source: https://github.com/apache/ignite/blob/master/modules/platforms/cpp/examples/continuous-query-example/CMakeLists.txt CMake build configuration for the continuous query example. Sets up the project, finds required dependencies (Ignite, Threads, Java 1.8, JNI), includes necessary directories, and builds the executable from src/continuous_query_example.cpp. ```cmake project(continuous-query-example) set(TARGET ignite-${PROJECT_NAME}) find_package(Ignite) find_package(Threads) find_package(Java 1.8 REQUIRED) find_package(JNI REQUIRED) include_directories(SYSTEM ${IGNITE_INCLUDE_DIR} ${JNI_INCLUDE_DIRS}) include_directories(../include) add_executable(${TARGET} src/continuous_query_example.cpp) target_link_libraries(${TARGET} ${IGNITE_LIB} ${IGNITE_BINARY_LIB} ${IGNITE_COMMON_LIB} ${CMAKE_THREAD_LIBS_INIT}) ``` -------------------------------- ### SUM example: total number of goals Source: https://github.com/apache/ignite/blob/master/docs/_docs/sql-reference/aggregate-functions.adoc Gets the total number of goals scored by all players. ```sql SELECT SUM(goal) FROM Players; ``` -------------------------------- ### Serve DocFX documentation in browser Source: https://github.com/apache/ignite/blob/master/modules/platforms/dotnet/docfx/README.txt Starts a local server to view the generated documentation in a web browser. ```bash docfx Apache.Ignite.docfx.json --serve ``` -------------------------------- ### Get Service Proxy and Invoke Java Service from .NET Source: https://github.com/apache/ignite/blob/master/docs/_docs/net-specific/net-java-services-execution.adoc Start Ignite with the JvmClasspath set to include the Java service class, then get a proxy for the deployed service and invoke its method. The service name must match the deployment name. ```csharp var config = new IgniteConfiguration { // Make sure that Java service class is in classpath on all nodes, including .NET JvmClasspath = @"c:\my-project\src\Java\target\classes\" } var ignite = Ignition.Start(config); // Make sure to use the same service name as in deployment var prx = ignite.GetServices().GetServiceProxy("myJavaSvc"); string result = prx.testToUpper("invoking Java service..."); Console.WriteLine(result); ``` -------------------------------- ### JVM options for running Ignite examples Source: https://github.com/apache/ignite/blob/master/examples/README.md Add these JVM options to your IDE or application run configuration to access Ignite's proprietary SDK APIs. Required for Java 17 or later. ```text --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED --add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED --add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED --illegal-access=permit ``` -------------------------------- ### List Ignite system properties (Unix and Windows) Source: https://github.com/apache/ignite/blob/master/docs/_docs/setup.adoc Run the -systemProps command to display all internal system properties with descriptions and default values. The Unix and Windows commands are equivalent alternatives for different platforms. ```shell ./ignite.sh -systemProps ``` ```shell .\ignite.bat -systemProps ``` -------------------------------- ### Provide configuration file via URL Source: https://github.com/apache/ignite/blob/master/docs/_docs/installation/installing-using-docker.adoc Runs Ignite with a custom configuration file specified by the CONFIG_URI environment variable. ```shell docker run -d \ -e CONFIG_URI=http://myserver/config.xml \ apacheignite/ignite ``` -------------------------------- ### Hint Scope Example Source: https://github.com/apache/ignite/blob/master/docs/_docs/SQL/sql-calcite.adoc Shows how hint visibility works for SELECTs, subqueries, and table-level hints. ```SQL SELECT /*+ NO_INDEX(TBL1_IDX2), FORCE_INDEX(TBL2_IDX2) */ T1.V1 FROM TBL1 T1 WHERE T1.V2 IN (SELECT T2.V2 FROM TBL2 T2 WHERE T2.V1=? AND T2.V2=?); SELECT T1.V1 FROM TBL1 T1 WHERE T1.V2 IN (SELECT /*+ FORCE_INDEX(TBL2_IDX2) */ T2.V2 FROM TBL2 T2 WHERE T2.V1=? AND T2.V2=?); SELECT T1.V1 FROM TBL1 T1 JOIN TBL2 /*+ MERGE_JOIN */ T2 ON T1.V2=T2.V2 and T1.V3=T2.V3 and T2.V3=?; ``` -------------------------------- ### Show SQLLine Help Options (Windows) Source: https://github.com/apache/ignite/blob/master/docs/_docs/tools/sqlline.adoc Use the -h or --help option to see the various options available with SQLLine. ```shell sqlline.bat -h sqlline.bat --help ``` -------------------------------- ### Insert rows into City and Person Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/sql.adoc Inserts sample data into the City and Person tables. Copy-paste these statements into sqlline. ```sql INSERT INTO City (id, name) VALUES (1, 'Forest Hill'); INSERT INTO City (id, name) VALUES (2, 'Denver'); INSERT INTO City (id, name) VALUES (3, 'St. Petersburg'); INSERT INTO Person (id, name, city_id) VALUES (1, 'John Doe', 3); INSERT INTO Person (id, name, city_id) VALUES (2, 'Jane Roe', 2); INSERT INTO Person (id, name, city_id) VALUES (3, 'Mary Major', 1); INSERT INTO Person (id, name, city_id) VALUES (4, 'Richard Miles', 2); ``` -------------------------------- ### Create Deployment Source: https://github.com/apache/ignite/blob/master/docs/_docs/installation/kubernetes/generic-configuration.adoc Run this command to create the deployment from the deployment.yaml configuration. ```shell include::{script}[tags=create-deployment] ``` -------------------------------- ### CMake configuration for ODBC MSI installers Source: https://github.com/apache/ignite/blob/master/modules/platforms/cpp/DEVNOTES.txt Configures the build to produce ODBC MSI installers on Windows. Requires WiX Toolset installed and its bin directory in PATH. Use -DWITH_CORE=OFF and -DWITH_ODBC=ON. ```bash cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_GENERATOR_PLATFORM=[Win32|x64] - -DCMAKE_INSTALL_PREFIX= -DWITH_CORE=OFF -DWITH_ODBC=ON -DWITH_ODBC_MSI=ON ``` -------------------------------- ### Start IgniteSink and Add to Flink DataStream (Java) Source: https://github.com/apache/ignite/blob/master/docs/_docs/extensions-and-integrations/streaming/flink-streamer.adoc Create an `IgniteSink` with cache name and configuration file, set options, start it, and add it as a sink to a Flink `DataStream`. The sink emits input data to the Ignite cache. The example shows exception handling and stopping the sink in a `finally` block. ```java IgniteSink igniteSink = new IgniteSink("myCache", "ignite.xml"); igniteSink.setAllowOverwrite(true); igniteSink.setAutoFlushFrequency(10); igniteSink.start(); DataStream stream = ...; // Sink data into the grid. stream.addSink(igniteSink); try { env.execute(); } catch (Exception e){ // Exception handling. } finally { igniteSink.stop(); ``` -------------------------------- ### AppSpec Configuration Example Source: https://github.com/apache/ignite/blob/master/modules/ducktests/README.md Specifies the class to use for application specifications in Ignite applications, controlling how Ignite applications are configured and started. ```json {"AppSpec": "myapp.services.MyAppSpec"} ``` -------------------------------- ### NodeSpec Configuration Example Source: https://github.com/apache/ignite/blob/master/modules/ducktests/README.md Specifies the class to use for node specifications in Ignite services, controlling how Ignite nodes are configured and started. ```json {"NodeSpec": "myapp.services.MyNodeSpec"} ``` -------------------------------- ### Hints Priority Example Source: https://github.com/apache/ignite/blob/master/docs/_docs/SQL/sql-calcite.adoc Demonstrates that hints in subqueries have priority over preceding ones; an index for TBL2 is applied. ```SQL SELECT /*+ NO_INDEX */ * FROM TBL1 T1 WHERE T1.V1 = (SELECT /*+ FORCE_INDEX */ T2.V1 FROM TBL2 T2 where T2.V2=? and T2.V3=?) ``` -------------------------------- ### Install PHP Thin Client with Composer Source: https://github.com/apache/ignite/blob/master/docs/_docs/thin-clients/php-thin-client.adoc Install the package using Composer without development dependencies. Run this command in the root folder of the unpacked archive. ```shell composer install --no-dev ``` -------------------------------- ### File-based logging with NLog Source: https://github.com/apache/ignite/blob/master/docs/_docs/net-specific/net-logging.adoc Configures NLog to write to a file and then starts Ignite with the NLog logger. The example sets up a FileTarget with filename 'ignite_nlog.log' and a logging rule for all levels. ```csharp var nlogConfig = new LoggingConfiguration(); var fileTarget = new FileTarget { FileName = "ignite_nlog.log" }; nlogConfig.AddTarget("logfile", fileTarget); nlogConfig.LoggingRules.Add(new LoggingRule("*", LogLevel.Trace, fileTarget)); LogManager.Configuration = nlogConfig; var igniteConfig = new IgniteConfiguration { Logger = new IgniteNLogLogger() }; Ignition.Start(igniteConfig); ``` -------------------------------- ### Examine IgniteException InnerException in C# Source: https://github.com/apache/ignite/blob/master/docs/_docs/net-specific/net-troubleshooting.adoc When getting an IgniteException, examine the InnerException property for root cause details. This example prints the full exception message using ToString(). ```csharp try { IQueryCursor cursor = cache.QueryFields(query); } catch (IgniteException e) { // Printing out the whole exception meesage. Console.WriteLine(e.ToString()); } ``` -------------------------------- ### Hint Parameters Example Source: https://github.com/apache/ignite/blob/master/docs/_docs/SQL/sql-calcite.adoc Illustrates hint parameters in brackets; unquoted and quoted parameters, where quoted ones are case-sensitive and cannot be mixed. ```SQL SELECT /*+ FORCE_INDEX(TBL1_IDX2,TBL2_IDX1) */ T1.V1, T2.V1 FROM TBL1 T1, TBL2 T2 WHERE T1.V1 = T2.V1 AND T1.V2 > ? AND T2.V2 > ?; SELECT /*+ FORCE_INDEX('TBL2_idx1') */ T1.V1, T2.V1 FROM TBL1 T1, TBL2 T2 WHERE T1.V1 = T2.V1 AND T1.V2 > ? AND T2.V2 > ?; ``` -------------------------------- ### Build Ignite with Maven Source: https://github.com/apache/ignite/blob/master/modules/platforms/cpp/examples/README.txt Command to build and package Apache Ignite using Maven, skipping tests. Required before building C++ examples. ```bash ./mvnw clean package -DskipTests ``` -------------------------------- ### Initialize thin client and close with try-with-resources Source: https://github.com/apache/ignite/blob/master/docs/_docs/thin-clients/java-thin-client.adoc Start a thin client using Ignition.startClient(ClientConfiguration) and close it with try-with-resources. Replaces a placeholder include that references an external file. ```java include::{sourceCodeFile}[tag=clientConnection,indent=0] ``` -------------------------------- ### Run thin-client tests Source: https://github.com/apache/ignite/blob/master/modules/platforms/cpp/DEVNOTES.txt Runs the thin-client module tests using CTest. ```bash ctest -V -R IgniteThinClientTest ``` -------------------------------- ### Node startup console output showing configured plugins Source: https://github.com/apache/ignite/blob/master/docs/_docs/plugins.adoc Expected console output when starting a node with the MyPlugin plugin configured. Shows the initial heap size warning and the list of configured plugins. ```text [11:00:49] Initial heap size is 248MB (should be no less than 512MB, use -Xms512m -Xmx512m). [11:00:49] Configured plugins: [11:00:49] ^-- MyPlugin 1.0 [11:00:49] ^-- MyCompany [11:00:49] ``` -------------------------------- ### Maven compiler plugin configuration for Java 17 Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/java.adoc Add this to pom.xml if the IDE uses a Java compiler earlier than version 17. Sets source and target to 17. ```xml org.apache.maven.plugins maven-compiler-plugin 17 17 ``` -------------------------------- ### Provide configuration file from local file system Source: https://github.com/apache/ignite/blob/master/docs/_docs/installation/installing-using-docker.adoc Mounts a local configuration file into the container and uses it via CONFIG_URI. ```shell docker run -d \ -v /local/dir/config.xml:/config-file.xml \ -e CONFIG_URI=/config-file.xml \ apacheignite/ignite ``` -------------------------------- ### Compile and install Apache Ignite using Maven Wrapper Source: https://github.com/apache/ignite/blob/master/DEVNOTES.txt Run from project root to compile and install. Requires Maven Wrapper. Use with -Pall-java,licenses and optionally -Pbuild-dotnet with dependencies installed. ```bash ./mvnw clean install -Pall-java,licenses -DskipTests ``` ```bash ./mvnw clean install -Pall-java,licenses,build-dotnet -DskipTests -DclientDocs ``` -------------------------------- ### Verify REST connector with curl version command Source: https://github.com/apache/ignite/blob/master/docs/_docs/quick-start/restapi.adoc Use this command to check that the Ignite REST connector is ready on port 8080. It returns the Ignite version in the response. ```shell curl "http://localhost:8080/ignite?cmd=version" ``` -------------------------------- ### Install additional requirements (pip) Source: https://github.com/apache/ignite/blob/master/docs/_docs/thin-clients/python-thin-client.adoc Install additional requirements from the requirements folder using pip. ```shell pip install -r requirements/.txt ```