2013-11-13 6 views
1

Я получаю 0 объекты, передаваемые при попытке создать bulkloader.yaml выполнив команду ниже:0 entites созданного при создании bulkloader.yaml

appengine create_bulkloader_config --filename=bulkloader.yaml --url=https://dev-dot-mysite.appengine.com/_ah/remote_api 

В моей app.yaml, я _ah настроен

- url: /_ah/remote_api 
    script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py 
    login: admin 
    secure: always 

- url: /.* 
    script: ... 

Я получаю следующее.

02:01 PM Creating bulkloader configuration. 
[INFO ] Logging to bulkloader-log-20131113.140100 
[INFO ] Throttling transfers: 
[INFO ] Bandwidth: 250000 bytes/second 
[INFO ] HTTP connections: 8/second 
[INFO ] Entities inserted/fetched/modified: 20/second 
[INFO ] Batch Size: 10 
Please enter login credentials for dev-dot-gmm-repros.googleplex.com 
Email: --- 
Password for ---: 
[INFO ] Opening database: bulkloader-progress-20131113.140100.sql3 
[INFO ] Opening database: bulkloader-results-20131113.140100.sql3 
[INFO ] Connecting to dev-dot-mysite.appengine.com/_ah/remote_api 
[INFO ] Downloading kinds: ['__Stat_PropertyType_PropertyName_Kind__'] 
[INFO ] Have 0 entities, 0 previously transferred 
[INFO ] 0 entities (8402 bytes) transferred in 101.2 seconds 

Когда я открываю bulkloader.yaml, я вижу:

# Autogenerated bulkloader.yaml file. 
# You must edit this file before using it. TODO: Remove this line when done. 
# At a minimum address the items marked with TODO: 
# * Fill in connector and connector_options 
# * Review the property_map. 
# - Ensure the 'external_name' matches the name of your CSV column, 
#  XML tag, etc. 
# - Check that __key__ property is what you want. Its value will become 
#  the key name on import, and on export the value will be the Key 
#  object. If you would like automatic key generation on import and 
#  omitting the key on export, you can remove the entire __key__ 
#  property from the property map. 

# If you have module(s) with your model classes, add them here. Also 
# change the kind properties to model_class. 
python_preamble: 
- import: base64 
- import: re 
- import: google.appengine.ext.bulkload.transform 
- import: google.appengine.ext.bulkload.bulkloader_wizard 
- import: google.appengine.ext.db 
- import: google.appengine.api.datastore 
- import: google.appengine.api.users 

transformers: 

Что может быть неправильно?

Спасибо!

ответ

0

Объекты Bulkloader создаются из «Статистика хранилища данных», которые генерируются периодически. Если вы посмотрите на консоль управления приложениями, для нее будет раздел. Если статистика не существует, то никакие объекты не будут сгенерированы.

На dev-сервере вы можете заставить статистику быть сгенерированными немедленно, но на производстве я не уверен, есть ли другой способ немедленно ее принудительно