Running gpfdist as a Windows Service
Greenplum Database Loaders allow gpfdist to run as a Windows Service.
Follow the instructions below to download, register and activate gpfdist as a service:
- Update your Greenplum Database Loader package to the latest version. This package is available from VMware Tanzu Network.
-
Register
gpfdistas a Windows service: -
Open a Windows command window
-
Run the following command:
1. sc create gpfdist binpath= "<path_to_gpfdist.exe> -p 8081 -d External\load\files\path -l Log\file\path"You can create multiple instances of
gpfdistby running the same command again, with a unique name and port number for each instance:1. sc create gpfdist<N> binpath= "<path_to_gpfdist.exe> -p 8082 -d External\load\files\path -l Log\file\path"3. Activate thegpfdistservice: -
Open the Windows Control Panel and select Administrative Tools > Services.
- Highlight then right-click on the
gpfdistservice in the list of services. -
Select Properties from the right-click menu, the Service Properties window opens.
Note that you can also stop this service from the Service Properties window. 4. Optional: Change the Startup Type to Automatic (after a system restart, this service will be running), then under Service status, click Start. 5. Click OK.
Repeat the above steps for each instance of gpfdist that you created.
Parent topic: Greenplum Database Load Tools for Windows
