公告版位
新版Blog peichengnote


ruby on rails 3 - brew install mongodb error: Cowardly refusing to `sudo brew install' Mac OSX Lion - Stack Overflow
http://stackoverflow.com/questions/10424872/brew-install-mongodb-error-cowardly-refusing-to-sudo-brew-install-mac-osx-lio


文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()


在使用 預先製作好的 VM檔案時,
內部配置有一張bridge 一張NAT 網卡,外面有dhcp server 會分發 ip 。
開了一陣子發現, 外面連不進去dhcp的那個 ip了,直覺先 /etc/init.d/networking restart 一下,
出現了 "failed to bring up eth0 " in Ubuntu

之後,會使用 ifconifig 看看是不是 dev 的name改變了,發現也沒有變動。
本來以為是,之前bind 的mac ,跟現在不一樣了 dhcp 才不能動,
改去 /etc/udev/rules.d/ check 一下 network 那個 file 。
發現並沒有產生這個file。
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()


台灣拳頭會 於麻豆 總爺藝文中心 舉辦之”台灣拳頭 巡迴 大匯演 首站”,於時間 10月20日(日)下午舉行,
圓滿成功。

超過 20 幾個團體,50 幾種拳種,匯集一地,大家互相交流,互相成長,各路名家精銳盡出。


文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()


SolrCloud 改善了原本在 Solr 分散式上面的不足。
Solr 在之前沒有distributed index的feature,我們需要手動的去拆分 core to shards,
你要自己知道你要index的record file 是送到哪一台node上面做index,Solr並不會幫你管理這些步驟。
而且,當你的每個core不 balance 時,也要手動來結果。而且不支援 failover 。可能會導致某些 index 找不到的情況。

SolrCloud 引入 ZooKeeper

在整個系統中導入了hadoop eco 常用的 居中協調角色的 ZooKeeper來做 failover 與 load balancing。讓整個 Search engine 可以更 Robust。

文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()

note一下,

0.20 前使用 org.apache.hadoop.mapred 舊介面
0.20 版本開始引入org.apache.hadoop.mapreduce 的新API

0.20 後使用
http://hadoop.apache.org/docs/current/api/org/apache/hadoop/mapreduce/Mapper.html

@InterfaceAudience.Public
@InterfaceStability.Stable
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()


在使用mac整理圖片時就想說,怎麼沒有一個好用的 看圖工具了。
原來就是內建的 preview 預覽工具。

在圖片上 按 space 就可以使用上下左右去看圖了。

文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()


MapFile 是 排序且帶索引的 hadoop SequenceFile 。
一個 MapFile 在 HDFS上是一個資料夾,包含兩個file組成,一個是index,也就是key的索引,另外一個就是 data,排序好的原始資料。
在查找時,只需要把index載入,memory中,使用binary search的方式,就可以很快查找到要找的key。

index
內含 
# hadoop fs -text numbers.map/index

1 128
129 5820

文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()

IPC port
JobTracker:8021
namenode:8020

JobTracker WebUI : 50030
NameNode WebUI 50070




文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()


$ cat 1380704328894.log
!SESSION 2013-10-02 16:58:48.757 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_34
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=zh_TW
Command-line arguments: -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2013-10-02 16:58:50.031
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()


Tutorial - Apache Hive - Apache Software Foundation
https://cwiki.apache.org/confluence/display/Hive/Tutorial#Tutorial-Joins


Hive 的說明內只出了Joins的幾種組合用法,
其中有個是 left semi join


In order check the existence of a key in another table, the user can use LEFT SEMI JOIN as illustrated by the following example.

文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()

[angular js] Module ~ factory service provider

區分這三者的不同。
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()


Suffix Arrays
http://algorithmicalley.com/archive/2013/06/30/suffix-arrays.aspx


文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()

[hadoop] commission and decommission Step

文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()

[hadoop] job scheduler


文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()



peicheng@TW-PCLIAO:~
$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@renode2
Warning: the RSA host key for 'renode2' differs from the key for the IP address '10.1.191.177'
Offending key for IP in /home/peicheng/.ssh/known_hosts:28
Matching host key in /home/peicheng/.ssh/known_hosts:78
Are you sure you want to continue connecting (yes/no)? yes

peicheng@TW-PCLIAO:~

文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()