1. make sure you have docker and docker compose extension installed in your host machine. 2. Run docker compose up and wait until the intances are initialized then in a new terminal type docker exec -it namenode bash 3. Now You have access to the hdfs command and enjoy.