rhefner1 / c3po

C-3PO GroupMe Bot
Apache License 2.0
0 stars 0 forks source link

Analytics mapreduce #145

Open rhefner1 opened 8 years ago

rhefner1 commented 8 years ago

Depends on #143

rhefner1 commented 8 years ago

Here's some debugging code used:

# Start analysis
from c3po.db.settings import Settings
from analytics import analysis_engine
from google.appengine.ext import ndb

s = ndb.Key(urlsafe="agxkZXZ-YzNwby1ib3RyFQsSCFNldHRpbmdzGICAgICAgIAKDA")

analysis_engine.start_analysis(s)

----
# View blobstore key
from google.appengine.ext import blobstore

path = "/app_default_bucket/word_count-reduce/1572852440726905534EF/output-0"
blobstore_filename = "/gs%s" % path
blobstore_gs_key = blobstore.create_gs_key(blobstore_filename)
url_path = "/blobstore/" + blobstore_gs_key
print url_path

----

# Start command
(python ~/dropbox/apps/google_appengine/dev_appserver.py app.yaml analytics_app.yaml history_upload_app.yaml > /dev/tty) 2>&1 | tee ~/Downloads/logs.txt