Ignite API¶
The Ignite API provides a set of operations for interacting with Apache Ignite caches and performing SQL operations. It allows users to store, retrieve, and manage data in a distributed cache system.
Why Integrate Apache Ignite with EasyTask?¶
Integrating Apache Ignite with EasyTask enables you to automate distributed cache management and SQL operations within your workflows. This integration allows you to:
- Automate Cache Operations: Programmatically put, get, and scan cache entries across your Ignite cluster without manual intervention.
- Execute SQL at Scale: Run SQL commands against your distributed data grid as part of automated workflow steps.
- Centralize Cluster Configuration: Store Ignite host and port details securely in the EasyTask vault for consistent, reusable connections.
Required Values in Vault¶
Example Usage¶
curl -X POST http://localhost:8008/run-integration \
-H "Content-Type: application/json" \
-d '{
"is_credentials": {
"userid": "test",
"passwd": "test123"
},
"integration": "ignite",
"uuid": "ae0e8ba9-423a-410e-bba5-e1933ff868c5",
"init": {
"vault_path_key": "ignite/secret"
},
"action": [
{
"put_val": {
"cache_name": "test_cache",
"key": "key",
"value": "value"
}
}
]
}'
Functions¶
put_val¶
put_val: This function puts a key-value pair into a specified cache.
put_dict_val¶
put_dict_val: This function puts a key-value pair into a specified cache, where the value is a dictionary.
| Input Parameter | Type | Description | Mandatory |
|---|---|---|---|
| cache_name | str | Name of the cache | yes |
| key | str | Key to insert | yes |
| value | dict | Dictionary value to insert | yes |
| Output Parameter | Type | Description |
|---|---|---|
| response | bool | True if the operation was successful |
get_val¶
get_val: This function retrieves a value for a given key from a specified cache.
get_mul_val¶
get_mul_val: This function retrieves multiple values for given keys from a specified cache.
| Input Parameter | Type | Description | Mandatory |
|---|---|---|---|
| cache_name | str | Name of the cache | yes |
| keys | list | List of keys to retrieve | yes |
| Output Parameter | Type | Description |
|---|---|---|
| response | dict | Dictionary of key-value pairs for the requested keys |
cache_scan¶
cache_scan: This function scans and retrieves all key-value pairs from a specified cache.
run_sql¶
run_sql: This function executes a SQL command on the Ignite cluster.
Frequently Asked Questions¶
How do I configure Apache Ignite credentials in EasyTask?¶
Use the EasyTask vault system to securely store your Ignite connection details. Navigate to the integration configuration page and add your server details under a vault key like ignite/server1. Include the host and port of your Ignite cluster.
Can I use Apache Ignite with both EasyTask Cloud and On-Premises?¶
Yes, Apache Ignite works seamlessly with both EasyTask Cloud and On-Premises deployments. The configuration process is identical — just ensure the Ignite cluster nodes are reachable from the integration server.
How do I troubleshoot Apache Ignite connection issues?¶
Check the integration server logs in EasyTask for detailed error messages. Verify your host and port in the vault, ensure the Ignite cluster is accessible from the integration server, and test connectivity using the built-in connection test feature.