The attach-ds command attaches and starts an Endeca data store.
Running the attach-ds command makes the Endeca Server know about an Endeca data store and its parameters. That is, the Endeca data store is registered with the Endeca Server.
In both use cases, the Endeca data store's Dgraph process is started, thus making the data store open for use.
endeca-cmd attach-ds <datastore-name> [global-options] [attach-options]where datastore-name is the name of an existing, detached Endeca data store.
Attach Option | Meaning |
---|---|
--ws-port <num> | Specifies the Web service port number to be used for the Endeca data store's Dgraph process. The port number cannot be in use by any other process on the machine (including another Endeca data store). Defaults to a port number in the default range specified on the Endeca Server. |
--bulk-load-port <num> | Specifies the port number for bulk load ingest operations for the Endeca data store's Dgraph process. This port number must be different from the port specified by the --ws-port flag and cannot be in use by any other process on the machine. If the --bulk-load-port flag is not used, then the bulk load port number defaults to a port number in the default range specified on the Endeca Server. |
--data-files <path> | Specifies the absolute path of an existing
data files directory to use. Use this option for:
|
--startup-timeout <seconds> | Specifies the maximum length of time (in seconds) that is allowed for the Endeca data store's Dgraph process to start up. Default is 60 seconds. |
--shutdown-timeout <seconds> | Specifies the maximum length of time (in seconds) that is allowed for the Endeca data store's Dgraph process to shut down. Default is 60 seconds. |
--args --usage | Provides a list of the Dgraph process flags. |
--args <dgraph-flags> | Specifies a list of Dgraph flags that will be used for the Endeca data store's Dgraph process. The --args flag must be the last flag on the command line as all of its arguments are passed on to the Dgraph process. |
Data files don't exist: C:\Endeca\Apps\bikes_indexes
This error can also occur if the Endeca data store does exist but is in a non-default location. In this case, use the --data-files flag, as in the example below.
endeca-cmd attach-ds booksattaches an Endeca data store named books in the default location and starts it. The Endeca data store's Dgraph port and bulk load port numbers are assigned by the Endeca Server, and both the startup and shutdown timeout settings are 60 seconds. This is the simplest use case because it uses no attach flags.
endeca-cmd attach-ds wine --data-files c:\myapps\wine --args --threads 6attaches an Endeca data store named wine in the C:\MyApps directory. The command also uses the --args flag to set the thread count at 6.