Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

The System transport handler allows the starting of arbitrary system processes.

Options

  • command: The command
  • env: The environment variables in the form name=value separated by commas. (optional)

Example

PQL

Code Block
themeEclipse
languagejavascript
titleSystem Transport Handler
linenumberstrue
input = ACCESS({source='Source',
wrapper='GenericPull',
transport='System',
protocol='CSV',
dataHandler='Tuple',
options=[['command', 'lsof -i -T -n']],
schema=[
['id', 'Double'],
['data', 'String']]
})

CQL

Code Block
themeEclipse
languagesql
titleSystem Transport Handler
linenumberstrue
CREATE STREAM source (COMMAND STRING, PID STRING, USER STRING, FD STRING, TYPE STRING, DEVICE STRING, SIZE STRING, NODE STRING, NAME STRING)
    WRAPPER 'GenericPull'
    PROTOCOL 'CSV'
    TRANSPORT 'System'
    DATAHANDLER 'Tuple'
    OPTIONS ( 'command' 'lsof -i -T -n' )