Adapter Changes in ClusterConfig.json

To add a new object to the cluster configuration file, create/modify an existing JSON file. To add an object (in this case an input adapter), add a new ADAPTER object to the configuration file and submit it to the metadata via the kamanja upload cluster config command.

To update an existing object, simply update … Read More

Adapters

Adapters are plugins that allow Kamanja to communicate data with external, third-party systems. There are two general types of adapters: input/output adapters for reading and writing messages (that is, record structures) with systems such as Kafka or MQ. storage adapters for saving data, such as HBase, Cassandra, or SQL Server.

Add $KAMANJA_HOME to bash_profile

Add Kamanja to .bash_profile. Note: On Linux, use .bashrc. On Mac, use .bash_profile. Use a favorite editor to modify .bash_profile or .bashrc. For example, on the Mac, first verify if there are admin privileges: sudo -v If you get the Password prompt, there are admin privileges. Then type: sudo vim ~/.bash_profile to edit .bash_profile. To … Read More

API

Application Programming Interface.

API Commands

add message curl -X POST --data-binary @”/tmp/myMessage.json” -k https://localhost:8081/api/message --header “TENANTID:tenant1″ update message curl -X PUT --data-binary @”COPDInputMessage.json” -k https://localhost:8081/api/message --header “TENANTID:tenant1” get message curl -k https://localhost:8081/api/message/com.ligadata.kamanja.samples.messages.copdinputmessage.000000000006000000 --header “TENANTID:tenant1” get all messages curl -k https://localhost:8081/api/keys/message --header “TENANTID:tenant1″ remove message curl -X DELETE -k https://localhost:8081/api/message/com.ligadata.kamanja.samples.messages.copdinputmessage.000000000007000000 add java model curl -X POST --data-binary @”/myJavaModel.java” -k https://localhost:8081/api/model/java --header … Read More

API Reference

If Github has been cloned, the API Documentation can be found at /trunk/Documentation/KamanjaAPIDocs. There are two folders and three files. 1. Find Index.html. 2. Double click Index.html. 3. Click Allow Blocked Content to view full API. 4. View the API. View the API for any code element on the left.

Audit Adapter

The MetadataAPIConfig.properties metadata configuration file can optionally specify a file where the adapter-specific initialization is defined. This is done via the AUDIT_PARMS parameter. The name of the file is passed from Kamanja to the audit adapter implementation in the init method. Note: The contents of this file are adapter-specific and the parsing/processing of the values … Read More

Auditing

What to Audit? For all user actions, the following is part of the audit record: user who attempted the action time at which action was attempted result of the action (success or failure) Auditable actions are: every metadata operation attempted such as CRUD operations on metadata objects The logical structure (fields) of an audit record … Read More