Loading a Single File
Use the following procedure to load all the files in a native directory and its sub-directories. To load selected files, see Filtering Documents Loaded from a Directory.
Set
-input_file_path
to the path to the input file.Set
-input_file_type
if your input files are not documents. For example, if loading from delimited text files, sequence files, aggregate XML files, RDF triples files, or database archives.Set
-document_type
if-input_file_type
is notdocuments
and the content type cannot be accurately deduced from the file suffixes as described in How mlcp Determines Document Type.Set
-mode
: To perform the work locally, set-mode
tolocal
.
By default, the imported document has a database URI based on the input file path. For details, see Controlling Database URIs During Ingestion.
The following example command loads a single XML file:
# Windows users, see Modifying the Example Commands for Windows $ mlcp.sh import -host localhost -port 8000 -username user \ -password password -input_file_path /space/bill/data/hamlet.xml