如何将数据上传到本地数据存储? [英] How to upload data to local datastore?

查看:144
本文介绍了如何将数据上传到本地数据存储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用远程API更新实时数据存储,但是对于本地数据存储有没有类似的地方?我的数据是CSV格式的。



当我尝试使用下面的代码进行本地连接时

 字符串用户名=test; 
String password =test;
RemoteApiOptions options = new RemoteApiOptions()。server(localhost,8888).credentials(username,password);
RemoteApiInstaller安装程序=新的RemoteApiInstaller();
installer.install(options);

我得到一个异常:



异常在线程mainjava.net.UnknownHostException:http

抛出异常:


installer.install(选项);

本地服务器正在运行,我能正确连接吗?我是否需要单独启动本地remote_api服务器?

解决方案

我终于通过了大量搜索工作。开发人员的网址/密码为XXXX / XXXX



请从这里取得: https://groups.google.com/forum/?fromgroups=#!topic/google-appengine-java/1cQWn0UEoMc



我还没有能够在谷歌应用程序引擎文档的任何地方找到它。


I can update the live datastore using the remote API but is there something similar for the local datastore ? My data is in CSV format.

When I try to connect locally using below code

String username = "test";
String password = "test";
    RemoteApiOptions options = new RemoteApiOptions().server("localhost", 8888).credentials(username, password);
RemoteApiInstaller installer = new RemoteApiInstaller();
installer.install(options);

I get an exception :

Exception in thread "main" java.net.UnknownHostException: http

The exception is thrown at line :

installer.install(options);

The local server is running, am I connecting correctly ? Do I need to start the local remote_api server separately ?

解决方案

I finally got this to work through alot of searching. The dev url/password is XXXX/XXXX

Taken from here : https://groups.google.com/forum/?fromgroups=#!topic/google-appengine-java/1cQWn0UEoMc

I havent been able to find this specified anywhere in the google app engine documentation.

这篇关于如何将数据上传到本地数据存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆