Working with toolkit paths
If an application uses logic from a toolkit other than the SPL standard toolkit, the compiler must be instructed to find the toolkit.
:
separated paths to one of the
following items:- A toolkit directory
- A directory of toolkit directories, which is equivalent to listing the toolkit directories individually
- A toolkit list file
The SPL path can be specified by using one or more -t, --spl-path options, or if no -t options are specified, the value of the STREAMS_SPLPATH environment variable is used.
If multiple versions of a toolkit exist in the SPL path, the one with the highest version number is picked. If the versions are the same, the toolkit that appears earlier in the path is selected.
If the application uses multiple toolkits and there are inter-dependencies between the toolkits, then the highest toolkit version of each toolkit that satisfies all the inter-dependencies is picked. This version might not be the highest version of a toolkit.
Toolkit list file
<toolkitList xmlns="http://www.teracloud.com/xmlns/prod/streams/spl/toolkitList" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.teracloud.com/xmlns/prod/streams/spl/toolkitList toolkitListModel.xsd"> <toolkit directory="path/to/toolkitDir" /> <toolkit listFile="path/to/toolkitList.xml" /> <toolkit directory="/absolute/path/to/dirOfToolkitDirs" /> </toolkitList>
Examples
sc -M my.sample::Main -t "/storage/toolkits/exampletoolkit"
sc -M my.sample::Main -t "$STREAMS_INSTALL/toolkits"
export STREAMS_SPLPATH="$STREAMS_INSTALL/toolkits:/storage/toolkits/exampletoolkit"
sc -M my.sample::Main