In this article , We will learn how to create home directory in HDFS for a new user.
Every user should have home directory in HDFS if he/she wants to access HDFS. Some hadoop jobs use user's home directory to store intermediate/temporary data . Jobs will fail if no home directory for user.
On Local file system , user's home directory is created under /home directory and On HDFS, User's home directory is created under /user folder.
1) Create a user on local file system
First we need to create a user on local file system (i.e. Operating System) using useradd command. And user should be created on all nodes in the cluster.
The picture below shows new user nirupam is created and nirupam's home directory in local file system is /home/nirupam.
By default , user does not have a password , You can set password using passwd command if you want.
2) Create a directory in HDFS for new user.
We need to create a directory under /user in HDFS for new user. This directory needs to be created using hdfs user as hdfs user is super user for hadoop cluster.
The picture below shows a new directory is created for nirupam user under /user directory in HDFS.
3) Check the owner
As new directory is created by hdfs user, hdfs user will be the owner of the directory. We need to change the owner of this directory to new user.
The picture below shows owner of the /user/nirupam directory in HDFS.
4) Change the owner
Change the owner of new directory created in HDFS to new user created in local file system. chown command can be used to change the owner.
The picture below shows changing the owner of HDFS directory /user/nirupam to nirupam user from hdfs user.
5) Change the permissions
We need to change the permissions of this newly created so that no other users can have read,write and execute permissions except owner.
The picture below modifies permissions of /user/nirupam directory to 700 so that only own can have read, write and execute permissions.
6) Test the user's HDFS home directory.
We have successfully created home directory in HDFS for new user. We need to test it now.
We will try to upload a new file to HDFS without specifying destination directory. File will be uploaded to user's home directory if no destination is specified.
The picture below shows new file is uploaded to nirupam's user home directory as destination directory is not specified.
Let me know if you have any questions.
Every user should have home directory in HDFS if he/she wants to access HDFS. Some hadoop jobs use user's home directory to store intermediate/temporary data . Jobs will fail if no home directory for user.
On Local file system , user's home directory is created under /home directory and On HDFS, User's home directory is created under /user folder.
1) Create a user on local file system
First we need to create a user on local file system (i.e. Operating System) using useradd command. And user should be created on all nodes in the cluster.
The picture below shows new user nirupam is created and nirupam's home directory in local file system is /home/nirupam.
By default , user does not have a password , You can set password using passwd command if you want.
2) Create a directory in HDFS for new user.
We need to create a directory under /user in HDFS for new user. This directory needs to be created using hdfs user as hdfs user is super user for hadoop cluster.
The picture below shows a new directory is created for nirupam user under /user directory in HDFS.
3) Check the owner
As new directory is created by hdfs user, hdfs user will be the owner of the directory. We need to change the owner of this directory to new user.
The picture below shows owner of the /user/nirupam directory in HDFS.
4) Change the owner
Change the owner of new directory created in HDFS to new user created in local file system. chown command can be used to change the owner.
The picture below shows changing the owner of HDFS directory /user/nirupam to nirupam user from hdfs user.
5) Change the permissions
We need to change the permissions of this newly created so that no other users can have read,write and execute permissions except owner.
The picture below modifies permissions of /user/nirupam directory to 700 so that only own can have read, write and execute permissions.
6) Test the user's HDFS home directory.
We have successfully created home directory in HDFS for new user. We need to test it now.
We will try to upload a new file to HDFS without specifying destination directory. File will be uploaded to user's home directory if no destination is specified.
The picture below shows new file is uploaded to nirupam's user home directory as destination directory is not specified.
Let me know if you have any questions.
Awesome guide!
ReplyDeletebusiness data backup solutions
Impossible to launch hdfs command in the new user created
ReplyDeleteI get this error
ReplyDeletelocal:9000 failed on connection exception: java.net.ConnectException: Connection refused;
most of the error are solved here
Deletehttps://hadoopquiz.blogspot.com/
Visit for updated Content
ReplyDeletehttps://hadoopquiz.blogspot.com/
amasya
ReplyDeletebalıkesir
muş
zonguldak
aydın
UB5PM
https://saglamproxy.com
ReplyDeletemetin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
A4CLT5
van
ReplyDeleteerzincan
sivas
ağrı
manisa
B35T8
E4D21
ReplyDeleteAntep Sesli Görüntülü Sohbet
Urfa Kızlarla Rastgele Sohbet
adıyaman rastgele canlı sohbet
burdur canlı sohbet
sesli görüntülü sohbet
Ağrı Sesli Sohbet
tokat mobil sohbet bedava
gümüşhane rastgele sohbet uygulaması
adıyaman en iyi görüntülü sohbet uygulamaları
F5FB1
ReplyDeleteısparta Bedava Sohbet Odaları
kırıkkale canlı sohbet sitesi
Kayseri Rastgele Sohbet Odaları
bingöl en iyi sesli sohbet uygulamaları
Erzincan Tamamen Ücretsiz Sohbet Siteleri
kırıkkale ücretsiz sohbet uygulamaları
en iyi ücretsiz sohbet siteleri
nevşehir rastgele sohbet uygulaması
aydın canlı sohbet odaları
46383
ReplyDeletePinterest Takipçi Satın Al
Likee App Beğeni Hilesi
Meta Coin Hangi Borsada
Bitcoin Nedir
Twitter Trend Topic Hilesi
Bitcoin Madenciliği Nasıl Yapılır
Bitcoin Kazanma
Sohbet
Bitcoin Nasıl Alınır
B2B17
ReplyDeletetarçın sabunu
bitcoin hangi bankalarda var
limon sabunu
bitexen
biberiye sabunu
çay ağacı sabunu
kayısı sabunu
papaya meyvesi
aloe vera sabunu
F933F
ReplyDeleteKızılcahamam
Çardak
Türbanlı İfşa
Afyonkarahisar
Hisarcık
Karapürçek
Pasinler
Mahmudiye
Hamamözü
ACBEE
ReplyDeletefuar standı
yapay zeka video oluşturma
alpine coin yorum
blur coin yorum
theta coin yorum
javascript programlama
proxy
yazılım dilleri
google harita kaydı
686C1
ReplyDeleteTiktok Reklam Verme
seo hizmeti
Facebook Reklam Verme
Bing SEO
Netflix Film Önerileri
Dedicated Server
ipv6 Proxy
iş ilanları
Home Office İş İlanları
747AC
ReplyDeletegoogle 5 yıldız
Facebook Sayfa Satın Al
Wordpress Temaları
beğeni satın al twitter
SEO Forum
youtube kanal satın al
Site Satışı
Google Harita & İşletme Kaydı
adwords hesap satışı
F93B4
ReplyDeleteCtsi Coin Yorum
Lpt Coin Yorum
Alpine Coin Yorum
Eos Coin Yorum
Boson Coin Yorum
Mkr Coin Yorum
Btrst Coin Yorum
Neo Coin Yorum
Bitcoin Yorum
7C9C3
ReplyDeleteKava Coin Yorum
Alpine Coin Yorum
One Coin Yorum
Nmr Coin Yorum
Matic Coin Yorum
Neo Coin Yorum
Tlm Coin Yorum
BTC Son Dakika Haberleri
Qtum Coin Yorum
3AC4F5023F
ReplyDeletesanal seks
görüntülü seks
sohbet hattı
sanal sex
görüntülü sex
sohbet hattı
cam show
seks hattı
cam şov
Thank you so much for sharing this. masonry contractor boston ma
ReplyDelete13F8AB7880
ReplyDeletekaldırıcı
sinegra
bufalo içecek
cialis
themra macun
viagra
lifta
yapay kızlık zarı
sertleştirici
25925DC9E4
ReplyDeleteücretli şov
7ABED5FDB0
ReplyDeletevigrande
whatsapp görüntülü şov
green temptation
kamagra hap
novagra hap
cam show
sinegra 100 mg
bufalo içecek
canli web cam show