Questions tagged [jclouds]

Apache jclouds® is an open source multi-cloud toolkit for the Java platform that gives you the freedom to create applications that are portable across clouds while giving you full control to use cloud-specific features.

Apache jclouds® is an open source multi-cloud toolkit for the Java platform that gives you the freedom to create applications that are portable across clouds while giving you full control to use cloud-specific features.

See http://jclouds.apache.org/

269 questions
53
votes
8 answers

How do I update metadata for an existing Amazon S3 file?

I need to update the cache control header in all AmazonS3's Cloud Files. However, I can't figure out how I do that using the jclouds API. I'm using apache jclouds plugin. And I got two related answers: jclouds : how do I update metadata for an…
Priyanshu Chauhan
  • 5,297
  • 5
  • 35
  • 34
6
votes
0 answers

Hibernate search, infinispan, jclouds and Amazon S3 - IllegalArgumentException: bucketId: A96137216.bz2 (expected: integer)

I'm trying to use Hibernate Search to use a Lucene Index hosted on Amazon S3 but I'm getting the following exception: Exception in thread "LuceneIndexesData-CloudCacheStore-0" java.lang.IllegalArgumentException: bucketId: A96137216.bz2 (expected:…
lance-java
  • 25,497
  • 4
  • 59
  • 101
5
votes
2 answers

Java Frameworks in the Cloud

So I'm trying to finally grasp how cloud-based, enterprise applications work, and what their architectures typically look like. Say I use a cloud provider like Amazon. I assume (please correct me if I'm wrong) that I would be paying for 1+ virtual…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
5
votes
6 answers

Apache jclouds java.lang.NoSuchMethodError when using Rackspace in a Spring Boot application

I'm trying to integrate Apache Jclouds into a Spring Boot application I'm working on so that I can upload files to Rackspace Cloud Files(UK). I've created a class which I'm creating as a Bean; import com.google.common.io.ByteSource; import…
SheppardDigital
  • 3,165
  • 8
  • 44
  • 74
5
votes
1 answer

Error creating JClouds SwiftApi: Provider org.jclouds.openstack.keystone.v2_0.KeystoneApiMetadata could not be instantiated

I have some code for connecting to a JClouds swift storage container which works fine in its own test area, but once I integrate into my project, I get an error: Exception in thread "main" java.util.ServiceConfigurationError: …
Oj5000
  • 51
  • 3
5
votes
2 answers

Rackspace Cloud Files (using jclouds) - how to get container location

I use jclouds as an api for Rackspace Cloud Files. Api allows me to create containers in different locations using BlobStore.createContainerInLocation Now, having container that is already exists, how do I get it's location?
Eugene Loy
  • 12,224
  • 8
  • 53
  • 79
4
votes
3 answers

jclouds with GCE Cannot connect: -----END RSA PRIVATE KEY----- doesn't contain % line [-----END ]

Trying to use google-compute-engine provider for jclouds there appears to be a problem when putting the pem extracted from the .p12 into the credential section of my jenkins config.xml Followed these instruction…
Aric
  • 63
  • 4
4
votes
3 answers

Find all the attached volumes for an EC2 instance

I'm using the below code to get all the available volumes under EC2. But I can't find any Ec2 api to get already attached volumes with an instance. Please let me know how to get all attached volumes using instanceId. EC2Api ec2Api =…
bagui
  • 844
  • 4
  • 18
  • 37
4
votes
3 answers

Java: how to repair a hung thread?

Please note: I'm tagging this with JClouds because if you read the entire question and comments that ensue, I believe this to be either a bug with JClouds or a misuse of that library. I have an executable JAR that runs, works for a while, finishes…
DirtyMikeAndTheBoys
  • 1,077
  • 3
  • 15
  • 29
4
votes
1 answer

Creating an aws-ec2 instance using jclouds API

I am trying to create an aws-ec2 instance using jclouds. While executing the code I am getting the exception below "java.util.NoSuchElementException: key [aws-ec2] not in the list of providers or apis: {}". How can I resolve this exception?
supraja
  • 85
  • 1
  • 7
4
votes
2 answers

jclouds : how do I update metadata for an existing blob?

I've got a few thousand blobs at Rackspace's Cloud Files which I need to update content type for. However, I can't figure out how I do that using the jclouds API. How can I go about to update metadata on an existing blob?
sbrattla
  • 5,274
  • 3
  • 39
  • 63
4
votes
1 answer

EC2 request limit exceeded issue

I'm running daily automated tests that start (with JClouds) many AWS EC2 machines. The problems is that sometimes a machine fails to starts due to a "Request limit exceeded" error. From the stack trace below I think I have an action that failed 5…
Biranir
  • 91
  • 1
  • 5
4
votes
1 answer

Get ec2 dns name via pallet

I get back a list of ec2 nodes using pallet. I want to get the dns names of these. I see that in jclouds there is a dnsName method, but I see no way to access this for use with pallet in clojure. Is this possible? Details I'm trying to make a…
Gordon Seidoh Worley
  • 7,839
  • 6
  • 45
  • 82
3
votes
1 answer

Java - java.lang.NoClassDefFoundError: com/google/inject/internal/util/$Preconditions

I'm working on an extension for druid that uses jclouds for Rackspace Cloud Files and I encountered a problem with Google guice and I'm not very confident with Java. I already saw this question, but it doesn't seem that there's a conflict in guice…
se7entyse7en
  • 4,310
  • 7
  • 33
  • 50
3
votes
2 answers

Starting and stopping instances on google compute engine

I want to start/resume and stop/suspend instances on google compute engine, but it gives "java.lang.UnsupportedOperationException".Is there any alternative way to perform these operations? public class Example { public static void…
1
2 3
17 18