准备工作:1、笔记本4G内存 ,操作系统WIN72、工具VMware Workstation3、虚拟机:CentOS6.4共五台4、搭建好Hadoop集群( 方便Spark可从HDSF上读取文件,进行实验测试)实验环境:Hadoop HA集群:Iphostnamerole192.168.249.13...
分类:
其他好文 时间:
2015-01-15 12:38:41
阅读次数:
237
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous subarray [4,?1,2,1] ha...
分类:
其他好文 时间:
2015-01-13 21:46:20
阅读次数:
181
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous subarray [4,?1,2,1] ha...
分类:
其他好文 时间:
2015-01-12 13:07:22
阅读次数:
149
Hadoop2.6集群环境搭建(HDFS HA+YARN)原来4G内存也能任性一次。准备工作:1、笔记本4G内存 ,操作系统WIN7 (屌丝的配置)2、工具VMware Workstation3、虚拟机:CentOS6.4共四台虚拟机设置:每台机器:内存512M,硬盘40G,网络适配器:NAT模式选...
分类:
其他好文 时间:
2015-01-12 11:32:39
阅读次数:
217
本章将介绍如何使用avalon来实现前端路由功能。我们需要用到两个avalon路由配套模块—— mmHistory.js 和 mmRouter.js 。其中mmHistory是用于历史管理,它会劫持页面上所有点击链接的行为,当这些链接是以#/ 、#!/开头,就尝试匹配路由规则,阻止页面刷新(通过ha...
分类:
Web程序 时间:
2015-01-12 00:15:46
阅读次数:
423
高可用集群一、什么是高可用集群高可用集群就是当某一个节点或服务器发生故障时,另一个节点能够自动且立即向外提供服务,即将有故障节点上的资源转移到另一个节点上去,这样另一个节点有了资源既可以向外提供服务。高可用集群是用于单个节点发生故障时,能够自动将资源、服务..
分类:
系统相关 时间:
2015-01-11 06:20:38
阅读次数:
8936
实验环境:centos6.6;172.16.249.98node1.stu7.com172.16.249.100node2.stu7.com配置HA集群前提:1、时间必须同步;建议使用ntp协议进行;2、节点之间必须要通过主机名互相通信;建议使用hosts文件;通信中使用的名字必须与其节点为上“uname-n”命令展示出的名字保持一致;3、..
分类:
Web程序 时间:
2015-01-10 18:24:59
阅读次数:
288
#include#include#includeusing namespace std;int main(){ int a,b; a=-3; b=2; try { if((a+b)<0) throw runtime_error("ha...
分类:
编程语言 时间:
2015-01-10 18:07:09
阅读次数:
210
LCIS
Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4483 Accepted Submission(s): 2024
Problem Description
Given n integers.
You ha...
分类:
其他好文 时间:
2015-01-09 22:22:30
阅读次数:
248