I guess
overrides.setProperty(PROPERTY_S3_SERVICE_PATH, "/services/Walrus");
is not correct.
Without it, it will throw exception.
Ah, OK. To confirm: are we calling a Walrus installation here?
Also, in your boto code snippet:
def connect(self):
self.connection = boto.connect_s3 (
I attach log here.
Looking at the logs, I don't think the
overrides.setProperty(PROPERTY_S3_SERVICE_PATH, "/services/Walrus");
setting is correct :-( The logs show that jclouds is trying to call
2016-01-29 16:27:24,495 DEBUG [jclouds.headers] [main] >> PUT
http://jag-itop-svr.dev.opsware.com
I tried S3Client and the result is still wrong.
Is that the right code snippet? The example you included still uses the
portable BlobStore interface?
Regards
ap
I tried S3Client and the result is still wrong.
Code:
BlobStoreContext context = ContextBuilder.newBuilder(new
S3ApiMetadata())
.endpoint("http://myserver:8080/services/Walrus";)
.credentials(username, password)
.overrides(overrides)
but the result is wrong.
Ah, pity :-( Caught celebrating too soon ;-) One of the things that may
be worth trying here is to move away from the portably blobstore
abstraction and try the API directly - that's more comparable to the
boto calls.
...
S3Client client = ContextBuilder.newBuilder(
Sorry, I said "it works" too soon.
It did not throw exception when calling
blobStore.containerExists(bucket);
but the result is wrong. Bucket 'public' does exist.
When calling to create container, it throws exception.
I switched to jclouds 1.9.1. the result is the same.
Code:
public static void m
Thanks for the heads-up, Julie - glad you were able to get it to work!
ap
It works now by adding following code:
overrides.setProperty(PROPERTY_S3_SERVICE_PATH, "/services/Walrus");
BlobStoreContext context = ContextBuilder.newBuilder(new S3ApiMetadata())
.endpoint("myserver:8080/services/Walrus")
Thanks!
-Original Message-
From: Yao, Julie
Code snippet using boto:
def connect(self):
self.connection = boto.connect_s3 (
aws_access_key_id = self.access_key_id,
aws_secret_access_key = self.secret_access_key,
port = self.port,
host= self.host,
is_secure=False,
Found the solution. If I execute commands in a single line using &&,
written as a java string they work as expected.
Uff. Glad to hear you were able to get it to work in the end!
ap
That one-liner thing is really weird! Glad to see you found a way to
bypass that.
Another option would be to put your script in a file, upload it to the
node using the jclouds ssh client, and then run a script that simply
executes that script file. Could that work and be cleaner? Have a look
at th
11 matches
Mail list logo