设定hbase的数据目录,修改conf/hbase-site.xml hbase.cluster.distributed true The mode the clusterwill be in. Possible values are ...
分类:
其他好文 时间:
2014-08-01 18:30:52
阅读次数:
202
linux下多进程的调试:
(1)follow-fork-mode
set follow-fork-mode [parent | child] ———— fork之后选择调试父进程还是子进程
(parent: fork之后继续调试父进程;child: fork之后调试父进程。默认的是fork之后调试父进程)
set detach...
分类:
系统相关 时间:
2014-08-01 13:49:31
阅读次数:
245
今天项目要上线,在Archive时报错:ARC forbids explicit message send of 'release''release' is unavailable: not available in automatic reference counting mode 项目中有几个....
分类:
移动开发 时间:
2014-08-01 10:47:51
阅读次数:
277
startActivityForResult不返回结果,请检查AndroidManifest中的描述,是否对该Activity设置了:launchMode="singleTask",
查看文档:
For example, if the activity you are launching uses the singleTask launch mode,
it will not run in...
分类:
其他好文 时间:
2014-07-31 20:50:27
阅读次数:
175
首先是Run Loop的部分概念,它的作用就是循环、处理事件。具体来说有两个方面: 1. 定时启动任务(一般用和Timer协作);2. 处理事件。
在单线程的app中,不需要注意Run Loop,但不代表没有。程序启动时,系统已经在主线程中加入了Run Loop。它保证了我们的主线程在运行起来后,就处于一种“等待”的状态(而不像一些命令行程序一样运行一次就结束了),这个时候如果有接收到的事件(T...
分类:
其他好文 时间:
2014-07-31 17:02:28
阅读次数:
397
一、代码布局一键规范1、快速打开(Command + Shift + O)CTCardCell.m,记得进入Dev Mode(Command .)2、看下 CTCardCell.m 顶部凌乱的属性列表@property(weak,nonatomic)IBOutletUILabel*locationL...
分类:
其他好文 时间:
2014-07-31 16:41:56
阅读次数:
195
Hadoop MapReduce Next Generation - Setting up a Single Node Cluster.PurposeThis document describes how to set up and configure a single-node Hadoop in...
分类:
其他好文 时间:
2014-07-30 23:41:45
阅读次数:
284
1、jstack 用法jstack [option] pid -l long listings,会打印出额外的锁信息,在发生死锁时可以用jstack -l pid来观察锁持有情况 -m mixed mode,不仅会输出Java堆栈信息,还会输出C/C++堆栈信息(比如Native方法...
分类:
编程语言 时间:
2014-07-30 21:01:04
阅读次数:
249
order by,distribute by,sort by,cluster by ?查询使用说明 // 根据年份和气温对气象数据进行排序,以确保所有具有相同年份的行最终都在一个reducer分区中
// 一个reduce(海量数据,速度很慢)
select year, te...
分类:
其他好文 时间:
2014-07-30 21:00:44
阅读次数:
198
thinkphp开启cli支持1、tp正好支持cli命令模式,手册的路径为13.7.4如果是用的其他框架不支持cli,那么只能直接写程序了,其实就是写面向过程的最基础的php代码。2、在入口文件下开启命令,加入一句define('MODE_NAME', 'cli');网站一般还有可以通过网页访问的模...
分类:
Web程序 时间:
2014-07-30 20:09:57
阅读次数:
237