gfimport_text(1)

gfimport_text1

Divide and register a text file

Usage

gfimport_text [options] file

Overview

gfimport_text is a sample program for dividing a text file to file fragments by the line and registering it to the Gfarm filesystem.

Options

-H hostfile

specifies a list of filesystem nodes. The hostfile consists of a hostname of a filesystem node in each line. The file is almost uniformly divided into file fragments.

if ``-'' is specified, standard input is used to read the host list.

-f fragment-file

specifies a fragment-file that consists of a fragment size in byte and a filesystem node separated by a white space in each line.

if ``-'' is specified, standard input is used.

-o gfarm-URL

specifies an output file.

-?

displays a list of command options.

Examples

Importing by splitting to specified number of fragments

The following is an example using gfimport_text to import a source_file as gfarm:file by splitting to 8 fragments.

gfsched -N 8 | gfimport_text -H - -o gfarm:file source_file

Importing by splitting to specified number of fragments for particular program

The following is an example using gfimport_text 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_text -H - -o gfarm:file source_file

Importing into same disposition with an existing gfarm file

The following is an example using gfimport_text to import a source_file as gfarm:file into same disposition with existing file gfarm:template.

gfsched gfarm:template | gfimport_text -H - -o gfarm:file source_file

From gfarm-client 2.3.2-1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.