在尝试创建运行以下命令的bulkloader.yaml时,我收到了0个实体:
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 :(得分:0)
Bulkloader实体是根据定期生成的“数据存储统计”创建的。如果您查看应用管理控制台,将会有一个部分。如果不存在统计信息,则不会生成任何实体。
在开发服务器上,您可以强制立即生成统计信息,但在生产时,我不确定是否有其他方法可以立即强制执行