$ ls -lh /mnt/zebclient/mydir/nasa
total 36K
drwxr-xr-x 2 jonas js 4.0K Feb 14 2024 AVHRR
drwxr-xr-x 2 jonas js 4.0K Feb 14 2024 CMIP5
drwxr-xr-x 2 jonas js 4.0K Feb 14 2024 Landsat
drwxr-xr-x 2 jonas js 4.0K Feb 14 2024 LOCA
drwxr-xr-x 2 jonas js 4.0K Feb 14 2024 MAIAC
drwxr-xr-x 2 jonas js 4.0K Feb 14 2024 MODIS
drwxr-xr-x 2 jonas js 4.0K Feb 14 2024 NAIP
drwxr-xr-x 2 jonas js 4.0K Feb 14 2024 NEX-DCP30
drwxr-xr-x 2 jonas js 4.0K Feb 14 2024 NEX-GDDP
This directory is read-only. It is visible from all agents in the cluster.
Command details
The command zebclient inlet add --help will list all command-line switches, such as the ability to set accesskey/secretkey for s3, changing dirmode/filemode or scoping the inlet to a bucket subpath.
$ zebclient inlet add --help
NAME:
zebclient inlet add - Add an inlet, e.g. external S3 bucket
USAGE:
zebclient inlet add [command options] <name>
DESCRIPTION:
This commands gives access to external data from the filesystem tree on all zebclient mounts.
A new directory will appear that reflects read-only access to the external bucket.
Example:
$ zebclient inlet add mysystem \
--inletname=aws-mybucket \
--inode=42 \
--dirname=mypictures \
--dirmode=0755 \
--filemode=0644 \
--uid=1000 \
--gid=1000 \
--protocol=s3 \
--uri=https://s3.us-east-1.amazonaws.com \
--region=us-east-1 \
--bucket=mybucket \
--accesskey=AFIOHTGJWERITYNWREMN \
--secretkey=Xmdfgi283u4sadkmfgklasdm32498u5384sdkmfa
OPTIONS:
--env-file value Path to environment variable file
--inletname value The name of the inlet
--dirname value The name of the directory to create.
--inode value The inode parent to the new directory that the filesystem will create.
It is not valid to recursively mount an inlet within another inlet.
HINT: You can use for instance "stat" on a directory to see the inode number.
--dirmode value The mode that directories should have (default: "0755")
--filemode value The mode that files should have (default: "0644")
--uid value The user ID which the new files/directories should have
--gid value Same as uid, but group id
--protocol value What protocol to use (default: "s3")
--uri value The S3 service URI, e.g. 'https://s3.us-east-1.amazonaws.com'
--region value The S3 region, e.g. 'us-east-1'
--bucket value The name of the bucket
--prefix value Scope to this prefix within the bucket
--accesskey value Optional. The S3 access key for the account. If not set then the bucket need to be accessable without access and secret key
--secretkey value Optional. The S3 secret key for the account. If not set then the bucket need to be accessable without access and secret key
$
The command requires first the name of the zebclient configuration, in this case "mysystem". This corresponds to zebclient trying to find configuration variables that are named ZM_MYSYSTEM_XXX, such as: