ES是分布式的。当document被create,update,或者delete,这个document的新版本就会冗余到cluster的其他node中。ES是异步和并发的,意味着冗余请求也是并行进行的,并且请求到达也是无次序的。因此需要一个方式保证老版本的document不能重写新版本的数据。如上所...
分类:
其他好文 时间:
2014-05-20 02:31:47
阅读次数:
499
1. VMware安装失败 “Failed to create the requested
registry key Key:installer Error:1021"1.1.
windows7在注册表(cmd--->regedit)中找到HKEY_LOCAL_MACHINE ---> SOFTWA...
分类:
其他好文 时间:
2014-05-17 15:15:48
阅读次数:
259
在迁移Wordpress数据的过程中(或者采集过程中),可能会遇到这种问题:同样一篇文章被导入了2次或者3次,这时候就要删除重复的文章了。SQL语句删除在Mysql中执行:
CREATE TABLE temp_table AS SELECT MIN(ID) AS col1 FROM wp_posts...
分类:
其他好文 时间:
2014-05-16 04:16:32
阅读次数:
272
二、数据库操作 1、show databases; //列出数据库 2、use
database_name //使用database_name数据库 3、create database data_name
//创建名为data_name的数据库 4、drop database data_name /...
分类:
数据库 时间:
2014-05-16 03:06:36
阅读次数:
437
字典树
#ifndef TIRE_H_INCLUDED
#define TIRE_H_INCLUDED
/*
** 字典树
*/
#define MAX 26
typedef struct Node
{
int num;
struct Node* next[MAX];
}Tire;
/*
** 创建一个节点
*/
Tire* create(void);
/*
*...
分类:
其他好文 时间:
2014-05-16 02:52:23
阅读次数:
246
数据库: create database|schema [if not exists]
db_name [character set =] [collate =]; alter database drop {database | schema}
[if exists] db_name;表: ...
分类:
数据库 时间:
2014-05-15 21:22:26
阅读次数:
463
在eclipse启动tomcat时遇到超时45秒的问题:
Server Tomcat v7.0 Server at localhost was unable to startwithin 45 seconds. If the server requires more time, try increasingthe timeout in the server editor.
网上解决办法...
分类:
其他好文 时间:
2014-05-15 18:31:36
阅读次数:
242
1、gem安装出现下面错误
root@ubuntu:/home/git/gitlab# sudo gem install bundler --no-ri --no-rdoc
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https...
分类:
其他好文 时间:
2014-05-15 18:19:48
阅读次数:
304
drop table book; --创建表 create table book( bookId
varchar2(4) primary key, name varchar2(20) ); --创建序列 create seque...
分类:
数据库 时间:
2014-05-15 14:00:51
阅读次数:
403
场景:1、客户端需要自动安装某台新共享服务器上的打印机2、并且删除以前安装的老的共享服务器上的打印机,删除残留的其他网路打印机脚本如下:添加打印机‘addPrinter
‘直接修改第二行的打印机共享名称即可
‘可以添加多条第二行,以增加多个打印机
SetWshNetwork=Wscript.Create..
分类:
其他好文 时间:
2014-05-15 09:12:23
阅读次数:
231