安装好Hadoop后,使用jps会出现一下几个进程
master中有:
namenode
secondaryNameNode
jobTracker
slaves中有
tasktracker
datanode
1. NameNode
它是Hadoop 中的主服务器,管理文件系统名称空间和对集群中存储的文件的访问。
2. Second...
分类:
系统相关 时间:
2015-01-10 13:57:03
阅读次数:
232
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the...
分类:
其他好文 时间:
2015-01-09 09:17:50
阅读次数:
165
在项目当中有要用到map按key排序的需求,就在百度上搜了一下:typedef pair PAIR;int cmp(const PAIR& x, const PAIR& y){return x.second imgdis; //待排序对象,根据double值排序imgdis[1] = 3;imgd....
分类:
编程语言 时间:
2015-01-08 22:36:40
阅读次数:
558
公司一直用自主开发的一个同步工具来进行数据库文件异机备份的,但无奈太不稳定,三天两头出现服务挂死的问题,特别是最近这1个月,几天就1次。问题现象都是服务一直在运行,但没有复制文件到备份机上,而且备份服务重启需要2个小时到2天……原因估计是网络问题导致文件共享复制中断,无法结束正在复制文件的这个进程而...
分类:
其他好文 时间:
2015-01-08 14:50:47
阅读次数:
4569
基础代码:CalendarcurrentTime=Calendar.getInstance();currentTime.setTime(newDate());intcurrentHour=currentTime.get(Calendar.SECOND);currentTime.set(Calenda...
分类:
其他好文 时间:
2015-01-08 12:48:27
阅读次数:
160
#include namespace First{ int i = 0;}namespace Second{ int i = 1; int j = 2; namespace Internal { struct Stu { ...
分类:
其他好文 时间:
2015-01-04 16:41:25
阅读次数:
127
英 语 缩 写 (四)英 语 缩 写 (四) 1:英语日期缩写1st=first,2nd=second,3rd=third,4-10都以th结尾4th,5th,6th,7th,8th,9th,10th.11,12,13因为它们的英语是eleven,twelve,thirteen,所以缩写是11th=...
分类:
其他好文 时间:
2015-01-03 22:17:46
阅读次数:
207
var newElement = document.createElement("input");var nowtime=year+""+month+day+hour+minute+second;newElement.setAttribute("name","nowtime"); newEleme....
分类:
Web程序 时间:
2015-01-03 19:46:20
阅读次数:
319
To the Max --------------------------------------------------------------------------------Time Limit: 1 Second Memory Limit: 32768 KB --------------....
分类:
其他好文 时间:
2015-01-03 14:29:45
阅读次数:
157
一:压力测试中需要掌握的几个基本概念1:吞吐率(Requests per second)服务器并发处理能力的量化描述,单位是reqs/s,指的是某个并发用户数下单位时间内处理的请求数。某个并发用户数下单位时间内能处理的最大请求数,称之为最大吞吐率。记住:吞吐率是基于并发用户数的。这句话代表了两个含义...
分类:
Web程序 时间:
2015-01-03 13:01:49
阅读次数:
176