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
brew install automake libtool wget | |
wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.bz2 | |
tar -xvjf protobuf-2.5.0.tar.bz2 | |
cd protobuf-2.5.0 | |
./autogen.sh | |
./configure | |
make; make check | |
sudo make install | |
Validate the successful installation: |
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
sqoop // sqoop import data from MYSQL to HDFS/Hive/HBase | |
import | |
--connect | |
jdbc:mysql://localhost/database | |
--username | |
root | |
-password admin | |
--table mysql1 | |
-m //specify the number of map tasks(parallel processes) to use to perform the import | |
1 |
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
show databases; | create database database_name; | drop database database_name; | |
use database_name; | |
show tables; | create table table_name(fields_name fields_type primary key/not null/auto_increment, .......); | drop table table_name; | |
alter table table_name add/modify/change field_name fields_type auto_increment/not null/unique /// first/after fields_name | |
alter table table_name drop column fields_name; | |
insert int table_name values("", "", "",); |
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
recommender: File-->DateModel-->CachingRecommender-->recommend-->userId-->print | |
cluster | |
classify |
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
fs.append() | |
fs.create() | |
files-->FileInputStream-->BufferedInputStream-->DataInputStrem-->program--> | |
DataOutputStream-->BufferedOutputStream-->FileOutputStream-->files | |
mapreduce | |
input-->split-->map-->shuffle-->reduce | |
client-->jobtracker-->tasktracker-->map or reduce | |
mapreduce programs Configuration: | |
Tool ToolRunner: |
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
git init | |
git add <file> | |
git commit -m "description" | |
git status | |
git reset --hard HEAD^ #git reset --hard commit_id | |
git reflog | |
####################### | |
stage master | |
git checkout -- <file> discard changes |
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
HTTP方法(动作): GET HEAD POST PUT DELETE OPTIONS | |
静态文件: CSS javascript | |
渲染模板:GET HEAD POST PUT DELETE OPTIONS CSS javascript |
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
flask | |
windows环境 安装easy_install | |
#配置虚拟环境 | |
easy_install pip | |
pip install virtualenv | |
mkdir newproject | |
cd newproject | |
virtualenv nenv | |
#每次使用项目,必须先激活环境(linux中:$ . venv/bin/activate) |
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
setuptools | |
APSW windows上python数据库操作 conn = aspw.Connection('conn.db') | |
Backports 升级python新版本 | |
Basemap 2D绘图工具包 | |
bitarry bitarry objects like lists | |
blist better performance for large lists | |
blaze next generation of NumPy 分布式数据分析包 | |
blosc 针对二进制数据进行优化的压缩器 | |
bokeh 基于html5的可视化库针对大数据集和流 | |
Boost.Python c++和python 交互包 |