How to upload data to local datastore?

2019-06-09 20:12发布

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 ?

1条回答
趁早两清
2楼-- · 2019-06-09 20:48

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.

查看更多
登录 后发表回答