# Put any site-specific environment settings here

# GridFTP-HDFS will automatically strip of a mount point
# This is to help smooth over differences between the SRM and GridFTP view of
# the filesystem.
#$GRIDFTP_HDFS_MOUNT_POINT /mnt/hadoop

# GridFTP-HDFS will buffer blocks in memory to re-order the data stream.
# By default, each block is 1MB.
#$GRIDFTP_BUFFER_COUNT 200

# If we hit memory limits when buffering, GridFTP-HDFS will dump its
# buffers to a file in $TMPDIR, up to the limit specified below.
#$GRIDFTP_FILE_BUFFER_COUNT 1500
#$TMPDIR /tmp

# Note that Nebraska provides a custom globus-ftp-control that prevents
# out-of-control data stream re-ordering and prevents the file buffer
# from every being used.

# The replica-map file controls the number of replicas GridFTP-HDFS will
# request for the files it writes; if not specified, it will use the default
# in hdfs-site.xml.
$GRIDFTP_HDFS_REPLICA_MAP /etc/gridftp-hdfs/replica-map.conf

# Every time GridFTP-HDFS recieves a block, it can write this fact out to
# syslog.  This allows the site to build a simple monitoring system for
# transfer progress, but is admittedly rather esoteric.
#$GRIDFTP_SYSLOG 1

# Comment out the following line to disable on-the-fly GridFTP checksum calculations
# Alternately, remove one or more checksum format from the list to reduce CPU usage.
#$GRIDFTP_HDFS_CHECKSUMS "MD5,ADLER32,CRC32,CKSUM"

# By default, reduce the amount of memory that HDFS uses for its embedded JVM.
# This is typically a safe setting as long as the process only has one file
# transfer at a time.
$LIBHDFS_OPTS -Xmx64m

load_dsi_module hdfs
