google-cloud-sdk

FetchOptions withLimit() does not reduce query execution time (Google App Engine)

谁说胖子不能爱 提交于 2019-12-02 08:25:12
Problem Running a datastore query with or without FetchOptions.Builder.withLimit(100) takes the same execution time! Why is that? Isn't the limit method intended to reduce the time to retrieve results!? Test setup I am locally testing the execution time of some datastore queries with Google's App Engine. I am using the Google Cloud SDK Standard Environment with the App Engine SDK 1.9.59. For the test, I created an example entity with 5 indexed properties and 5 unindexed properties. I filled the datastore with 50.000 entries of a test entity. I run the following method to retrieve 100 of this

Mac gcloud install ImportError: No module named __future__

风格不统一 提交于 2019-12-02 07:07:24
When installing gcloud for mac I get this error when I run the install.sh command according to docs here : Traceback (most recent call last): File "/path_to_unzipped_file/google-cloud-sdk/bin/bootstrapping/install.py", line 8, in <module> from __future__ import absolute_import I poked through and echoed out some stuff in the install shell script. It is setting the environment variables correctly (pointing to my default python installation, pointing to the correct location of the gcloud SDK). If I just enter the python interpreter (using the same default python that the install script points to

Error running endpointscfg.py get_swagger_spec

匆匆过客 提交于 2019-12-02 02:53:53
I am trying to build a project using Google Cloud Endpoints, following this guide: Quickstart for Cloud Endpoints Frameworks on App Engine . I am stuck at the step of generating the OpenAPI configuration file, where I need to run this command: Attempt One $ lib/endpoints/endpointscfg.py get_swagger_spec main.EchoApi --hostname your-service.appspot.com I get this error: -bash: lib/endpoints/endpointscfg.py: Permission denied Attempt Two I have tried the same command with sudo , which returned this error: sudo: lib/endpoints/endpointscfg.py: command not found Attempt Three I have tried to cd lib

How to authenticate google cloud SDK on a docker Ubuntu image?

半城伤御伤魂 提交于 2019-12-01 06:06:10
I am a bit confused about how I can authenticate the gcloud sdk on a docker container. Right now, my docker file includes the following: #Install the google SDK RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > /tmp/google-cloud-sdk.tar.gz RUN mkdir -p /usr/local/gcloud RUN tar -C /usr/local/gcloud -xvf /tmp/google-cloud-sdk.tar.gz RUN /usr/local/gcloud/google-cloud-sdk/install.sh RUN /usr/local/gcloud/google-cloud-sdk/bin/gcloud init However, I am confused how I would authenticate? When I run gcloud auth application-default login on my machine, it opens a new tab in

How to authenticate google cloud SDK on a docker Ubuntu image?

▼魔方 西西 提交于 2019-12-01 03:51:17
问题 I am a bit confused about how I can authenticate the gcloud sdk on a docker container. Right now, my docker file includes the following: #Install the google SDK RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz > /tmp/google-cloud-sdk.tar.gz RUN mkdir -p /usr/local/gcloud RUN tar -C /usr/local/gcloud -xvf /tmp/google-cloud-sdk.tar.gz RUN /usr/local/gcloud/google-cloud-sdk/install.sh RUN /usr/local/gcloud/google-cloud-sdk/bin/gcloud init However, I am confused how I

“bq” command line tool throws CERTIFICATE_VERIFY_FAILED

心已入冬 提交于 2019-11-30 15:03:29
Update (2019-02-07): the issue has now been fixed, so if you're still running into this, try gcloud components update . At some point during the past few monthts, my bq tool stopped working. Even a simple thing shows this error: $ bq show BigQuery error in show operation: Cannot contact server. Please try again. Traceback: Traceback (most recent call last): File "/opt/google-cloud-sdk/platform/bq/bigquery_client.py", line 685, in BuildApiClient response_metadata, discovery_document = http.request(discovery_url) File "/opt/google-cloud-sdk/platform/bq/third_party/oauth2client_4_0/transport.py",

google api client python import taskqueue

蓝咒 提交于 2019-11-29 16:02:14
python version 2.7.9 installed version 1.5.1 pip install --upgrade google-api-python-client from here trying to import task queue like so from google.appengine.api import taskqueue getting ImportError: No module named google.appengine.api 1.5.1 is the latest version, and I can't seem to find any code reference to task queue in the pip code here Dan Cornilescu The Google Cloud SDK - Release Notes tracks the version of the GAE components, search for the App Engine components updated to pattern. The version of the most recent GAE components in the current Cloud SDK version (120.0.0) is 1.9.38

Is it possible to use the Google Cloud Shell via a ssh?

本小妞迷上赌 提交于 2019-11-28 18:57:13
问题 Is it possible to connect to the Google Cloud Shell instance via the ssh? Maybe somehow with gcloud? So I can use it with my favorite terminal (iTerm in particular) and not with the Web-based shell. Answer: yes it is now been possible: https://cloud.google.com/blog/products/gcp/introducing-the-ability-to-connect-to-cloud-shell-from-any-terminal 回答1: Yes . From the gcloud CLI, run gcloud alpha cloud-shell ssh . This will establish an interactive SSH session with Cloud Shell. Note, this command

Can I automate Google Cloud SDK gcloud init - interactive command

狂风中的少年 提交于 2019-11-28 17:04:34
Documentation on Google Cloud SDK https://cloud.google.com/sdk/docs/ directs one to run gcloud init after installing it. Is there a way to automate this step given that gcloud init is an interactive command? cherba One does not need to run gcloud init . Main goal is to make sure credentials are configured and perhaps the project property is set. If you have service-account credentials, gcloud can be configured and ready to go via the following: gcloud auth activate-service-account --key-file=credential_key.json gcloud config set project my-project For completeness gcloud init essentially runs

google api client python import taskqueue

最后都变了- 提交于 2019-11-28 10:09:30
问题 python version 2.7.9 installed version 1.5.1 pip install --upgrade google-api-python-client from here trying to import task queue like so from google.appengine.api import taskqueue getting ImportError: No module named google.appengine.api 1.5.1 is the latest version, and I can't seem to find any code reference to task queue in the pip code here 回答1: The Google Cloud SDK - Release Notes tracks the version of the GAE components, search for the App Engine components updated to pattern. The