gfimport_fixed is a sample program for dividing a file to file fragments and registering it to the Gfarm filesystem.
hostfile specifies a hostname list of filesystem nodes. The hostfile consists of a hostname of a filesystem node in each line. The file is uniformly divided into file fragments, each file fragment except the last one having the same size. if ``-'' is specified, standard input is used to read the host list.
specifies a fragment file that consists of a fragment size and a filesystem node separated by a white space in each line.
if ``-'' is specified, standard input is used.
specifies the size of fixed-size records in bytes. With this option, file is divided by the multiple size of the record size. Default size is 1.
specifies an output file.
displays a list of command options.
Example 1. Importing by splitting to specified number of fragments
The following is an example using gfimport_fixed to import a source_file as gfarm:file by splitting to 8 fragments.
gfsched -N 8 | gfimport_fixed -H - -o gfarm:file source_file |
Example 2. Importing by splitting to specified number of fragments for particular program
The following is an example using gfimport_fixed to import a source_file as gfarm:file by splitting to 8 fragments to be processed by gfarm:prog program.
gfsched -N 8 -p gfarm:prog | gfimport_fixed -H - -o gfarm:file source_file |