You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds a --nodeps optional flag to server uninstall. The
functionality is similar to --nodeps flag to rpm -e.
The --nodeps flag feature already existed for server install and upgrade,
but the help text was missing. So added those as well.
Testing: manual testing, make clean lint test
Copy file name to clipboardexpand all lines: docs/presto-admin-commands.rst
+13-3
Original file line number
Diff line number
Diff line change
@@ -368,7 +368,7 @@ server install
368
368
**************
369
369
::
370
370
371
-
presto-admin server install <local_path>
371
+
presto-admin server install <local_path> [--nodeps]
372
372
373
373
This command copies the presto-server rpm from ``local_path`` to all the nodes in the cluster, installs it, deploys the general presto configuration along with tpch connector configuration. The ``local_path`` should be accessible by ``presto-admin``.
374
374
The topology used to configure the nodes are obtained from ``/etc/opt/prestoadmin/config.json``. See :ref:`presto-admin-configuration-label` on how to configure your cluster using config.json. If this file is missing, then the command prompts for user input to get the topology information.
@@ -378,6 +378,10 @@ The general configurations for Presto's coordinator and workers are taken from t
378
378
The connectors directory ``/etc/opt/prestoadmin/connectors/`` should contain the configuration files for any catalogs that you would like to connect to in your Presto cluster.
379
379
The ``server install`` command will configure the cluster with all the connectors in the directory. If the directory does not exist or is empty prior to ``server install``, then by default the tpch connector is configured. See `connector add`_ on how to add connector configuration files after installation.
380
380
381
+
This command takes an optional ``--nodeps`` flag which indicates if the rpm installed should ignore checking any package dependencies.
382
+
383
+
.. WARNING:: Using ``--nodeps`` can result in installing the rpm even with any missing dependencies, so you may end up with a broken rpm installation.
384
+
381
385
Example
382
386
-------
383
387
::
@@ -476,11 +480,13 @@ server uninstall
476
480
****************
477
481
::
478
482
479
-
presto-admin server uninstall
483
+
presto-admin server uninstall [--nodeps]
480
484
481
485
This command stops the Presto server if running on the cluster and uninstalls the Presto rpm. The uninstall command removes any presto
482
486
related files deployed during ``server install`` but retains the Presto logs at ``/var/log/presto``.
483
487
488
+
This command takes an optional ``--nodeps`` flag which indicates if the rpm uninstalled should ignore checking any package dependencies.
489
+
484
490
Example
485
491
-------
486
492
::
@@ -493,7 +499,7 @@ server upgrade
493
499
**************
494
500
::
495
501
496
-
presto-admin server upgrade path/to/new/package.rpm [local_config_dir]
502
+
presto-admin server upgrade path/to/new/package.rpm [local_config_dir] [--nodeps]
497
503
498
504
This command upgrades the Presto RPM on all of the nodes in the cluster to the RPM at
499
505
``path/to/new/package.rpm``, preserving the existing configuration on the cluster. The existing
@@ -507,6 +513,10 @@ This command can also be used to downgrade the Presto installation, if the RPM a
507
513
Note that if the configuration files on the cluster differ from the presto-admin configuration
508
514
files found in ``/etc/opt/prestoadmin``, the presto-admin configuration files are not updated.
509
515
516
+
This command takes an optional ``--nodeps`` flag which indicates if the rpm upgrade should ignore checking any package dependencies.
517
+
518
+
.. WARNING:: Using ``--nodeps`` can result in installing the rpm even with any missing dependencies, so you may end up with a broken rpm upgrade.
0 commit comments