일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- RFID
- Java
- essay
- comic agile
- hbase
- Book
- programming_book
- leadership
- ubuntu
- web
- management
- Python
- history
- Book review
- QT
- psychology
- agile
- Spain
- Kuala Lumpur
- Linux
- erlang
- Software Engineering
- Italy
- Programming
- django
- France
- MySQL
- program
- hadoop
- Malaysia
- Today
- Total
read json using pig + jython udf 본문
2013/09/13 - [Programming/Hadoop] - read json from pig
http://pig.apache.org/docs/r0.8.1/udf.html#Load+Functions
http://gethue.tumblr.com/post/60376973455/hadoop-tutorials-ii-1-prepare-the-data-for-analysis
http://opensource.xhaus.com/projects/jyson/wiki/JysonFaq
https://github.com/romainr/yelp-data-analysis
http://stackoverflow.com/questions/16705259/parsing-text-file-of-one-line-json-objects-using-rjsonio
http://ragrawal.wordpress.com/2013/02/24/on-writing-python-udf-for-pig-a-perspective/
http://hadooptips.wordpress.com/2013/08/13/nosuchmethoderror-while-using-joda-time-2-2-jar-in-pig/
http://blog.cloudera.com/blog/2009/06/analyzing-apache-logs-with-pig/
download and unzip jyson-1.0.2.zip from http://downloads.xhaus.com/jyson/1.0.2/
$ hadoop fs -cat yelp_academic_dataset_business.json
$ cat converter.py
$ cat converter.pig
$ ls jyson-1.0.2/lib/jyson-1.0.2.jar
jyson-1.0.2/lib/jyson-1.0.2.jar
$ pig -f converter.pig
$ hadoop fs -cat yelp_academic_dataset_business.tsv/part-m-00000