zoukankan      html  css  js  c++  java
  • 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简约设计の艺术 进行同步发布的。

  • 相关阅读:
    shenduxuexizheshinian
    apk
    clion 激活码
    mongodb配置文件
    scrapy
    基于docker/虚拟机的esp32远程工作流
    Android JNI 之 环境安装
    使用lambda编写九九乘法表
    OpenFire 的安装和配置
    跟我学android-Notification
  • 原文地址:https://www.cnblogs.com/lanzhi/p/6468680.html
Copyright © 2011-2022 走看看