测试版本:CDH5.0,(Hadoop2.3)在使用windows调用Hadoop yarn平台的时候,一般都会遇到如下的错误:2014-05-28 17:32:19,761 WARN org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor: Exception from container-launch with co...
分类:
其他好文 时间:
2014-06-03 06:26:17
阅读次数:
277
#include
#include
#include
#include
using namespace std;
int pow(int x, int n)
{
int result = 1;
while (n > 0)
{
if (n % 2==1)
result *= x;...
分类:
其他好文 时间:
2014-06-03 05:08:33
阅读次数:
399
STL的队列和栈简单使用
#include
#include
#include
#include
#include
#include
using namespace std;
int main()
{
queue Q;
stack S;
int i;
for(i=1;i
{Q.push(i);S.push(i);}
while(...
分类:
其他好文 时间:
2014-06-03 03:51:26
阅读次数:
238
An iterative way of writing merge sort:
#include
using namespace std;
void merge(int A[], int l, int r, int e, int B[]) {
int i = l, j = r, k = l;
while (i<r && j A[j]) B[k++] =...
分类:
其他好文 时间:
2014-06-03 02:33:24
阅读次数:
215
1、错误描述
freemarker基本数据类型
张三丰
123,456
Error on line 20, column 8 in type.ftl
Expecting a string, date or number here, Expression flag is instead...
分类:
其他好文 时间:
2014-06-03 00:51:06
阅读次数:
400
An iterative way of writing quick sort:
#include
#include
#include
using namespace std;
void quickSort(int A[], int n) {
stack> stk;
stk.push(make_pair(0, n-1));
while (!stk.empty()) {
pair ...
分类:
其他好文 时间:
2014-06-03 00:16:43
阅读次数:
357
git提交代码时,出现这个错误“error: The requested URL returned error: 403 Forbidden while accessing https”
解决方法:
编辑.git目录下的config文件即可。
vim .git/config
#修改对于的配置
#原来的url = https://github.com/elitecodegr...
分类:
数据库 时间:
2014-06-03 00:03:44
阅读次数:
349
阻塞IO实现:
public class PlainEchoServer {
public void serve(int port) throws IOException {
final ServerSocket socket = new ServerSocket(port);
try {
while (true) {
final Socket clientSocket...
分类:
其他好文 时间:
2014-06-02 23:32:20
阅读次数:
357
Reactor模式和NIO
本文可看成是对Doug Lea Scalable IO in Java一文的翻译。
当前分布式计算 Web Services盛行天下,这些网络服务的底层都离不开对socket的操作。他们都有一个共同的结构:
1. Read request
2. Decode request
3. Process service
4. Encode reply
5. S...
分类:
其他好文 时间:
2014-06-02 23:14:47
阅读次数:
356
1、错误描述
freemarker.core.ParseException: Encountered "string" at line 21, column 21 in type.ftl.
Was expecting one of:
"}" ...
"." ...
"[" ...
"(" ...
"?" ...
"!" ...
......
分类:
其他好文 时间:
2014-06-02 23:10:09
阅读次数:
327