hbstudy#45-serverspecが開いたServerテストの世界-
2013年6月21日(金) 19:00 - 21:30
株式会社ハートビーツ
ハロー会議室 新宿 C+D(東京都新宿区西新宿1丁目5-11 新宿三葉ビル6F)
| [08/May/2014 03:28:00 +0000] 17289 MainThread agent ERROR Failed to activate {u'refresh_files': [], u'config_generation': 0, u'auto_restart': False, u'running': True, u'required_tags': [u'cdh'], u'user': u'root', u'special_file_info': [], u'group': u'root', u'id': 451, u'status_links': {}, u'name': u'deploy-client-config', u'run_generation': 1, u'environment': {u'CDH_VERSION': u'5', u'PRIORITY': u'92', u'SERVICE_TYPE': u'YARN', u'ALT_NAME': u'hadoop-conf', u'ETC_DIR_NAME': u'/etc/hadoop', u'ZK_QUORUM': u'cdh1:2181,cdh2:2181,cdh3:2181', u'DIRECTORY_NAME': u'yarn-conf'}, u'optional_tags': [u'cdh-plugin', u'yarn-plugin', u'mapreduce2-plugin'], u'program': u'client/deploy-cc.sh', u'arguments': [u'yarn1-clientconfig.zip', u'conf.cloudera.yarn1'], u'parcels': {u'CDH': u'5.0.0-1.cdh5.0.0.p0.47'}, u'resources': [], u'one_off': True} | |
| Traceback (most recent call last): | |
| File "/usr/lib64/cmf/agent/src/cmf/agent.py", line 1062, in handle_heartbeat_response | |
| new_process.activate() | |
| File "/usr/lib64/cmf/agen |
| # -*- coding: utf-8 -*- | |
| require 'net/http' | |
| require 'json' | |
| def create_hosts | |
| res = Net::HTTP.start('10.211.55.100', 7180) do | http | | |
| req = Net::HTTP::Post.new("/api/v6/hosts") | |
| req.basic_auth('admin', 'admin') | |
| req.content_type = 'application/json' |
| sudo easy_install pip | |
| pip install fabric |
| + date | |
| + date | |
| Fri Sep 13 02:10:52 UTC 2013 | |
| ++ dirname /usr/lib64/cmf/service/hive/hive.sh | |
| + cloudera_config=/usr/lib64/cmf/service/hive | |
| ++ cd /usr/lib64/cmf/service/hive/../common | |
| ++ pwd | |
| + cloudera_config=/usr/lib64/cmf/service/common | |
| + . /usr/lib64/cmf/service/common/cloudera-config.sh | |
| ++ set -x |
| % ansible-playbook playbook/ec2.yml -vv [~] | |
| PLAY [Create a cluster] ******************************************************* | |
| TASK: [Launch instance] ******************************************************* | |
| <127.0.0.1> REMOTE_MODULE ec2 instance_type=m1.large image=ami-811a9b80 keypair=xxxx group=sample wait=yes region=ap-northeast-1 zone=ap-northeast-1a count=3 | |
| failed: [localhost] => {"failed": true, "parsed": false} | |
| invalid output was: Traceback (most recent call last): | |
| File "/home/ubuntu/.ansible/tmp/ansible-1378695316.35-71184160592438/ec2", line 1526, in <module> | |
| main() |
| # coding: utf-8 | |
| # 実はこの問題、デコードする文字列の先頭が | |
| # httpという文字にデコードされることに気づけば、 | |
| # プログラムの内容がわからなくても解けることになっている。 | |
| # ykkg => httpになるためには9文字左シフトしなければならない。 | |
| # このことに気づくと実は手動でデコードが可能となる。 | |
| KEY = 9 | |
| def trans_table |
hbstudy#45-serverspecが開いたServerテストの世界-
2013年6月21日(金) 19:00 - 21:30
株式会社ハートビーツ
ハロー会議室 新宿 C+D(東京都新宿区西新宿1丁目5-11 新宿三葉ビル6F)
| require 'tweetstream' | |
| require 'yaml' | |
| CONF = YAML::load(open("conf.yaml")) | |
| TweetStream.configure do |config| | |
| config.consumer_key = CONF["consumer_key"] | |
| config.consumer_secret = CONF["consumer_secret"] | |
| config.oauth_token = CONF["token"] | |
| config.oauth_token_secret = CONF["token_secret"] |
| # encoding:utf-8 | |
| require 'em-twitter' | |
| require 'json' | |
| option = { | |
| :path => "/1/statuses/filter.json", | |
| :params => {:track => "Ruby"}, | |
| :oauth => { | |
| :consumer_key => "コンシュマーKeyを入力", | |
| :consumer_secret => "コンシュマーの秘密鍵を入力", |
| 2 | |
| 5 | |
| 8 | |
| 4 | |
| 1 | |
| 1 | |
| 16 | |
| 1 | |
| 1 | |
| 2 |