今天重启了下Hadoop集群,使用Eclipse调试hdfs api的时候报错:[WARNING] java.lang.NullPointerException at org.conan.kafka.HdfsUtil.batchWrite(HdfsUtil.java:50) at org...
分类:
其他好文 时间:
2014-10-23 12:20:22
阅读次数:
254
最近项目中有一个比较奇怪的问题,就是当记录了最后的m_lastPos为当前widget中间位置之后,设置了QCursor也为当前中间位置。 这个时候当开始移动的时候,发现offset出现了很怪的极大值,后来发现,因为我的工作环境是远程机环境,所以当调用系统全局的 QCursor::setPos的时....
分类:
其他好文 时间:
2014-10-23 09:25:34
阅读次数:
127
lseek函数off_t lseek(int filedes, off_t offset, int whence);whence: SEEK_SET, 表示将文件的偏移量设置为距文件开始offset个字节。 SEEK_CUR, 当前+offset个字节,offset可正可负。 SEE...
分类:
其他好文 时间:
2014-10-22 20:07:39
阅读次数:
230
flume是一个实时消息收集系统,它定义了多种的source、channel、sink,可以根据实际情况选择。Flume下载及文档:http://flume.apache.org/Kafkakafka是一种高吞吐量的分布式发布订阅消息系统,她有如下特性:通过O(1)的磁盘数据结构提供消息的持久化,这种结构对于即使数以TB的..
分类:
Web程序 时间:
2014-10-22 18:36:34
阅读次数:
338
Appcmd.exe是IIS7提供的一个管理站点的命令行工具,同时支持Ftp和Http的站点,功能还算强大,具体使用方法参考微软网站。需求我这里的例子主要配置一个Ftp站点,并且允许CcUser这个用户对其目录具备读和写的权限:代码@echo offset cc_inbox_dir=c:\CC_In...
分类:
其他好文 时间:
2014-10-22 12:41:02
阅读次数:
313
Windows 7开发:UAC数据重定向 - Win32 Native目标本动手实验中,您将会学习如何:? 故障排除一个文件重定向 问题? 使用Process Monitor查找引起问题的根本原因系统要求您必须符合下面的条件以完成这次实验:? Microsoft Visual Studio 20.....
用给自己记录用defmonitor_work_1(content):dict_1={‘service‘:‘rdc_monitor‘,‘checkpoint‘:‘rdc_monitor_log‘,‘title‘:content,‘content‘:content,‘cluster‘:‘public‘,‘grade‘:‘2‘}params=urllib.urlencode(dict_1)urllib.urlopen(‘http://alert.sae.sina.com.cn/new/‘,params)
分类:
Web程序 时间:
2014-10-21 19:49:41
阅读次数:
168
第一种:
使用aop指定切面aspect,
id="LogAdvice" class="com.thinkmore.framework.monitor.log.LogAdviceInterceptor"> name="cache"> local="ehCache" /> proxy-target-class="true"> id="txPointcut" exp...
分类:
其他好文 时间:
2014-10-21 12:25:44
阅读次数:
148
I need a monitor class that regularly checks whether a given HTTP URL is available. I can take care of the "regularly" part using the Spring TaskExecu...
分类:
编程语言 时间:
2014-10-21 03:36:46
阅读次数:
264
其实很简单,在inf中有中设置图表索引显示黄色问号肯定说明 你是这样填写的HKR,,Icon,,"-18" PCI设备要改成 -5 数值如下Computer 0 Display 2 Mouse 5 Keyboard 6 FDC 9 HDC 9 Ports 10 Net 15 System 0 Sound 8 Printer 14 Monitor 2 Network Transport 3 Netw...
分类:
其他好文 时间:
2014-10-20 17:29:28
阅读次数:
337