Hello @Jitendra7337-8043,
You need to use root permissions to edit file under /etc folder.
Syntax:
sudo <Favorite Editor > core-site.xml
Error: Gives error message as “you don’t have permissions to edit the file”.
cd /etc/hadoop/conf
nano core-site.xml
Success: Allows to edit the file.
cd /etc/hadoop/conf
sudo nano core-site.xml
Hope this helps. Do let us know if you any further queries.
Do click on "Accept Answer" and Upvote on the post that helps you, this can be beneficial to other community members.