Domain identifiers

A domain name or identifier is the name that you specify when you create a domain.

Requirements for domain identifiers

When you create a domain, you must specify an identifier that satisfies the following requirements:
  • The name must contain alphanumeric characters. You cannot use the following alphanumeric characters: ^!#$%&'*+,/;<>=?@[]`{|}~(). You also cannot use the following Unicode and hexadecimal characters: u0000; u0001-u001F; u007F-u009F; ud800-uF8FF; uFFF0-uFFFF; x{10000}-x{10FFFF}.
  • The name cannot be zookeeper.
  • The maximum length of the name is 255 bytes.
  • The name must be unique among the domains that are defined by you, the domain owner, within ZooKeeper.
    Note: If a resource is allocated to two or more domains that have the same name, this situation causes problems with the log files. The problem occurs irrespective of whether the domains are in the same ZooKeeper ensemble. Use unique domain names or ensure that the domainLog.path domain property value is unique for domains that have the same name.

Teracloud® Streams default domain identifier

If you do not specify a domain identifier when you run streamtool commands, Teracloud® Streams uses the value that is set in the STREAMS_DOMAIN_ID environment variable. By default, that domain identifier 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.

By default, the default domain ID is set when you run the streamsprofile.sh script after you install Teracloud® Streams. To set or change the value of the default domain ID, specify -d domain-id on the source streamsprofile.sh command, for example:
  source streamsprofile.sh -d MyDomain
To reset the default domain ID to StreamsDomain, enter the following command:
  source streamsprofile.sh -r