88250

          Java

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            82 隨筆 :: 0 文章 :: 5 評論 :: 0 Trackbacks

          GAE logo
            GAE for Java 版現(xiàn)在還不是非常完善,至少目前 appcfg 還沒有刪除已建索引的命令。  查了一下郵件列表,早在去年就有人“GAE for 如何刪除已建索引”。

            現(xiàn)在這個問題依舊存在,權宜之計是使用 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 (在項目根目錄創(chuàng)建 app.yaml 文件,內(nèi)容如下)

          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)  (在應用根目錄下執(zhí)行如下命令)
                  appcfg.py vacuum_indexes .

          4) follow the prompts to remove each index. (根據(jù)提示進行索引刪除)

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

          6) star the issue here http://code.google.com/p/googleappengine/issues/detail?id=1893 (在GAE 開發(fā)項目中關注該問題)

          這樣一來,基本是解決問題了。希望 GAE for Java 早日修復這個問題。

          本文是使用 B3log Solo簡約設計の藝術 進行同步發(fā)布的。

          posted on 2010-09-12 16:59 88250 閱讀(156) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導航:
           
          主站蜘蛛池模板: 伊宁市| 许昌县| 井研县| 佳木斯市| 中方县| 黄大仙区| 绥江县| 芜湖市| 剑阁县| 东辽县| 银川市| 东平县| 华宁县| 合阳县| 河津市| 象山县| 太仓市| 苏尼特右旗| 沅江市| 桑植县| 安阳县| 江源县| 临潭县| 拉孜县| 鹤峰县| 抚顺县| 合水县| 绿春县| 寿光市| 敦煌市| 永修县| 榆林市| 哈尔滨市| 旺苍县| 西城区| 桦川县| 蒙自县| 嘉义市| 读书| 桐乡市| 芦溪县|