install_packages
Installs the packages in /opt/vertica/packages. This is useful in cases where packages weren't installed during the database installation (either due to --skip-package-install or an error) or if your existing packages are corrupt.
Syntax
vcluster install_packages options
Required options
{ -c | --config }string- The path to the configuration file. If a configuration file is present in the default location (automatically generated by
create_db), you do not need to specify this option.Default:
/opt/vertica/config/vertica_cluster.yaml
Options
--ca-cert-filestring- The path to the trusted CA certificate file.
Default:
/opt/vertica/config/https_certs/rootca.pem
--cert-filestring- The absolute path to the certificate file. If you specify this option, you must also specify
--key-file. You should only use--cert-fileand--key-fileif you have configured the Node Management Agent (NMA) to use custom certificates.
{ -d | --db-name }string- The name of the database. You should only use this option if you want to override the database name in your configuration file. This string must conform to the format used for database names.
--force-reinstall- Install the packages even if they are already installed.
{ -h | --help }- Prints help text.
--hostsstrings- A comma-separated list of hosts in the database.
--ipv6- Specifies if the hosts use IPv6 addresses.
Default:
IPv4
--key-filestring- Path to the key file. If you specify this option, you must also specify
--cert-file. You should only use--cert-fileand--key-fileif you have configured the Node Management Agent (NMA) to use custom certificates.
{ -l | --log-path }string- The absolute path for debug logs.
Default:
/opt/vertica/log/vcluster.log
{ -o | --output-file }string- Writes the output to the specified file instead of STDOUT.
Default: STDOUT
--packagestring- Select packages using all, default, specific package name, or comma-separated list of package names.
Default:
all
{ -p | --password }string- The database password.
--password-filestring- The absolute path to a file containing the database password.
If you pass a dash(-) (that is, `--password-file -`), the password is read from STDIN.
Important
Your database password cannot include single quotes.
--read-password-from-prompt- Prompts the user to enter the password.
--tls-modestring- Sets the TLS validation mode. Valid options are
enable,verify-ca,verify-full.Default:
enable
--use-password-for-sql-client-only- Use the password for the NMA SQL client only.
--verbose- Shows the details of VCluster run in the console.
Examples
To install default packages (when no --package flag is specified):
vcluster install_packages
To install default packages:
vcluster install_packages --package "default"
To install all packages:
vcluster install_packages --package "all"
To install a specific package:
vcluster install_packages --package ComplexTypes
To install multiple packages (comma-separated):
vcluster install_packages --package "ComplexTypes,kafka,logsearch"
To install default packages with user input:
vcluster install_packages --db-name test_db \
--hosts 192.0.2.0,192.0.2.1,192.0.2.2 \
--password "PASSWORD"
To force (re)install default packages with config file
vcluster install_packages --db-name test_db --force-reinstall \
--config /opt/vertica/config/vertica_cluster.yaml \
--password "PASSWORD"