为了方便自己回顾记忆,将今天实验的hadoop命令总结一下,方便后续查看。注意,下述命令是在hadoop/bin 下操作的。1.hadoop fs -ls \ ->查看当前下面的所有目录。2.hadoop fs -mkdir xxx ->创建xxx文件夹在hadoop文件系统上。3.hadoop ....
分类:
其他好文 时间:
2014-07-31 02:18:05
阅读次数:
283
shell的种类: sh ?- Bourne shell csh or tcsh - C shell korn - Korn shell bash - GNU Bourne-Again shell 1.最简单的列子 例子 #!/bin/bash ? #?This?is?a?very?simple?example?echo?Hello?World e...
分类:
其他好文 时间:
2014-07-31 00:13:45
阅读次数:
454
Color
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 7630
Accepted: 2507
Description
Beads of N colors are connected together into a circular necklace of ...
分类:
其他好文 时间:
2014-07-31 00:10:35
阅读次数:
330
Round Numbers
Time Limit: 2000MS
Memory Limit: 65536KB
64bit IO Format: %I64d & %I64u
[Submit] [Go Back]
[Status]
Description
The cows, as you know, have no...
分类:
其他好文 时间:
2014-07-31 00:08:55
阅读次数:
350
大菲波数
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 11137 Accepted Submission(s): 3769
Problem Description
Fibonacci数列,定义如下:
...
分类:
其他好文 时间:
2014-07-31 00:03:15
阅读次数:
234
问题描述:
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
解题思路:
这是一个典型的斐波那契数列,对于...
分类:
其他好文 时间:
2014-07-31 00:02:55
阅读次数:
243
Bellman-ford算法的反向应用--正循环检查
/** \brief poj 1860 Bellman-Ford
*
* \param date 2014/7/24
* \param state AC
* \return memory 708K time 141ms
*
*/
#include
#include
#include
using namespace std...
分类:
其他好文 时间:
2014-07-31 00:01:23
阅读次数:
213
先上题目:How far away ?Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4936Accepted Submission(s): 186...
分类:
其他好文 时间:
2014-07-30 23:51:25
阅读次数:
310
Ext.form.field.Time拓展自Ext.form.field.Picker组件,是带下来选择框的时间框输入字段;并且有自动的时间验证功能;代码示例: (function(){
Ext.onReady(function(){
Ext.QuickTips.init();
Ext.create...
分类:
Web程序 时间:
2014-07-30 23:48:35
阅读次数:
327
注:前缀':'表示vim命令(命令模式),前缀'$'表示为shell命令,表示Ctrl + W,表示Ctrl + Shift+ 6,无前缀者均为普通模式下的键盘按键。基本的插入与修改: a 光标下一个字符处插入; i 在当前光标处插入; A 行尾插入; o 在光标下新建一行插...
分类:
其他好文 时间:
2014-07-30 23:31:35
阅读次数:
216