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
每天进步一点点,快乐生活多一点。