java -cp /Users/guangle/.m2/repository//junit/junit/4.8.1/junit-4.8.1.jar:target/thunder-libs-0.0.71.jar org.junit.runner.JUnitCore com.klout.thunder.common.UrlSummaryNormalizerTest
Friday, January 10, 2014
Friday, December 6, 2013
hbase note
1. pre-split regions
2. flush sharded redis server
for i in $(seq 1 7)
do
host="flredis0"$i"-mini.private"
ssh $host '(echo "flushdb" | redis-cli)'
done
rm /tmp/region.splits; for i in $(
create 'networkProfile3', {NAME => 'c', BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', VERSIONS => '1', COMPRESSION => 'SNAPPY', MIN_VERSIONS => '1', TTL => '7776000', BLOCKSIZE => '65536', IN_MEMORY => 'false ', BLOCKCACHE => 'true'}, {SPLITS_FILE => '/tmp/region.splits'}seq 1 1 99); do printf "%02d00\n" $i >> /tmp/region.splits ; done2. flush sharded redis server
for i in $(seq 1 7)
do
host="flredis0"$i"-mini.private"
ssh $host '(echo "flushdb" | redis-cli)'
done
Tuesday, November 19, 2013
Scala Notes
1. A function calling async function should return a future too.
def foo (b: B) : Future[A] {
val c = aync {
...
}
2. access a future:
for {
s <- c
} yield {
...
}
}
3. change a list of future to future of list
Future.sequence(x)
4. wrap anything with Future:
sync(None)
def foo (b: B) : Future[A] {
val c = aync {
...
}
2. access a future:
for {
s <- c
} yield {
...
}
}
3. change a list of future to future of list
Future.sequence(x)
4. wrap anything with Future:
sync(None)
Thursday, November 14, 2013
Test udf
java -cp ./insights-etl-0.7.6.jar:~/insights/lib/*:/usr/lib/hive/lib/* com.klout.perk.GnipTupleUDTF
Friday, November 1, 2013
Hive Mapside Join Configuration
Disable mapside join
set hive.auto.convert.join=false;
Other configuration : go to https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties
search mapside join
Wednesday, September 25, 2013
Scala
Means case class returns not single types in different branches:
Cannot prove that Product with Serializable <:< (T, U).
Cannot prove that Product with Serializable <:< (T, U).
Tuesday, September 17, 2013
ElasticSearch
1. ElasticSearch transfers data scoll size setup. Will transfer up to 100 documents starting from the first one.
_search?from=0&size=100
_search?from=0&size=100
Subscribe to:
Posts (Atom)