概述VHD 是微软虚拟磁盘文件格式,qemu和tapdisk2都能支持VHD镜像格式,不仅提供基本的虚拟机卷功能,还可提供磁盘快照、磁盘扩容等高级功能vhd-util是个linux下的开源软件,通过封装libvhd库函数,提供vhd镜像相关操作。例如可用于创建vhd镜像、快照等功能。本文关注vhd-...
分类:
其他好文 时间:
2014-09-11 11:08:21
阅读次数:
719
Problem D
FILL
There are three jugs with a volume of a, b and c liters. (a, b, and c are positive integers not greater than 200). The first and the second jug are initially empty, while the thi...
分类:
其他好文 时间:
2014-09-11 09:42:51
阅读次数:
210
Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will be o...
分类:
其他好文 时间:
2014-09-11 07:39:41
阅读次数:
161
Received empty response from Zabbix Agent at [agent]. Assuming that agent dropped connection because of access permission情况:server端一直显示更改server上agentd...
分类:
数据库 时间:
2014-09-11 03:27:01
阅读次数:
11905
spark自带的example中就有streaming结合kafka使用的案例:$SPARK_HOME/examples/src/main/scala/org/apache/spark/examples/streaming/KafkaWordCount.scala使用方法参见代码描述:Usage: ...
分类:
其他好文 时间:
2014-09-10 17:29:50
阅读次数:
219
使用版本:kafka_2.10-0.8.1.1安装:tar -zxvf kafka_2.10-0.8.1.1.tgz -C ~/app/添加环境变量:.bash_profileexport KAFKA_HOME=/home/spark/app/kafka_2.10-0.8.1.1export PAT...
分类:
其他好文 时间:
2014-09-10 17:18:30
阅读次数:
231
阅读前提: ????????1 : 您可能需要对 ?logback 日志系统有所了解 ???? ? ?2 :您可能需要对于?kafka 有初步的了解 ???? ? ?3:请代码查看之前,请您仔细参考系统的业务图解 ? ? ? ? ...
分类:
其他好文 时间:
2014-09-10 16:01:21
阅读次数:
258
各个时间可用值如下:
秒 0-59 , - * /
分 0-59 , - * /
小时 0-23 , - * /
日 1-31 , - * ? / L W C
月 1-12 or JAN-DEC , - * /
周几 1-7 or SUN-SAT , - * ? / L C #
年 (可选字段) empty, 1970-2099 , - * /
可用值详细分析如下:
“*”——字...
分类:
编程语言 时间:
2014-09-10 12:35:20
阅读次数:
273
EC2上的虚拟机容量满了,一看是lvm的格式,顿时想到可以用lvm在线扩容EC2的create volume ,attach disk就不说了,下面是在guestos上执行的操作,ls /dev/sd* # 查看物理磁盘,找到那块新加的磁盘fdisk /dev/sdi # 分区...
分类:
其他好文 时间:
2014-09-10 12:15:40
阅读次数:
218
一、什么是kafka?kafka是LinkedIn开发并开源的一个分布式MQ系统,现在是Apache的一个孵化项目。在它的主页描述kafka为一个高吞吐量的分布式(能将消息分散到不同的节点上)MQ。Kafka仅仅由7000行Scala编写,据了解,Kafka每秒可以生产约25万消息(50MB),每秒处理55万消息(11..
分类:
其他好文 时间:
2014-09-10 02:50:40
阅读次数:
342