1在src下面新建file名为log4j.properties内容如下:# Configure logging for testing: optionally with log filelog4j.rootLogger=WARN, stdout# log4j.rootLogger=WARN, std...
分类:
移动开发 时间:
2014-06-27 17:31:34
阅读次数:
217
1.安装依赖的包:yum install gcc-c++ g++ autoconf automake libtool cmake zlib1g-dev pkg-config libssl-dev2. 安装protobuf 2.5.0,首先去google的网站上下载protobuf源代码,解压并切换到...
分类:
系统相关 时间:
2014-06-27 17:24:26
阅读次数:
259
问题描述:1 当hbase自己运行时,没有问题,可以正常启动2 当搭建完hadoop环境后,再启动报异常:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/util/HBaseConf...
分类:
其他好文 时间:
2014-06-27 14:59:21
阅读次数:
268
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2014-06-27 12:30:39
阅读次数:
204
php 设计模式1: php 工厂设计模式'; return new $type; } else { echo 'driver not found'; throw new Exception('Driver ...
分类:
Web程序 时间:
2014-06-26 19:52:42
阅读次数:
242
Undefined symbols for architecturei386:“_OBJC_CLASS_$_XXX”,referenced from:objc-class-ref in XXXld: symbol(s) not found for architecture i386clang: er...
分类:
移动开发 时间:
2014-06-26 17:28:20
阅读次数:
1816
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
You are given a target value to search. If found in the array retur...
分类:
其他好文 时间:
2014-06-26 13:58:53
阅读次数:
203
最近在尝试使用Zsh,发现其补全命令的功能相当厉害。但对CMake命令的补全在默认的5.0.5中好像没有看到,网上找了下关于配置Zsh补全的文章也没有多少。 于是自己动手,发现在Zsh安装目录下有个functions的文件夹,里面都有以_开头的各种补全提示文件,比如_sed,_awk等,于是尝试.....
分类:
其他好文 时间:
2014-06-26 12:55:10
阅读次数:
199
I used to see my senior developers use WITH (NOLOCK) when querying in SQL Server and wonder why they use. Now i explored it and found thatit's useful ...
分类:
数据库 时间:
2014-06-26 12:51:12
阅读次数:
265
Solr4.6的管理界面上,如果不配置数据导入的功能,将看不到清除数据的按钮。我表示很遗憾,正好我们线上没有配置数据导入的功能。
网上搜到的各种清理solr数据的HTTP请求,拿到我的solr4.6上测试,报service not found。看了这些请求都是在solr4之前的版本上运行的。找到了个Solr4.2的Http请求,改了改参数,才可以用。
http://solr1....
分类:
其他好文 时间:
2014-06-26 06:45:10
阅读次数:
198