Posts

Showing posts with the label google-cloud-platform

Exception Resource Temporarily unavailable while firing 50 requests for checking snapshot exits or not

Image
Clash Royale CLAN TAG #URR8PPP Exception Resource Temporarily unavailable while firing 50 requests for checking snapshot exits or not I have created snapshots of 50 disks because gcloud does not allow snapshots with similar name. Before firing snapshot create I was checking if snapshot exists or not in gcp and fired 50 requests simultaneously and almost 5-6 requests failed with below exception. snapshots().get(project=self.project, snapshot=name).execute() exception : File "/tmp/cloudpoint/libs/gcp/lib/oauth2client/_helpers.py", line 133, in positional_wrapper return wrapped(*args, **kwargs) File "/tmp/cloudpoint/libs/gcp/lib/googleapiclient/http.py", line 837, in execute method=str(self.method), body=self.body, headers=self.headers) File "/tmp/cloudpoint/libs/gcp/lib/googleapiclient/http.py", line 163, in _retry_request resp, content = http.request(uri, method, *args, **kwargs) File "/tmp/cloudpoint/libs/gcp/lib/oauth2client/transport.py"...

Connecting Column Based Time Partitioned BigQuery Table In Data Studio

Image
Clash Royale CLAN TAG #URR8PPP Connecting Column Based Time Partitioned BigQuery Table In Data Studio We have a real-time streaming column based time partitioned table in the big-query (with no _partitiontime pseudo-column) from which we wanted to build reports using Google data studio. _partitiontime When selecting the time-partitioned tables in the big query connector, it shows the following: When Use _PARTITIONTIME as time dimension is not checked: Use _PARTITIONTIME as time dimension The time-based query generated by data studio does a full-scan on big query table increasing our query costs. The same query auto-generated from data studio but using partitioning field manually in the WebUI as follows: In the big query data connector, when Use _PARTITIONTIME as time dimension is checked Use _PARTITIONTIME as time dimension It returns the following error for building charts: As of now, the reports are built using custom queries & views for limited timeframes. I understand the da...

Cloud Natural Language API Python script error (Client object has no attribute create_rows)

Image
Clash Royale CLAN TAG #URR8PPP Cloud Natural Language API Python script error (Client object has no attribute create_rows) I was trying to create a script that feeds articles through the classification tool of the natural language api and I found a tutorial that does exatcly that. I was following this simple tutorial to get an intro into google cloud and the natural language api. The end result is supposed to be a script that sends a bunch of news articles from the google cloud storage to the natural language api to classify the articles and the save the whole thing into a table created in bigquery. I was following the example fine, but when running the final script I get the following error: Traceback (most recent call last): File "classify-text.py", line 39, in <module> errors = bq_client.create_rows(table, rows_for_bq) AttributeError: 'Client' object has no attribute 'create_rows' The full script is: from google.cloud import storage, language, ...

How can allow access website from internet with vps win server 2012?

Image
Clash Royale CLAN TAG #URR8PPP How can allow access website from internet with vps win server 2012? I using a VPS of google: Win server 2012. i using web server: Apache 2.4 and PHP 7.1 Current i can access website from local with private ip http://10.142.0.2/index.html Now, i want pubic website: I check on Firewalls of VPS but it still can not access: Firewalls Allow HTTP traffic Allow HTTPS traffic How can allow access website from internet with public ip? http://35.227.108.81/index.html Thank you. Have you checked the firewall of your VPS server? I think you must open port for Apache. – VinhCC 10 hours ago can you give a link help setting? – Bibo 10 hours ago ...

Restrict Login Access to GCP Console for Enterprise

Image
Clash Royale CLAN TAG #URR8PPP Restrict Login Access to GCP Console for Enterprise Is there a way to prevent a user from logging into the GCP console from outside a specific network? I cannot seem to find anything that suggests this can or cannot be done. If an admin picks a bad password, has his/her credentials phished, etc. someone could login and wreak havoc. 1 Answer 1 Unfortunately this is not possible, because Google Cloud Platform is accessible anywhere around the world. All admins should follow best practice guidelines such as the following US-CERT best password practices article. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Google Cloud: matrix multiplication with Bigquery or some other service?

Image
Clash Royale CLAN TAG #URR8PPP Google Cloud: matrix multiplication with Bigquery or some other service? I am using Google Analytics and processing the data with Bigquery, I need to do a matrix multiplication. What is the most feasible way of implementing matrix multiplication in Google Cloud? Can it be done directly in Bigquery? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Mobile App to call the AutoML Vision model prediction

Image
Clash Royale CLAN TAG #URR8PPP Mobile App to call the AutoML Vision model prediction Look like I am the first poster here. I am an app developer on Android/iOS and have been waiting to see Cloud AutoML Vision for public release. I just play around the console and build a model with 2 labels. However, the implementation require Rest API or Python , both of which I am not familiar with. How do I make use of of built model? Any other GCP product do I need to use? how or where do I execute the REST API? request.json { "payload": { "image": { "imageBytes": "YOUR_IMAGE_BYTE" }, } } Execute the request curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $(gcloud auth application-default print-access-token)" https://automl.googleapis.com/v1beta1/projects/drughk-9747d/locations/us-central1/models/ICN6566958205491349320:predict -d @request.json I noticed Firebase ML kit where you can upload a...