Hi Xiaodong,

Generally speaking, admin operations are not in DistributedFileSystem class.
Some of the admin APIs may be found in HdfsAdmin (erasure coding, storage
policy APIs)

In this case, KeyProvider#createKey() does exactly what you want.

On Mon, Dec 10, 2018 at 6:58 PM <[email protected]> wrote:

> hello, everyone:
>
>     Why there is no Java API for command  "hadoop key create" in
> DistributedFileSystem?
>
>
>
>
>
> 胡晓东 huxiaodong
>
>
> 网管及服务系统部 Network Management & Service System Dept
>
>
>
>
>
> MP: 17351011636
> E: [email protected]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

Reply via email to