GAE for Java exception: no matching index found.

GAE logo
  GAE for Java 版现在还不是非常完善,至少目前 appcfg 还没有删除已建索引的命令。  查了一下邮件列表,早在去年就有人“GAE for 如何删除已建索引”。

  现在这个问题依旧存在,权宜之计是使用 Python SDK 的 appcfg vacuum_indexes 命令进行删除。

 

 

步骤:

To remove your indexes from your java app using the python SDK

1) download the python sdk (下载 Python SDK)
2) in your java project create a app.yaml file with the following
contents (在项目根目录创建 app.yaml 文件,内容如下)

application: YOURJAVA_APPID (改为你的应用标识)
version: 1
runtime: python
api_version: 1

handlers:
- url: .*
  script: main.py

3) from within your java app directory run (assuming appcfg.py is in
your path)  (在应用根目录下执行如下命令)
        appcfg.py vacuum_indexes .

4) follow the prompts to remove each index. (根据提示进行索引删除)

5) delete the app.yaml file (删除 app.yaml)

6) star the issue here http://code.google.com/p/googleappengine/issues/detail?id=1893 (在GAE 开发项目中关注该问题)

这样一来,基本是解决问题了。希望 GAE for Java 早日修复这个问题。

本文是使用 B3log Solo简约设计の艺术 进行同步发布的。

转载于:https://www.cnblogs.com/lanzhi/archive/2010/09/12/6468679.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值