Skip to content

Instantly share code, notes, and snippets.

@oza
oza / q4m.log
Created October 28, 2011 10:56
q4m on debian (wheezy)
$ ./configure --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr/local --program-suffix=-4.6 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
$ --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=$HOME/usr --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --without-included-gettext --enable-threads=posix --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --wi
@oza
oza / rake-msg.log
Created October 21, 2011 15:13
cannot install fluentd from github
ozawa@ozamba:~/workspace/fluentd$ rake
WARNING: no description specified
Successfully built RubyGem
Name: fluentd
Version: 0.10.3
File: fluentd-0.10.3.gem
Generated: fluentd.gemspec
fluentd.gemspec is valid.
ozawa@ozamba:~/workspace/fluentd$ gem install pkg/fluentd-*.gem
ERROR: Error installing pkg/fluentd-0.10.3.gem:
@oza
oza / log
Created October 21, 2011 04:53
msgpack-scala build failure
$ mvn package
Downloaded: http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.9.0/scala-compiler-2.9.0.jar (11531 KB at 300.8 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 49.891s
[INFO] Finished at: Fri Oct 21 13:49:22 JST 2011
[INFO] Final Memory: 3M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project msgpack-scala_2.9.0: Could not resolve dependencies for project org.msgpack:msgpack-scala_2.9.0:jar:0.6.2-SNAPSHOT: Could not find artifact org.msgpack:msgpack:jar:0.6.2-SNAPSHOT in msgpack.org (http://msgpack.org/maven2/) -> [Help 1]
@oza
oza / fluent-plugin-hbase.rb
Created September 28, 2011 08:14
The fluent plugin for hbase.
module Fluent
class HbaseOutput < Fluent::BufferedOutput
Fluent::Plugin.register_output('hbase', self)
def initialize
super
require 'rubygems'
require 'stargate'
@oza
oza / zoo.cfg
Created September 25, 2011 06:10
A setting file for ZooKeeper.
# The number of milliseconds of each tick
#tickTime=2000
tickTime=30000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10000
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=10000
# the directory where the snapshot is stored.
@oza
oza / msgpack-scala-build-failure.txt
Created April 3, 2011 06:25
Build failure log for msgpack-scala
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.msgpack:scala-msgpack:jar:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-report-plugin is missing. @ line 131, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
@oza
oza / akka-buid-error
Created March 24, 2011 04:08
akka buid error
$ sbt update
Getting Scala 2.7.7 ...
:: retrieving :: org.scala-tools.sbt#boot-scala
confs: [default]
2 artifacts copied, 0 already retrieved (9911kB/37ms)
Getting org.scala-tools.sbt sbt_2.7.7 0.7.5.RC0 ...
:: retrieving :: org.scala-tools.sbt#boot-app
confs: [default]
16 artifacts copied, 0 already retrieved (4270kB/31ms)
[info] Recompiling plugin definition...
@oza
oza / akka-log
Created March 24, 2011 03:00
tried to run acca framework, but it dumped logs.
$ scala -cp akka-actor-1.0.jar
Welcome to Scala version 2.8.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_24).
Type in expressions to have them evaluated.
Type :help for more information.
scala> import akka.actor._
import akka.actor._
scala> class MyActor extends Actor {
| def receive = {
@oza
oza / hadoop files
Created December 27, 2010 21:53
hr
#!/bin/sh
hadoop dfsadmin -safemode enter
/etc/init.d/hadoop-0.20-datanode stop
/etc/init.d/hadoop-0.20-secondarynamenode stop
/etc/init.d/hadoop-0.20-namenode restart
/etc/init.d/hadoop-0.20-secondarynamenode start
/etc/init.d/hadoop-0.20-jobtracker restart
/etc/init.d/hadoop-0.20-tasktracker restart
#!/usr/bin/env python
# FIXME: write code