IBM Streams Command Line Interface using Streams JMX API and does not require local Streams install
1.3K
This application provides a command-line interface to the IBM Streams - Stream Processing System. This program functions similar to the streamtool command that is included with IBM Streams, however, this application uses a pure JMX interface and can be run on any java platform and does not require the IBM Streams installation on the same host.
Reasons for using this application include
The application supports an interactive mode (similar to streamtool interactive mode)
The initial set of commands focus on interacting with Streams in a container hosting environment.
Requests for additional commands are welcome and contributions are encouraged.
| Command | Description |
|---|---|
| canceljob | Cancel Streams application |
| getdomainproperty | Get values of domain properties |
| getdomainstate | Get the state of the Streams domain |
| getinstancestate | Get the state of the Streams instance |
| getproperty | Get values of instance properties |
| gettag | Display resource definition for a tag |
| help | Display commands or specific commands arguments |
| lsjobs | Get a list of the jobs running in an instance |
| lspes | Report health summary for each PE |
| lstag | List tags defined for a domain |
| mktag | Create a resource tag in a domain with description and resource definition |
| rmtag | Remove a resource tag from a domain |
| setdomainproperty | Set one or more property values for a domain |
| setproperty | Set one or more property values for an instance |
| snapshotjobs | Capture a snapshot of jobs running in an instance |
| submitjob | Submit Streams application to run in a Streams instance |
| version | Display version information |
The latest docker container is published to Docker Hub: https://hub.docker.com/r/bmwilli1/streams-jmx-client/
The env file simplifies connectivity. IT is a file of key=value pairs. See the command usage options for the environment variables used to set each option.
The following example was used to connect to Streams 4.3 QuickStart for Docker running in Docker for Mac. The domain property jmx.httpPort was set to 8006 (A port exposed by default in the Streams 4.3 Docker instructions).
STREAMS_CLIENT_JMXCONNECT=service:jmx:jmxmp://172.17.0.2:9975
STREAMS_CLIENT_USERNAME=streamsadmin
STREAMS_CLIENT_PASSWORD=passw0rd
STREAMS_CLIENT_JMX_SSLOPTION=TLSv1.2
STREAMS_DOMAIN_ID=StreamsDomain
STREAMS_INSTANCE_ID=StreamsInstance
A complete documented sample one can be found here: https://github.com/IBMStreams/streamsx.jmxclients/blob/master/streams-jmx-client/docker/sample.env
docker run --rm -it --env-file mydocker.env bmwilli1/streams-jmx-client:1.0.0 getdomainstate
docker run --rm -it --env-file mydocker.env -v ${PWD}/HelloWorld.sab:/opt/HelloWorld.sab bmwilli1/streams-jmx-client submitjob /opt/HelloWorld.sab
docker run --rm -it --env-file mydocker.env bmwilli1/streams-jmx-client:1.0.0
Streams JMX Client INTERACTIVE MODE STARTED
streamsclient>
For questions and issues, please contact:
Brian M Williams, IBM [email protected]
https://github.com/IBMStreams/streamsx.jmxclients/tree/develop/streams-jmx-client
Content type
Image
Digest
Size
69.5 MB
Last updated
over 7 years ago
docker pull bmwilli1/streams-jmx-client