1

尝试创建运行以下命令的 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:

可能出了什么问题?

谢谢!

4

1 回答 1

0

Bulkloader 实体是从定期生成的“数据存储统计信息”创建的。如果您查看您的应用程序管理控制台,将会有一个部分。如果不存在统计信息,则不会生成实体。

在开发服务器上,您可以强制立即生成统计信息,但在生产中,我不确定是否有另一种方法可以立即强制它

于 2014-01-19T14:26:37.860 回答