tips for 0.9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libraryDependencies ++= Seq( | |
"com.github.xuwei-k" %% "msgpack4z-core" % "0.2.0", | |
"com.github.xuwei-k" % "msgpack4z-java07" % "0.2.0" | |
) |
1410 JR神田駅 (集合)
1420 カープ(到着&食事)
1522 JR神田駅 (出発)
1528 JR新橋駅 (到着)
1535 ゆりかもめ新橋駅(出発)
1550 ゆりかもめ台場駅(到着)
1600 シネマメディアージュ(開場)
1615 舞台挨拶開始
1645 上映開始
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# parted /dev/sda | |
(parted) print | |
モデル: VMware, VMware Virtual S (scsi) | |
ディスク /dev/sda: 107GB | |
セクタサイズ (論理/物理): 512B/512B | |
パーティションテーブル: msdos | |
番号 開始 終了 サイズ タイプ ファイルシステム フラグ | |
1 1049kB 43.1GB 43.1GB primary ext4 boot | |
2 43.1GB 53.7GB 10.6GB extended |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 26 : RUN rm -fr /tmp/ansible* | |
---> Using cache | |
---> b7fe49f6b0cb | |
Successfully built b7fe49f6b0cb | |
time="2015-07-27T11:14:01+09:00" level=fatal msg="Error response from daemon: Could not get container for seven_zookeeper" | |
>>>>>> ------Exception------- | |
>>>>>> Class: Kitchen::ActionFailed | |
>>>>>> Message: Failed to complete #create action: [Expected process to exit with [0], but received '1' | |
---- Begin output of docker run -d -t --name seven_manage --net bridge -h seven-local-manage01 -p 18080:8080 --link seven_zookeeper:zk --link seven_kafka:kafka --link seven_zabbix_server:zabbix-server --expose 10050 b7fe49f6b0cb sh -c 'while true; do sleep 1d; done;' ---- | |
STDOUT: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import seven.kafka.consumer._ | |
val options = KafkaBasicConsumer.defaultOptions ++ Map("auto.commit.enable" -> "true") | |
def consume(t: String, g: String): Unit = { | |
val consumer = new KafkaBasicConsumer("localhost:2181", g, options) | |
consumer.basicConsume(t, DefaultCallback) | |
Thread.sleep(1000) | |
consumer.shutdown() | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onTransition { | |
case _ -> AdapterConsuming if ! nextStateData.isInstanceOf[ConsumingData] => | |
throw new IllegalArgumentException(s"AdapterConsuming expects ConsumingData, but got ${nextStateData.getClass.getSimpleName}".red) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function docker-port-mappings() { | |
local x="" | |
for x in $(docker ps -q); docker port $x | |
} | |
function docker-kafka-iptables() { | |
local hp="host port" | |
local gp="guest port" | |
for hp in 2181 9092; do | |
for gp in $(docker-port-mappings |grep $hp | head -1 | sed -r "s/.*:(.*)/\1/g"); do |