|GemFire XD Reference / gfxd Launcher Commands|
Creates a Document Type Definition (DTD) file that specifies the layout of an XML data file created using gfxd write-data-to-xml.
To create a DTD file, use the syntax:
gfxd write-data-dtd-to-file -file=<path> [-auth-provider=<name>] [-bind-address=<address>] [-client-bind-address=<address>] [-client-port=<port>] [-driver-class=<class name>] [-extra-conn-props=<properties>] [-help] [-locators=<adresses>] [-mcast-address=<address>] [-mcast-port=<port>] [-password[=<password>]] [-url=<url>] [-user=<username>] [-verbose=<level>]
This table describes options for the gfxd write-data-dtd-to-file command. Default values are used if you do not specify an option.
The full path of the file in which to write the DTD of the data XML. This argument is required.
|-auth-provider||Sets the authentication provider to use for peer-to-peer connections as well as client-server connections. Valid values are BUILTIN and LDAP. All other members of the GemFire XD distributed system must use the same authentication provider and user definitions. If you omit this option, the connection uses no authentication mechanism. See Configuring Security.|
|-bind-address||The address to which this peer binds for receiving peer-to-peer messages. By default gfxd uses the hostname, or localhost if the hostname points to a local loopback address.|
The hostname or IP address on which a GemFire XD locator listens for client connections. The default is "localhost."
Use this option with -client-port to attach to a GemFire XD cluster as a thin client and perform the command.
The port on which a GemFire XD locator listens for client connections. The default is 1527.
Use this option with -client-bind-address to attach to a GemFire XD cluster as a thin client and perform the command.
The JDBC driver class to use for connecting to a datasource. Use this option with -url to connect to a JDBC datasource.
A semicolon-separated list of properties to use when connecting to the datasource.
Display the help message for this gfxd command.
The list of locators as comma-separated host[port] values, used to discover other members of the distributed system.
Using -locators creates a peer client member to execute the gfxd command.
The multicast address used to discover other members of the distributed system. This value is used only when the -locators option is not specified. The default multicast address is 188.8.131.52.
Use this option with -mcast-port to attach to a GemFire XD cluster as a peer client and perform the command.
The multicast port used to communicate with other members of the distributed system. If zero, multicast is not used for member discovery (specify -locators instead). This value is used only if the -locators option is not specified.
Valid values are in the range 0–65535, with a default value of 10334.
Use this option with -mcast-address to attach to a GemFire XD cluster as a peer client and perform the command.
If the servers or locators have been configured to use authentication, this option specifies the password for the user (specified with the -user option) to use for booting the server and joining the distributed system.
The password value is optional. If you omit the password, gfxd prompts you to enter a password from the console.
The JDBC URL to use for connecting to a datasource. Use this option with -driver-class to connect to a JDBC datasource.
|-user||If the servers or locators have been configured to use authentication, this option specifies the user name to use for booting the server and joining the distributed system.|
Sets the DdlUtils verbosity level to one of FATAL, ERROR, WARN, INFO, or DEBUG, in increasing order of logging. The default level is INFO.
gfxd write-data-dtd-to-file -file=data.dtd
gfxd write-data-dtd-to-file -file=data.dtd -client-bind-address=myserver -client-port=1234
gfxd write-data-dtd-to-file -file=data.dtd -mcast-port=1234 -extra-conn-props=host-data=false
gfxd write-data-dtd-to-file -file=test.dtd -url=jdbc:mysql://myserver/test -driver-class=com.mysql.jdbc.Driver