使用批量加载器上传数据时出现 BadRequestError

发布于 2024-12-09 04:57:49 字数 2545 浏览 3 评论 0原文

您好,我已经在 Google 应用程序引擎中创建了示例 Greeting 应用程序。

现在我正在尝试使用批量加载器上传数据。

但它给出了 BadRequestError。这是代码:

D:\Study\M.Tech\Summer\Research\My Work\Query Transformation\Experiment\Tools\Bu
lkloader\bulkloader test>appcfg.py create_bulkloader_config --url=http://bulkex.
appspot.com/remote_api --application=bulkex --filename=config.yml

Creating bulkloader configuration.
[INFO    ] Logging to bulkloader-log-20111008.175810
[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-20111008.175810.sql3
[INFO    ] Opening database: bulkloader-results-20111008.175810.sql3
[INFO    ] Connecting to bulkex.appspot.com/remote_api
Please enter login credentials for bulkex.appspot.com
Email: [email protected]
Password for [email protected]:
[INFO    ] Downloading kinds: ['__Stat_PropertyType_PropertyName_Kind__']
[ERROR   ] [WorkerThread-3] WorkerThread:
Traceback (most recent call last):

File "C:\Program Files\Google\google_appengine\google\appengine\tools\adaptive
_thread_pool.py", line 176, in WorkOnItems
status, instruction = item.PerformWork(self.__thread_pool)

File "C:\Program Files\Google\google_appengine\google\appengine\tools \bulkloader.py",line 764, in PerformWork transfer_time = self._TransferItem(thread_pool)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools\bulkload
er.py", line 1170, in _TransferItem
    self, retry_parallel=self.first)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools\bulkload
er.py", line 1471, in GetEntities
    results = self._QueryForPbs(query)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools\bulkload
er.py", line 1442, in _QueryForPbs
    raise datastore._ToDatastoreError(e)
BadRequestError: app s~bulkex cannot access app bulkex's data
[INFO    ] [WorkerThread-0] Backing off due to errors: 1.0 seconds
[INFO    ] An error occurred. Shutting down...
[ERROR   ] Error in WorkerThread-3: app s~bulkex cannot access app bulkex's data


[INFO    ] Have 0 entities, 0 previously transferred
[INFO    ] 0 entities (6466 bytes) transferred in 25.6 seconds

Hello I have created sample Greeting application in Google app engine.

Now I am trying to upload data using bulk loader.

But its giving BadRequestError.This is the code for that:

D:\Study\M.Tech\Summer\Research\My Work\Query Transformation\Experiment\Tools\Bu
lkloader\bulkloader test>appcfg.py create_bulkloader_config --url=http://bulkex.
appspot.com/remote_api --application=bulkex --filename=config.yml

Creating bulkloader configuration.
[INFO    ] Logging to bulkloader-log-20111008.175810
[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-20111008.175810.sql3
[INFO    ] Opening database: bulkloader-results-20111008.175810.sql3
[INFO    ] Connecting to bulkex.appspot.com/remote_api
Please enter login credentials for bulkex.appspot.com
Email: [email protected]
Password for [email protected]:
[INFO    ] Downloading kinds: ['__Stat_PropertyType_PropertyName_Kind__']
[ERROR   ] [WorkerThread-3] WorkerThread:
Traceback (most recent call last):

File "C:\Program Files\Google\google_appengine\google\appengine\tools\adaptive
_thread_pool.py", line 176, in WorkOnItems
status, instruction = item.PerformWork(self.__thread_pool)

File "C:\Program Files\Google\google_appengine\google\appengine\tools \bulkloader.py",line 764, in PerformWork transfer_time = self._TransferItem(thread_pool)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools\bulkload
er.py", line 1170, in _TransferItem
    self, retry_parallel=self.first)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools\bulkload
er.py", line 1471, in GetEntities
    results = self._QueryForPbs(query)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools\bulkload
er.py", line 1442, in _QueryForPbs
    raise datastore._ToDatastoreError(e)
BadRequestError: app s~bulkex cannot access app bulkex's data
[INFO    ] [WorkerThread-0] Backing off due to errors: 1.0 seconds
[INFO    ] An error occurred. Shutting down...
[ERROR   ] Error in WorkerThread-3: app s~bulkex cannot access app bulkex's data


[INFO    ] Have 0 entities, 0 previously transferred
[INFO    ] 0 entities (6466 bytes) transferred in 25.6 seconds

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

墨落画卷 2024-12-16 04:57:49

我也有同样的问题。我从语句和执行的代码中删除了 --application=APPID 参数,并使用数据存储中的所有类型构建了 config.yml 文件!

I was having the same issue. I removed the --application=APPID parameter from the statement and the code executed and built out the config.yml file with all my Kinds from the Datastore!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文