一、配置scala环境1.实验环境Node1192.168.1.1master
Node2192.168.1.2worker
Node3192.168.1.3worker2.检查java环境(每个节点)#java-version
javaversion"1.7.0_05"
Java(TM)SERuntime
Environment(build1.7.0_05-b05)
JavaHotSpot(TM)64-Bit
ServerVM(build23.1-b03,mixedm..
分类:
其他好文 时间:
2014-10-15 15:11:31
阅读次数:
585
1. Game is easy to get ATM.2. Parallel is hard I think. Parallel is 11. My parallel number is 3. 2014 10 14 9:44PM. I NEED TO GET 4 PARALLEL. Parallel...
分类:
其他好文 时间:
2014-10-15 14:13:20
阅读次数:
148
Oracle没有 sqlserver的 top number 功能。只能以期间的形式实现代码实现分页,参数curPage 当前页、pageSize每页行数,计算出起始结束页码int startPage = (curPage - 1) * pageSize + 1;int endPage = curP...
分类:
数据库 时间:
2014-10-15 14:06:50
阅读次数:
174
[leetcode]Given a string S and a string T, count the number of distinct subsequences of T in S....
分类:
其他好文 时间:
2014-10-15 13:53:50
阅读次数:
147
查看系统版本:[root@css-management ~]# lsb_release -aLSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-Distributor ID: CentOSDescr...
分类:
系统相关 时间:
2014-10-15 12:58:12
阅读次数:
250
Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4],t...
分类:
其他好文 时间:
2014-10-15 12:52:20
阅读次数:
160
#Listimportshere:importturtleimportrandomimportmath#Listconstantshere(NOMAGICNUMBERS!):NUMBER_DARTS=1000LEFT_BOUND=-2RIGHT_BOUND=2TOP_BOUND=-2BOTTOM_B...
分类:
编程语言 时间:
2014-10-15 12:35:40
阅读次数:
636
前台页面: 引入js和css <script type="text/javascript" src="${STATIC_FILE_PATH}/js/jquery/jquery-1.10.js${STATIC_FILE_VERSION}"></script> <link type="text/css" rel="stylesheet" href="${STATIC_FILE_...
分类:
编程语言 时间:
2014-10-15 11:17:30
阅读次数:
289
采用三次握手连接第一次握手:主机A发送位码为syn=1,随机产生seqnumber=1234567的数据包到服务器,主机B由SYN=1知道,A要求建立联机;第二次握手:主机B收到请求后要确认联机信息,向A发送acknumber=(主机A的seq+1),syn=1,ack=1,随机产生seq=7654321的包第三次握手:主机A收到..
分类:
Web程序 时间:
2014-10-15 06:06:00
阅读次数:
245
请使用root执行改脚本
#!/bin/bash
APT_DIR="/etc/apt"
VERSION=`awk‘{print$2}‘/etc/issue`
case$VERSIONin
14.04|14.04.1)RELEASE="trusty";;
13.04|13.04.1)RELEASE="raring";;
13.10)RELEASE="saucy";;
12.04|12.04.1|12.04.2|12.04.3|12.04.4|12.04.5)RELEASE="precise";..
分类:
系统相关 时间:
2014-10-15 05:31:10
阅读次数:
222