如何将本地数据存储区下载到csv文件中?

时间:2014-06-26 15:03:06

标签: google-app-engine csv google-cloud-datastore

我想将本地灯具数据下载到csv中,以确保其安全。

我在6个月前尝试过something similar,唯一不同的是我从已部署的appengine项目下载数据,而不是从本地数据存储区下载。

但是,如何从本地数据存储区下载它?

appcfg.py download_data --url=http://localhost:8080/_ah/remote_api/ --filename=data.csv --email=x@w.eu --application="dev~myApp"

我收到以下错误消息:

03:37 PM Downloading data records.
[INFO    ] Logging to bulkloader-log-20140626.153708
[INFO    ] Throttling transfers:
[INFO    ] Bandwidth: 250000 bytes/second
[INFO    ] HTTP connections: 8/second
[INFO    ] Entities inserted/fetched/modified: 20/second
[INFO    ] Batch Size: 10
[INFO    ] Opening database: bulkloader-progress-20140626.153708.sql3
[INFO    ] Opening database: bulkloader-results-20140626.153708.sql3
Password for x@w.eu:
[INFO    ] Connecting to localhost:8080/_ah/remote_api/
[ERROR   ] Unable to download kind stats for all-kinds download.
[ERROR   ] Kind stats are generated periodically by the appserver
[ERROR   ] Kind stats are not available on dev_appserver.

知道我做错了吗?

1 个答案:

答案 0 :(得分:1)

  1. 转到开发管理控制台(可能是“localhost:8000”)
  2. 转到数据存储统计
  3. 点击生成统计信息
  4. 发生此错误是因为dev app引擎不会自动生成数据存储区统计信息。相反,您必须执行上述步骤以手动生成这些统计信息。