其他分享
首页 > 其他分享> > hadoop命令工作常用

hadoop命令工作常用

作者:互联网

# 创建用户目录
hadoop fs -ls /user
sudo -uhdfs hadoop fs -mkdir /user/hadoop
sudo -uhdfs hadoop fs -chown hadoop:hadoop /user/hadoop
# 基础目录
hadoop fs -mkdir isas
hadoop fs -mkdir isas/epc
hadoop fs -mkdir isas/epc/s1mme
hadoop fs -mkdir isas/epc/s11
hadoop fs -mkdir isas/ims
hadoop fs -mkdir isas/mr
# 以下子目录可不建议。put数据时自动创建
hadoop fs -mkdir isas/ims/diameter
hadoop fs -mkdir isas/ims/gxrx
hadoop fs -mkdir isas/ims/nc
hadoop fs -mkdir isas/ims/session
hadoop fs -mkdir isas/ims/sip
hadoop fs -mkdir isas/ims/slice
hadoop fs -mkdir isas/mr/mre
hadoop fs -mkdir isas/mr/mro
# 目录读写授权
hadoop fs -chmod -R +w isas/*
# 确认目录创建情况
hadoop fs -ls isas

 

标签:常用,fs,mkdir,hadoop,命令,ims,user,isas
来源: https://www.cnblogs.com/yanwuliu/p/10874630.html