Quick Start
Interactive Analysis with the Spark Shell
BasicsMore on RDD OperationsCaching
Standalone ApplicationsWhere to Go from Here
This tutorial provides a quick introduction to using Sp...
分类:
其他好文 时间:
2014-09-15 12:57:48
阅读次数:
258
Spark Streaming Programming Guide
OverviewA Quick ExampleBasic Concepts
LinkingInitializing StreamingContextDiscretized Streams (DStreams)Input DStreamsTransformations on DStreamsOutput Operatio...
分类:
其他好文 时间:
2014-09-15 12:57:19
阅读次数:
340
此脚本适用于备份指定发布目录下的目录,可适当修改运用!#!/usr/bin/envpython#backupapppythonscript.importosimporttimeimportsysnowTime=time.strftime("%Y%m%d")sourcePath=‘/home/zcb/resin-4.0.10/apps/‘backupPath=‘/home/zcb/tmp/bak‘+nowTimeifnotos.path.exists(‘/h..
分类:
编程语言 时间:
2014-09-15 11:29:19
阅读次数:
266
1 事务的传播属性(Propagation)1) REQUIRED ,这个是默认的属性Support a current transaction, create a new one if none exists.如果存在一个事务,则支持当前事务。如果没有事务则开启一个新的事务。被设置成这个级别时,会...
分类:
其他好文 时间:
2014-09-15 11:16:18
阅读次数:
218
前言: 关于多级别菜单栏或者权限系统中部门上下级的树形遍历,oracle中有connect by来实现,mysql没有这样的便捷途径,所以MySQL遍历数据表是我们经常会遇到的头痛问题,下面通过存储过程来实现。1,建立测试表和数据:DROP TABLE IF EXISTS csdn.channel; CREATE TABLE csdn.channel ( id INT(1...
分类:
数据库 时间:
2014-09-15 01:07:18
阅读次数:
383
发现公司同事很喜欢用exists和in做子查询关联,我觉得很有必要研究下两者的区别,供参考和备忘/*(这段信息来自网络begin)对于in的使用,就相当于对inner table执行一个带distinct的子查询,然后将得到的结果集再和outer table进行外连接,连接方式和索引使用任然同于普通...
分类:
数据库 时间:
2014-09-14 21:56:07
阅读次数:
316
默认用qtcreator5.2.0创建了一个quick项目,却报如下错误:error:cstdlib.h no such file or directory解决方法:打开项目文件untitled4.pro,加上INCLUDEPATH = d:/Soft/cygwin/usr/local/androi...
分类:
移动开发 时间:
2014-09-14 17:49:57
阅读次数:
281
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2014-09-14 12:49:37
阅读次数:
214
-- 准备工作drop table if exists Emp;create table if not exists Emp( uid int primary key, sid int);insert into Emp values(1,1);insert into Emp values(2,2);...
分类:
数据库 时间:
2014-09-14 12:42:07
阅读次数:
180
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4994题目意思:有 n 个 heap(假设从左至右编号为1~n),每个 heap 上有一些 objects。有两个player,轮流从左至右的 heap 上取走 object(1 2 #include ....
分类:
其他好文 时间:
2014-09-14 12:38:57
阅读次数:
185