cloud

How to serve files stored in cloud

情到浓时终转凉″ 提交于 2019-12-11 10:27:42
问题 I am managing a web application that uses Rackspace Cloud Hosting to store user images and files. Currently, when serving user pages, the real links to the files in the cloud are used. Potentially a user could view other users' files by guessing the file names. The file names are obfuscated containing about 30 alphanumeric digits, bit still this does not feel good. Is my concern valid, and if it is how can I best solve this? 回答1: I think it depends on the sensitivity of the information in the

Google Cloud Engine - Change External IP address from CA to SG

梦想与她 提交于 2019-12-11 07:39:55
问题 I have google cloud compute engine which is centOS 7. It was located in asia-southeast1 (SG). However, I checked the external IP it was on the Mountain View, CA. Is it possible to change the IP where it can be located to Singapore? Thanks, Edmhar 回答1: Sure. At this moment you need to: 1 Reserve a new IP in the wanted region. 2 Stop your VM. 3 Assign the new IP to your VM. 4 Re-Start your VM It is easier to do it through the console, but will take more time. If you decide to do it with gcloud.

Google Cloud SDK importError: no module named cloud.google

匆匆过客 提交于 2019-12-11 07:31:06
问题 I am new to Linux and trying to run a Python script that needs the following: 'from google.cloud import pubsub' I'm getting the following error: Traceback (most recent call last): File "file.py", line 2, in <module> from google.cloud import pubsub ImportError: No module named google.cloud How can I give access to this module? I have installed Google's Cloud SDK. I assume it has something to do with providing the path to this SDK "module" in some file? 回答1: If this only happened when you

Does Azure role need to clean up local resources before terminating?

只愿长相守 提交于 2019-12-11 07:27:36
问题 Suppose my Azure role is notified that it will be terminated soon and technically can clean up local resources after itself (temporary files for example). Should it do so? I'm not asking about whether someone will see my leftover temporary files - just how my role can be a polite good Azure citizen. Does it make sense for the role to clean up local resources or should it just leave everything as is? 回答1: Like Stuart said, there's no reason to do any local storage cleanup. You either leave it

Resizing Azure VM image automagically

依然范特西╮ 提交于 2019-12-11 06:31:26
问题 Is it possible to trigger a resize of an Azure VM automatically based on a set condition? For example, increase from a 'Medium' machine to 'Large' if the processor/RAM is over 90% usage out for 5 minutes? Then, obviously scale back down when usage reduces? Or... is it possible to schedule a resize between (peak) UK office hours then downscale off-peak? Just a thought... 回答1: Worth checking out the Auto Scaling Building Block from the patterns and practices team, part of the Enterprise Library

Send executable jar to hadoop cluster and run as “hadoop jar”

对着背影说爱祢 提交于 2019-12-11 06:14:01
问题 I commonly make a executable jar package with a main method and run by the commandline "hadoop jar Some.jar ClassWithMain input output" In this main method, Job and Configuration may be configured and Configuration class has a setter to specify mapper or reducer class like conf.setMapperClass(Mapper.class). However, In the case of submitting job remotely, I should set jar and Mapper or more classes to use hadoop client api. job.setJarByClass(HasMainMethod.class); job.setMapperClass(Mapper

Not able change the hostname with cloud-init script

孤者浪人 提交于 2019-12-11 04:12:21
问题 I have the following simple script which changes the hostname of Linux VM. #cloud-config hostname: my-host But when launched Amazon Linux AMI with the above script in user-data hostname didn't changed. Can anyone help me about this 来源: https://stackoverflow.com/questions/46253755/not-able-change-the-hostname-with-cloud-init-script

How to run code sequentially with parse, in Android?

痴心易碎 提交于 2019-12-11 04:03:27
问题 I am trying to get records from parse. My table in parse contains an array of pointers; I was facing difficulties to write parse query, so I first save array of pointers in an ArrayList , now I make a for loop to execute the query; for each loop iteration, I want to get records from parse and update local db then same as for next iterations. But this is creating some different problems. parse getInBackground is not working sequentially.... my outer for loop completely executes then parse

AWS Cloudformation : Passing environmental variables as parameters to lambda functions

我的未来我决定 提交于 2019-12-11 03:06:54
问题 I am creating a cloud formation for lambda . I want to have a generic lambda script that created lambda . I am having problem injecting "Environment" parameter from outside . I want to pass the key value pair object as parameter . Can some one tell me how to do it . I have highlighted it below { "Variables" : **{ String:String, ... }** } { "Type" : "AWS::Lambda::Function", "Properties" : { "Code" : Code, "DeadLetterConfig" : DeadLetterConfig, "Description" : String, "Environment" :

Is it possible to create an OpenStack image importing an *.ovf file with Glance?

时光毁灭记忆、已成空白 提交于 2019-12-11 02:23:24
问题 Is it possible to create an OpenStack image importing an ovf file with Glance? EDIT_1: I'm interested on creating images just providing its ovf file Thanks in advance 回答1: You can import an .ovf into Glance, but it does not currently have the ability to extract any data out of it. Future releases may have this functionality. 回答2: ovf seems to be supported. check out all the image / container types here: http://docs.openstack.org/developer/glance/formats.html 来源: https://stackoverflow.com