google-compute-engine

Installing Java 8 on a Google Compute Engine instance with apt-get

老子叫甜甜 提交于 2019-12-22 05:21:15
问题 I ran this command with apt-get but have received this error. I am not too sure how to resolve this. Is this come core mistake I have made using apt-get, asking for something impossible? Does anyone understand the root cause that prevents it from installing? sudo apt-get install openjdk-8-jdk Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are

Installing Java 8 on a Google Compute Engine instance with apt-get

痴心易碎 提交于 2019-12-22 05:21:14
问题 I ran this command with apt-get but have received this error. I am not too sure how to resolve this. Is this come core mistake I have made using apt-get, asking for something impossible? Does anyone understand the root cause that prevents it from installing? sudo apt-get install openjdk-8-jdk Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are

How can I hibernate a Google Compute Engine server?

本小妞迷上赌 提交于 2019-12-22 05:07:06
问题 I'd like to use a GCE server and VNC to run some desktop programs I've written. However, I'd like to not have the GCE server running all the time (to save money) and I'd like to have the setup of my VNC desktop persisted (to save time). It seems like the easiest way to accomplish this is to somehow hibernate the GCE instance. Is there a way to do this either from a script or from the command line? 回答1: The only currently supported technique that I'm aware of would be to use a bootable

Using Google Cloud Dataflow how do I run with proper credentials on a GCE Compute instance?

有些话、适合烂在心里 提交于 2019-12-22 00:36:00
问题 I'm new to Google Cloud Dataflow, as is probably obvious from my questions below. I've got a dataflow application written and can get it to run without issue using my personal credentials both locally and on a GCE instance. However, I can't seem to crack the proper steps to get it to run using the compute engine instance's service credentials or service credentials I've created using the API & AUTH section of the console. I always get a 401 not authorized error when I run. Here's what I've

How to port forward Google Compute Engine Instance?

天大地大妈咪最大 提交于 2019-12-22 00:26:09
问题 I've set up a VPS using the Google Compute Engine platform. In the instance, I've established a MongoDB database that's being locally hosted at the default port 21017. I've also set up a REST API based NodeJS server with express listening in on connections at port 8080. Right now, I can only access the NodeJS site internally. How do I expose the VPS port 8080 to the external ip address so that I can access the API anywhere? I tried following along an answer to this post: Enable Access Google

OpenMPI: Permission denied error while trying to use mpirun

我怕爱的太早我们不能终老 提交于 2019-12-21 20:29:41
问题 I would like to display "hello world" via MPI on different Google cloud compute instances with the help of the following code: from mpi4py import MPI size = MPI.COMM_WORLD.Get_size() rank = MPI.COMM_WORLD.Get_rank() name = MPI.Get_processor_name() print("Hello, World! I am process/rank {} of {} on {}.\n".format(rank, size, name)) . The problem is, that even so I can ssh-connect across all of these instances without problem, I get a permission denied error message when I try to run my script.

OpenMPI: Permission denied error while trying to use mpirun

北慕城南 提交于 2019-12-21 20:29:26
问题 I would like to display "hello world" via MPI on different Google cloud compute instances with the help of the following code: from mpi4py import MPI size = MPI.COMM_WORLD.Get_size() rank = MPI.COMM_WORLD.Get_rank() name = MPI.Get_processor_name() print("Hello, World! I am process/rank {} of {} on {}.\n".format(rank, size, name)) . The problem is, that even so I can ssh-connect across all of these instances without problem, I get a permission denied error message when I try to run my script.

Using memcache inside Google Compute Engine with PHP

陌路散爱 提交于 2019-12-21 12:34:20
问题 I am trying to test using App Engine's Memcache with our servers running under Compute Engine. Currently we just have a couple VM instances which run Memcache where we call: $memcache->addServer('memcache', 11211); to reference each server. Looking at Google's sample code, it doesn't mention anything about what server we should call. I tried to test the below code from their document but it errors on creating the object. I understand that I might have to include a class, but it didn't mention

Why do my google cloud compute instances always unexpectedly restart?

人走茶凉 提交于 2019-12-21 10:52:45
问题 Help! Help! Help! It is really annoying and I almost cannot bear it anymore! I'm using google cloud compute engine instances but they often unexpectedly restart without any notification in advance. The restart of instances seems to happen randomly and I have no idea what's going wrong there! I'm pretty sure that the instances are been occupied (usage of CPUs > 50% and all GPUs are in use) when restart happens. Could anyone please tell me how to solve this problem? Thanks in advance! 回答1: The

Why do my google cloud compute instances always unexpectedly restart?

穿精又带淫゛_ 提交于 2019-12-21 10:52:17
问题 Help! Help! Help! It is really annoying and I almost cannot bear it anymore! I'm using google cloud compute engine instances but they often unexpectedly restart without any notification in advance. The restart of instances seems to happen randomly and I have no idea what's going wrong there! I'm pretty sure that the instances are been occupied (usage of CPUs > 50% and all GPUs are in use) when restart happens. Could anyone please tell me how to solve this problem? Thanks in advance! 回答1: The