Skip Headers
Oracle® Big Data Connectors User's Guide
Release 2 (2.1)

Part Number E36961-05
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

hdfs.mv

Moves an HDFS file from one location to another.

Usage

hdfs.mv(
        dfs.src,
        dfs.dst,
        force)

Arguments

dfs.src

The name of the source file to be moved. The file name can include a path that is either absolute or relative to the current path.

dfs.dst

The name of the moved file. The file name can include a path that is either absolute or relative to the current path.

force

Set to TRUE to overwrite an existing destination file, or FALSE to cancel the operation and display an error message (default).

Return Value

NULL for a successful copy, or FALSE for a failed attempt

Example

This example moves a file named weblog to the demo subdirectory and overwrites the existing weblog file:

R> hdfs.mv("weblog", "./demo", force=T)