Installing external procedure executable files
Enterprise Mode only
To install an external procedure, use the Administration Tools through either the menu or the command line.
Menu
-
Run the Administration tools.
$ /opt/vertica/bin/adminTools
-
On the AdminTools Main Menu, click Configuration Menu, and then click OK.
-
On the Configuration Menu, click Install External Procedure and then click OK.
-
Select the database on which you want to install the external procedure.
-
Either select the file to install or manually type the complete file path, and then click OK.
-
If you are not the superuser, you are prompted to enter your password and click OK.
The Administration Tools automatically create the
database-name
/procedures
directory on each node in the database and installs the external procedure in these directories for you. -
Click OK in the dialog that indicates that the installation was successful.
Command line
If you use the command line, be sure to specify the full path to the procedure file and the password of the Linux user who owns the procedure file. For example:
$ admintools -t install_procedure -d vmartdb -f /scratch/helloworld.sh -p ownerpassword
Installing external procedure...
External procedure installed
After you have installed an external procedure, you need to make Vertica aware of it. To do so, use the CREATE PROCEDURE
statement, but review Creating external procedures first.