IBM InfoSphere Streams Version 4.1.0

streamtool getzk

The streamtool getzk command prints information about the ZooKeeper servers that the domain uses.

Usage

Read syntax diagramSkip visual syntax diagram
getzk

>>-+-------------+--+--------------+--+-----------------+------->
   '-+- -h-----+-'  '-+- -s------+-'  '- --trace--level-'   
     '- --help-'      '- --short-'                          

>--+-----------------------+-----------------------------------><
   '-+- -v--------+--level-'   
     '- --verbose-'            

Authority

You do not need any authority to run this command.

Description

InfoSphere® Streams uses Apache ZooKeeper to maintain configuration and run time state data for domains and instances. You can use an embedded version of ZooKeeper, which is included in the product installation and is managed by InfoSphere Streams. If you are going to use multiple resources in your domain, however, you must configure one or more external ZooKeeper servers.

If you are using external ZooKeeper servers, this command returns the connection string for those servers, which consists of one or more host and port pairs.

Options and arguments

-h, --help
Specifies to show the command syntax.
-s, --short
Specifies to return a shortened list of information. In particular, the command returns only the ZooKeeper connection string.
--trace level
Specifies the trace setting. The following valid levels are listed in order of increasing verbosity, which is to say that the first level in the list generates the least amount of information:
  • off
  • error
  • warn
  • info
  • debug
  • trace
The default value is off.
-v,--verbose level
Specifies to provide more detailed command output. The vebosity level can be from 0 to 3 where each increment provides more detailed output.

Examples

The following command obtains the connection string for ZooKeeper in the domain mydomain:
[streamtool <?@StreamsDomain>] getzk 
External Zookeeper connection is set: host1:2100
If you are using the embedded copy of ZooKeeper, the command returns the following information:
Streams embedded ZooKeeper is set: host2:43427