尝试创建运行以下命令的 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:
可能出了什么问题?
谢谢!