Score:0

hdfs normally working but with sudo it shows command not found

th flag

I am trying to install hadoop3.1.1 and i have set ./bashrc file and all the other necessary files. while applying hdfs i am facing this situation shown in the picture. this image shows commands I have performed.

hr flag
For security reasons, `sudo` uses its own `secure_path` instead of your user's (or root's) `PATH`
Score:0
za flag

You can soft link hdfs command in /usr/sbin for example so you can able to call hdfs from root user as well.

or you can login in root user and change the same .bashrc and add hadoop command your path.

then you can succeed with hdfs with root. but think before working with root.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.