The put command transfers a file into an S3 bucket.
Usage
s3Cli put <local_path> [s3_path]
Arguments
| Name | Required | Description |
|---|
local_path | Yes | Local path to a file |
s3_path | Yes | S3 bucket name |
In the s3_path, don’t include prefixes such as s3://, s3a://, and s3n://.
Only specify the bucket name.
Option
| Name | Shorthand | Data type | Description |
|---|
--recursive | -r | N/A | Upload directory recursively |
Global options
| Name | Shorthand | Data type | Description |
|---|
--help | -h | N/A | Show help message and exit |
--config | -c | String | Path to Hadoop’s core-site.xml file |
--jceks-dir | -j | String | Directory containing JCEKS files |
--ranger-classpath | -r | String | Path to Ranger’s JAR files |
--user | -u | String | Username for Ranger authorization |
--verbose | -v | N/A | Verbose logging |