博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
hadoop2.6.0实践:004 启动伪分布式hadoop的进程
阅读量:5326 次
发布时间:2019-06-14

本文共 2436 字,大约阅读时间需要 8 分钟。

[hadoop@LexiaofeiMaster hadoop-2.6.0]$ start-dfs.sh

Starting namenodes on [localhost]
localhost: starting namenode, logging to /opt/modules/hadoop-2.6.0/logs/hadoop-hadoop-namenode-LexiaofeiMaster.out
LexiaofeiMaster: starting datanode, logging to /opt/modules/hadoop-2.6.0/logs/hadoop-hadoop-datanode-LexiaofeiMaster.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /opt/modules/hadoop-2.6.0/logs/hadoop-hadoop-secondarynamenode-LexiaofeiMaster.out
[hadoop@LexiaofeiMaster hadoop-2.6.0]$ jps
4421 SecondaryNameNode
4238 DataNode
4530 Jps
4153 NameNode
[hadoop@LexiaofeiMaster hadoop-2.6.0]$ hdfs dfs -ls /
[hadoop@LexiaofeiMaster hadoop-2.6.0]$ hdfs dfs -mkdir -p /input/grep
[hadoop@LexiaofeiMaster hadoop-2.6.0]$ start-yarn.sh
starting yarn daemons
starting resourcemanager, logging to /opt/modules/hadoop-2.6.0/logs/yarn-hadoop-resourcemanager-LexiaofeiMaster.out
LexiaofeiMaster: starting nodemanager, logging to /opt/modules/hadoop-2.6.0/logs/yarn-hadoop-nodemanager-LexiaofeiMaster.out
[hadoop@LexiaofeiMaster hadoop-2.6.0]$ jps
4421 SecondaryNameNode
4744 NodeManager
4238 DataNode
4801 Jps
4653 ResourceManager
4153 NameNode
[hadoop@LexiaofeiMaster hadoop-2.6.0]$ hdfs dfs -put /opt/data/input/* /input/grep
[hadoop@LexiaofeiMaster hadoop-2.6.0]$ hdfs dfs -ls /input/grep
Found 8 items
-rw-r--r-- 1 hadoop supergroup 4436 2017-02-09 20:01 /input/grep/capacity-scheduler.xml
-rw-r--r-- 1 hadoop supergroup 774 2017-02-09 20:01 /input/grep/core-site.xml
-rw-r--r-- 1 hadoop supergroup 9683 2017-02-09 20:01 /input/grep/hadoop-policy.xml
-rw-r--r-- 1 hadoop supergroup 775 2017-02-09 20:01 /input/grep/hdfs-site.xml
-rw-r--r-- 1 hadoop supergroup 620 2017-02-09 20:01 /input/grep/httpfs-site.xml
-rw-r--r-- 1 hadoop supergroup 3523 2017-02-09 20:01 /input/grep/kms-acls.xml
-rw-r--r-- 1 hadoop supergroup 5511 2017-02-09 20:01 /input/grep/kms-site.xml
-rw-r--r-- 1 hadoop supergroup 690 2017-02-09 20:01 /input/grep/yarn-site.xml
[hadoop@LexiaofeiMaster hadoop-2.6.0]$ ./sbin/mr-jobhistory-daemon.sh start historyserver
starting historyserver, logging to /opt/modules/hadoop-2.6.0/logs/mapred-hadoop-historyserver-LexiaofeiMaster.out
[hadoop@LexiaofeiMaster hadoop-2.6.0]$ jps
5179 JobHistoryServer
4421 SecondaryNameNode
4744 NodeManager
4238 DataNode
5210 Jps
4653 ResourceManager
4153 NameNode
[hadoop@LexiaofeiMaster hadoop-2.6.0]$

转载于:https://www.cnblogs.com/lexiaofei/p/6384402.html

你可能感兴趣的文章
Logging 日志配置格式模板
查看>>
day4 liaoxuefeng---高级特性
查看>>
js,jq.事件代理(事件委托)复习。
查看>>
regular 点滴
查看>>
mysql中时间格式
查看>>
Hadoop介绍与安装
查看>>
redis 新开端口号
查看>>
fedora 21 安装 搜狗输入法
查看>>
Javascript获取url中的参数
查看>>
App对接支付宝移动支付功能
查看>>
Android Material Design 系列之 SnackBar详解
查看>>
浏览器端缓存的一个小问题及解决方案
查看>>
评论列表显示及排序,个人中心显示
查看>>
从git上拉下来的严选weex项目demo
查看>>
ios 字符串处理:截取字符串、匹配字符串、分隔字符串
查看>>
网络丢包严重的解决办法
查看>>
[Training Video - 5] [Groovy Script Test Step - Collections, Exceptions] Array and ArrayList
查看>>
iOS 黑屏
查看>>
linux学习笔记<基本知识普及>
查看>>
Python哈希表的例子:dict、set
查看>>