Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why another user is required to run hadoop?

Tags:

hadoop

hdfs

I have a question regarding hadoop configuration why we need to create a user for running hadoop can we not run hadoop on a root user?

like image 223
Anmol Avatar asked Oct 26 '25 07:10

Anmol


2 Answers

Yes, you can run it as root.

It is not a requirement to have a dedicated user for Hadoop but having one with lesser privileges than root is considered a good practice. It helps in separating Hadoop processes from other services running on the same machine.

like image 79
franklinsijo Avatar answered Oct 28 '25 01:10

franklinsijo


This is not hadoop specific, it's a common good practice in IT to have specific users for running daemons ,for security reasons (for example in hadoop, if you run map reduce daemons as root, a malign user could launch a map reduce job which deletes not only hdfs data, but operating system data), for best control ,etc. Take a look at this: https://unix.stackexchange.com/questions/29159/why-is-it-recommended-to-create-a-group-and-user-for-some-applications

like image 25
Luis Leal Avatar answered Oct 28 '25 01:10

Luis Leal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!