lk@lk-virtual-machine:~/hadoop-1.0.1/bin$ ./hadoop dfs -rmr output
Deleted hdfs://localhost:9000/user/lk/output
lk@lk-virtual-machine:~/hadoop-1.0.1/bin$ ./hadoop jar ~/mytopk.jar top.Top input out...
分类:
其他好文 时间:
2014-05-13 06:53:12
阅读次数:
448
邮件发送测试页面。前台页面
邮件发送例子
TD {
FONT-SIZE: 9pt; FONT-FAMILY: "宋体"
}
.TextBox {
BORDER-RIGHT: #000000 thin dashed; BORDER-TOP: #000000 thin dashed; BORDER-LEFT: #000000 thin dashed; BORDER-BOTT...
分类:
其他好文 时间:
2014-05-13 06:36:50
阅读次数:
400
lk@lk-virtual-machine:~/hadoop-1.0.1/bin$ ./hadoop jar ~/hadoop-1.0.1/to.jar top.Top input output
14/05/12 03:44:37 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applicat...
分类:
其他好文 时间:
2014-05-13 05:38:18
阅读次数:
291
Card Trick
时间限制:1000 ms | 内存限制:65535 KB
难度:3
描述
The magician shuffles a small pack of cards, holds it face down and performs the following procedure:
The top card is moved to the bottom of ...
分类:
其他好文 时间:
2014-05-13 05:17:49
阅读次数:
249
此脚本可以做一个定时的检测,超出设定的值,即往邮箱发送警告脚本用到bc,sendmail,163邮箱,yuminstallbc#!/bin/bash
#SystemMonitoringScript
while[1]
do
#本机需开启postfix或sendmail服务。
#报警邮件地址设置
MAILFROM=root@localhost
MAILTO=your_mail@163.com
#设置..
分类:
系统相关 时间:
2014-05-13 05:05:29
阅读次数:
649
在Sqlite3中没用top语法的结构,Sqlite3中是用limit来实现这样的功能的。mytable表中的数据如下:idvalue1hello2你们3你们4VeryGood5!如下SQL语句:select*frommytablelimit3;显示的查询结果是:1hello2你们3你们相当于SqlServer中的Top3;但是limit的功能比top强大,尤其是在..
分类:
数据库 时间:
2014-05-13 04:53:12
阅读次数:
323
在MySql和Sqlite中,可以用limit来查询第m条开始取n条的记录,如select*frommytablelimit1,3;但是在SQLServer中不支持limit语句,SQLServer支持Top,可以通过使用Top的嵌套来实现与limit相同的功能。如要取mytable表中的前10条记录,SQL中的语句如下:selecttop10frommytable如..
分类:
数据库 时间:
2014-05-13 04:37:46
阅读次数:
397
一、什么是I/OI/O设备是计算机核心部件和外围设备进行交互的通道,因此I/O是一个统称。但这里所说的I/O与计算机的硬件设备没有太大关系,它是用来实现应用程序的I/O重定向。通常应用程序需要从外部用户获取数据,也需要将运行结果反馈给外部用户,因此程序本身要有输入输出功能..
分类:
其他好文 时间:
2014-05-13 04:16:13
阅读次数:
361
whileCONDITION;dostatementdone进入循环:条件满足退出循环:条件不满足untilCONDITION;dostatment...done#!/bin/bash#read-p"Inputsomething:"STRINGwhile[$STRING!=‘quit‘];doecho$STRING|tr‘a-z‘‘A-Z‘read-p"Inputsomething:"STRINGdone#!/bin/bash#read-p"Inputsomething:..
分类:
系统相关 时间:
2014-05-13 03:58:53
阅读次数:
343
1. mongodb创建数据库和集合
mongodb数据库和集合的创建是隐式的。
意思是说不用单独写create database 语句。
直接使用use关键词即可。
在bin/mongo shell下运行:...
分类:
数据库 时间:
2014-05-13 00:28:12
阅读次数:
445