$ vagrant box add ubuntu http://cloud-images.ubuntu.com/quantal/current/quantal-server-cloudimg-vagrant-amd64-disk1.box
$ vagrant init ubuntu
OSを起動する。
HiveServer2 http://www.slideshare.net/schubertzhang/hiveserver2
HiveServer2 Clients - Apache Hive - Apache Software Foundation https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients
CDH4をインストール済みであれば、HiveServer2の起動は以下のようにして行える。
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from pyquery import PyQuery as pq | |
| def main(): | |
| # 気象庁 東京 2014年1月データ | |
| url = ('http://www.data.jma.go.jp/obd/stats/etrn/view/daily_s1.php?' | |
| 'prec_no=44&block_no=47662&year=2014&month=1&day=&view=') | |
| # pyquery | |
| query = pq(url, parser='html') |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from pyquery import PyQuery | |
| import json | |
| q = PyQuery(url='http://mainichi.jp/select/biz/archive/') | |
| url = 'http://mainichi.jp/select/news/' | |
| links = [] |