Hadoop 優化總結

1. 使用自定義Writable java 自帶的Text很好用,可是字符串轉換開銷較大,故根據實際須要自定義Writable,注意做爲Key時要實現WritableCompareable接口正則表達式 避免output.collect(new Text( ),new Text())緩存 提倡key.set( ) value.set( ) output.collect(key,value)安全 前
相關文章
相關標籤/搜索