google-api-java-client

OAuth2 and Google API: Access token expiration time?

邮差的信 提交于 2019-11-26 08:49:01
问题 We have a standalone Java application (see \'Installed application\': https://developers.google.com/accounts/docs/OAuth2) which runs periodically and uses google API (updates some informations from customer databases/ldap/...). To access Google APIs we store username and password in configuration file, which is a security risk and customer does not like that. So we would like to use OAuth2 long-living access token instead. what`s default expiration time for Google OAuth2 access tokens ? As we

Migrating 50TB data from local Hadoop cluster to Google Cloud Storage

孤者浪人 提交于 2019-11-26 08:31:19
问题 I am trying to migrate existing data (JSON) in my Hadoop cluster to Google Cloud Storage. I have explored GSUtil and it seems that it is the recommended option to move big data sets to GCS. It seems that it can handle huge datasets. It seems though that GSUtil can only move data from Local machine to GCS or S3<->GCS, however cannot move data from local Hadoop cluster. What is a recommended way of moving data from local Hadoop cluster to GCS ? In case of GSUtil, can it directly move data from

Exception using HttpRequest.execute(): Invalid use of SingleClientConnManager: connection still allocated

守給你的承諾、 提交于 2019-11-26 06:05:35
问题 I\'m using google-api-client-java 1.2.1-alpha to execute a POST request, and am getting the following stacktrace when I execute() the HttpRequest. It happens immediately after I catch and ignore a 403 error from a previous POST to the same URL, and re-used the transport for the subsequent request. (It\'s in a loop inserting multiple entries to the same ATOM feed). Is there something I should be doing to \'clean up\' after a 403? Exception in thread \"main\" java.lang.IllegalStateException: