How to upload bulk data to Google Servers using Google App Engine running on Java?

I canโ€™t understand how to upload bulk data to Google servers, bypassing the download limit of 10 MB and session timeout of 30 seconds. I want to create an application that takes my standard SQL data and pushes it to Google servers.

I may seem naive, but your help is most valuable to my project.

+3
source share
2 answers

There is currently no Java loader built-in, so you need to use Python. The process is as follows:

Python SDK . app.yaml, :

application: yourappid
version: bulkload
runtime: python
api_version: 1

handlers:
- url: /remote_api
  script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
  login: admin

"appcfg.py update yourdir" SDK Python . appcfg , .

, , Bulkloader Python. . () Python, . , , , "-s bulkload.latest.yourapp.appspot.com" , :

appcfg.py upload_data --config_file=album_loader.py --filename=album_data.csv --kind=Album -s bulkload.latest.yourapp.appspot.com <app-directory>

, SQL, CSV, .

+8

. , .

-

  • , (, XML, JSON)

    () Blobstore

  • JAXB/JSoup / GSON
  • , Datastore/

  • , Java/++/PHP script, XML/JSON
  • script (linux) (windows) cURL.

, , .

0

Source: https://habr.com/ru/post/1718274/


All Articles