I expect you'd be able to fork a separate process and run any hadoop/hdfs
commands that you'd like.

If you're coding in Java, then I expect you can code to APIs to accomplish
this goal, basically doing the equivalent of what the HDFS CLI does now:

https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/tools/GetGroupsBase.java0

Chris Nauroth


On Wed, Sep 7, 2022 at 6:15 AM <phi...@free.fr> wrote:

> Hello,
> does anyone know if "hdfs" commands can be run with Spark?
> For instance, I would like to run "hdfs groups <username>" in Spark. Is it
> possible?
> Many thanks
> Philippe
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@hadoop.apache.org
> For additional commands, e-mail: user-h...@hadoop.apache.org
>
>

Reply via email to