hadoop 配置 单台机器
摘要:http://khangaonkar.blogspot.com/2012/09/hadoop-2x-tutorial.html1. hdfs-site.xmlnamenode and datanode folder need to create in advance, all the content...
阅读全文
Hadoop 基本概念
摘要:1. Combinercombiner is between map and reduce, similar to reducer, combine some data before reducer.http://hadooptutorial.wikispaces.com/Custom+combin...
阅读全文
Hadoop basic
摘要:1. load file into hdfshadoop fs -put src destexample: load a fold "input" into hdfs "input1" folder, "input1" folder must not already existyou can no...
阅读全文
create auto increment row with select in postgreSQL
摘要:http://stackoverflow.com/questions/3959692/rownum-in-postgresqlSELECT row_number() OVER (ORDER BY col1) AS i, e.col1, e.col2, ... FROM...
阅读全文
Linq and XML
摘要:https://msdn.microsoft.com/en-us/library/bb943906.aspxBasic Queries (LINQ to XML)1. add to xml document public void sendMsg(string senderID, string re...
阅读全文
python use pymysql
摘要:import pymysqlconn = pymysql.connect(host='localhost', port=3306, user='root', passwd='123456', db='mydb')cur = conn.cursor()cur.execute("SELECT * FRO...
阅读全文
python install package on windows
摘要:http://www.cc.gatech.edu/classes/AY2012/cs2316_fall/presentations/HOWTO_install_pymysql_windows.pdf1. go to the fold of the package you want to instal...
阅读全文