【发布时间】:2010-11-14 14:28:01
【问题描述】:
我根据http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/ 安装了一个带有 remote_api 的 Java appengine 应用程序
<servlet>
<servlet-name>RemoteApi</servlet-name>
<servlet-class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RemoteApi</servlet-name>
<url-pattern>/remote_api</url-pattern>
</servlet-mapping>
当我使用网络浏览器访问 myapp.appspot.com/remote_api 时,我看到消息“此请求不包含必要的标头”,我理解这是预期的。
但是当我从命令行运行appcfg.py create_bulkloader_config --url=http://APPID.appspot.com/remote_api --application=APPID --filename=config.yml(使用正确的APPID)时,我得到了
C:\ag\dev>appcfg.py create_bulkloader_config --url=https://correctid.appspot.c
om/remote_api --application=correctid --filename=config.yml
Creating bulkloader configuration.
[INFO ] Logging to bulkloader-log-20101114.081901
[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-20101114.081901.sql3
[INFO ] Opening database: bulkloader-results-20101114.081901.sql3
[INFO ] Connecting to correctid.appspot.com/remote_api
[INFO ] Authentication Failed
C:\ag\dev>
我已经尝试过 no_cookies 选项,但没有帮助。我也尝试使用-e correctadminmail@gmail.com。这些都没有改变我的输出。
如何指定我的身份验证参数?
【问题讨论】: