This task describes how to create an Endeca data domain after you have deployed an Endeca Server cluster.
endeca-cmd list-nodes --password <sslPassphrase>
This procedure assumes you have installed the Endeca Server cluster in a secure mode (SSL-enabled).
To create an Endeca data domain in an Endeca Server cluster:
endeca-cmd put-dd-profile my_two_node_dd_profile --num-followers 1 --password <sslPassphrase>
where my_two_node_dd_profile is the name of the data domain profile, and sslPassphrase is the password that you specified with the --sslPassphrase flag of the generate_ssl_keys utility.
This command creates the data domain profile in which there is one leader node and one follower node in the data domain.
endeca-cmd create-dd test --dd-profile-name my_two_node_dd_profile --password <sslPassphrase>
This command creates an Endeca data domain test, based on the previously configured data domain profile. In this data domain, two nodes (Dgraph processes) are running, each on its own Endeca Server instance.
endeca-cmd get-dd-health test --password <sslPassphrase>
Data domain: test Leader node health: Hostname: host1 Port: 7004 Protocol: HTTPS Is available Follower nodes health: Hostname: host2 Port: 7004 Protocol: HTTPS Is availableThis output indicates that the data domain test runs on two nodes, both of which are available. Note that even though you created this data domain from one machine, it is configured to run two nodes on different Endeca Server instances. You can now access this data domain from any Endeca Server instance machine.