在运行伪分布式前,需先对
NameNode
进行格式化,在命令行中输入
hdfs n ame node -format #
格式化
hdfs
大数据之
hadoop
伪分布模式启动
1
、格式化
HDFS
若出现
successfully formatted
字样,则说明格式化成功
18/03/17 16:47:50 INFO namenode.FSNanesysrem:
Retcache on ndmenode is e
nabled
18/03/17 10:47:50 INFO namenode,FSNames^stemr Retr/ cache will use 0.03 of
Total hedp and rexry cache entry expiry time
is beeoee minis
10/63/17 10:47:50 INFO y
□til.GSet: CumpuLing tdpdcitv for mop Ndmenode Retr
Cache
18/03/17 ie;47:50 INFO
util,GSet VM type = 32-bit
18/03/17 16:47:50 INFO B
□til.GSet: B.O
対
999999329447
刑触
max memry = 8S9 H
18/03/17 16:47:50 INFO
18/03/17 W:47:50 INFO
util.GSet: capacity = 2^16 = 65536 entries
/twp/dfs/name has been
common,Storage; Storage directory /usr/local/hadoop
ia/03/17 10:47t58 INFO
success fully formatted*
FSImdge: Saving image file /usr/local/hddo
ap/tmp/df&/name/curtent/fsImjge,cKpt 000090006009QOOOOGG using no campre$$
18/93/17 10:47:50 INFO rumenade.FSIm^ge; Image file /usr/lotdI/hadoop/Imp/
dfs/name/current/fsiffi^ge.ckpr OSOOSSGOGOGOGOOGOGO of size 198 byte^ saved In 0
seconds.
10/63/17 10:47150 INFO
namenode,MNStorageRetentionHanager; Going to retain 0
1 imdges with txid >=
util.ExltUtll: Exiting with status 0
18/G3/17 lG;d7:50 INFO
叱
manod4
陽 喘 如 虫
i: SHUTDOWN_MSG:
10/G3/17 16:47:50 INFO
+++*++++++++**+++++*+^++^+++4++4+++/+++++++4+++4***+*+*+++++
SHUTDOWf^ HSG: Shutting down WameNode at hduser/127,e. 1.1
羊斗*亦*十鼻沖卓鼻卓克*#**欢章卓卓羊卓単卓章車**孚卓車斗卓*朮*学丰*章*車*:单*尊*芈事*芈卒斗鼻
hadoopfltiduser: /us r/local/hodoop/et
匚
/hdCkx)p$
2
、启动
hadoop
然后启动
hadoop
集群
start-all.sh #
一次性启动所有服务