13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to Greenplum 4 Stopping gpfdist 545To specify files to gpfdist, use the BL_DATAFILE= data set option. Specify filepaths that are relative to the directory from which gpfdist is serving files (thedirectory where you executed gpfdist).The gpfdist utility is part of the loader package <strong>for</strong> the plat<strong>for</strong>m where <strong>SAS</strong> isrunning. You can also download it from the Greenplum Web site:www.greenplum.com.file://To use the file:// protocol, external tables must reside on a segment host in alocation that Greenplum superusers (gpadmin) can access. The segment host namemust match the host name, as specified in the gp_configuration system catalogtable. In other words, the external tables that you want to load must reside on ahost that is part of the set of servers that comprise the database configuration.The file:// protocol is advantageous because it does not require configuration.Configuring the File ServerFollow these steps to configure the gpfdist file server.1 Download and install gpfdist from www.greenplum.com.2 Define and load a new environment variable called GPLOAD_HOME.3 Set the value of the variable to the directory that contains the external tables thatyou want to load.The directory path must be relative to the directory in which you executegpfdist, and it must exist be<strong>for</strong>e gpfdist tries to access it.3 For Windows, open My Computer, select the Advanced tab, and click theEnvironment Variables button.3 For UNIX, enter this command or add it to your profile:export GPLOAD_HOME=directory4 Start gpfdist as shown in these examples.3 For Windows:C:> gpfdist -d %GPLOAD_HOME% -p 8081 -l %GPLOAD_HOME%\gpfdist.log3 For UNIX:$ gpfdist -d $GPLOAD_HOME -p 8081 -l $GPLOAD_HOME/gpfdist.log &You can run multiple instances of gpfdist on the same host as long each instance hasa unique port and directory.If you do not set GPLOAD_HOME, the value of the BL_DATAFILE= data set optionspecifies the directory that contains the external tables to be loaded. If BL_DATAFILEis not specified, then the current directory is assumed to contain the external tables.Stopping gpfdistIn Windows, to stop an instance of gpfdist, use the Task Manager or close theCommand Window that you used to start that instance of gpfdist.Follow these steps In UNIX to stop an instance of gpfdist.1 Find the process ID:$ ps ax | grep gpfdist (Linux)$ ps -ef | grep gpfdist (Solaris)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!