IBM InfoSphere Streams Version 4.1.1

streamtool mkhostpkg

The streamtool mkhostpkg command generates a domain host installation package that you can use to add InfoSphere® Streams resources to the domain.

If you are using an external resource manager, use the streamtool mkresourcepkg command instead. It generates a resource installation package that you can use to add externally managed resources.

Usage

Read syntax diagramSkip visual syntax diagram
mkhostpkg

>>-+-----------------------+--+-----------------+--------------->
   '-+- -d----------+--did-'  '- --group--group-'   
     '- --domain-id-'                               

>--+---------+--+--------------------------+-------------------->
   +- -h-----+  '- --install-dir--pathname-'   
   '- --help-'                                 

>--+-----------------------+--+------------------+-------------->
   '- --install-mode--mode-'  '- --owner--userid-'   

>--+----------------------+--+-----------------+---------------->
   '- --pkg-dir--pathname-'  '- --trace--level-'   

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

>--| Non-interactive tool options |----------------------------><

Non-interactive tool options

    (1)                                    
|--------+-----------------------------+------------------------|
         |               .-,---------. |   
         |               V           | |   
         '- --zkconnect----host:port-+-'   

Notes:
  1. The non-interactive tool option is not supported in the interactive streamtool interface.

Authority

You do not need any authority to run this command.

Description

The command generates a domain host installation package, which contains an streamsdomainhostsetup.sh script and a response file. The response file contains the installation information that you specified in the streamtool mkhostpkg command and helps to simplify the installation process. The script installs the InfoSphere Streams product on the host, registers the host as a resource in the domain, and configures the domain controller service as a system service.

The domain host installation package is generated in the current directory or the directory that you specify in the pkg-dir option. You must copy this package to all of the hosts that you want to add to the domain.

After you copy the domain host installation package to a host, extract the package. For example, run tar xvf tarfile.tar. For information about the next steps, see the readme file in the package.

Note:
If you specify a path where the product is already installed and you are not installing a new version, fix pack, or interim fix, by default the streamsdomainhostsetup.sh script uninstalls the existing product installation and installs the new package. If you want to cancel the installation in this scenario, add the following property to your response file before you run the script:
VERSION_EXIST_ACTION=0

Options and arguments

-d, --domain-id did
Specifies the domain name. If you specify a domain name that does not exist, the command still completes successfully; you can create the domain after you run this command.

If you do not specify this option, InfoSphere Streams uses the domain name that is set in the STREAMS_DOMAIN_ID environment variable. By default, that domain name is StreamsDomain. If you are using the interactive streamtool interface, it uses the name of the active domain for the current streamtool session or else it prompts you for the domain name.

The active domain for the current streamtool session is set every time that you successfully run a streamtool command with a -d or --domain-id option. Alternatively, you can run the steamtool domain command.

--group group
Specifies the group identifier that owns the files that are installed by the InfoSphere Streams product. If you do not specify this option, the command uses the installation owner's group.
-h, --help
Specifies to show the command syntax.
--install-dir pathname
Specifies the path where you want to install the product. The default location is /opt/ibm/InfoSphere_Streams. The path does not need to exist before you run the streamsdomainhostsetup.sh script.
--install-mode mode
Specifies the mode that you want to use to install the product. The mode must be one of the following values:
  • console
  • GUI
  • silent
The default mode is silent.
Note: If you want to install the product by using the console or the graphical user interface, you must have an XWindow system that is installed on the host. All modes require you to supply information during the installation except for the silent mode.
--owner userid
Specifies the user ID that owns the files that are installed by the InfoSphere Streams product. If you do not specify this option, the command uses the installation owner's user ID.
--pkg-dir pathname
Specifies the path where you want to store the installation package. The default location is the current directory.
--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.
--zkconnect host:port

The name of one or more host and port pairs that specify the configured ZooKeeper servers. This option is not supported within the interactive streamtool interface.

If you are not using the interactive streamtool interface and you do not specify this option, InfoSphere Streams tries to use:
  1. The value from the STREAMS_ZKCONNECT environment variable
  2. A ZooKeeper connection string that is derived from cached information about the current domain.
This command cannot use the embedded ZooKeeper.

Examples

The following command creates the installation package for the domain "StreamsDomain":
streamtool mkhostpkg --domain-id StreamsDomain --zkconnect host1:2181,host2:2181