You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@whirr.apache.org by Russell Jurney <ru...@gmail.com> on 2013/08/27 21:50:06 UTC

How to get blobstore identity and credential?

 Currently I do this:

        String key = (String)conf.getProperty("whirr.identity");
        String auth = (String)conf.getProperty("whirr.credential");
        System.err.print("Key: " + key + "\n");
        System.err.print("Auth: " + auth + "\n");

It returns this:
        Key: ${env:WHIRR_IDENTITY}
        Auth: ${env:WHIRR_CREDENTIAL}
        Key: ${env:WHIRR_IDENTITY}
        Auth: ${env:WHIRR_CREDENTIAL}
        Key: ${env:WHIRR_IDENTITY}
        Auth: ${env:WHIRR_CREDENTIAL}
        Key: ${env:WHIRR_IDENTITY}
        Auth: ${env:WHIRR_CREDENTIAL}

How can I get the actual credential/identity value? I need them to fill out
a configuration for my service.
-- 
Russell Jurney twitter.com/rjurney russell.jurney@gmail.com datasyndrome.com

Re: How to get blobstore identity and credential?

Posted by Russell Jurney <ru...@gmail.com>.
Thanks!


On Tue, Aug 27, 2013 at 12:54 PM, Andrei Savu <sa...@gmail.com> wrote:

> You have to get them from the ClusterSpec instance:
>
>
>
>
> identity = spec.getIdentity();
>
>
> credential = spec.getCredential();
>
>
>
> See:
> https://github.com/apache/whirr/blob/trunk/core/src/main/java/org/apache/whirr/service/ComputeCache.java
>
>
> -- Andrei Savu / axemblr.com
>
>
> On Tue, Aug 27, 2013 at 10:50 PM, Russell Jurney <russell.jurney@gmail.com
> > wrote:
>
>>  Currently I do this:
>>
>>         String key = (String)conf.getProperty("whirr.identity");
>>         String auth = (String)conf.getProperty("whirr.credential");
>>         System.err.print("Key: " + key + "\n");
>>         System.err.print("Auth: " + auth + "\n");
>>
>> It returns this:
>>         Key: ${env:WHIRR_IDENTITY}
>>         Auth: ${env:WHIRR_CREDENTIAL}
>>         Key: ${env:WHIRR_IDENTITY}
>>         Auth: ${env:WHIRR_CREDENTIAL}
>>         Key: ${env:WHIRR_IDENTITY}
>>         Auth: ${env:WHIRR_CREDENTIAL}
>>         Key: ${env:WHIRR_IDENTITY}
>>         Auth: ${env:WHIRR_CREDENTIAL}
>>
>> How can I get the actual credential/identity value? I need them to fill
>> out a configuration for my service.
>>  --
>> Russell Jurney twitter.com/rjurney russell.jurney@gmail.com datasyndrome.
>> com
>>
>
>


-- 
Russell Jurney twitter.com/rjurney russell.jurney@gmail.com datasyndrome.com

Re: How to get blobstore identity and credential?

Posted by Andrei Savu <sa...@gmail.com>.
You have to get them from the ClusterSpec instance:



identity = spec.getIdentity();

credential = spec.getCredential();


See:
https://github.com/apache/whirr/blob/trunk/core/src/main/java/org/apache/whirr/service/ComputeCache.java


-- Andrei Savu / axemblr.com


On Tue, Aug 27, 2013 at 10:50 PM, Russell Jurney
<ru...@gmail.com>wrote:

>  Currently I do this:
>
>         String key = (String)conf.getProperty("whirr.identity");
>         String auth = (String)conf.getProperty("whirr.credential");
>         System.err.print("Key: " + key + "\n");
>         System.err.print("Auth: " + auth + "\n");
>
> It returns this:
>         Key: ${env:WHIRR_IDENTITY}
>         Auth: ${env:WHIRR_CREDENTIAL}
>         Key: ${env:WHIRR_IDENTITY}
>         Auth: ${env:WHIRR_CREDENTIAL}
>         Key: ${env:WHIRR_IDENTITY}
>         Auth: ${env:WHIRR_CREDENTIAL}
>         Key: ${env:WHIRR_IDENTITY}
>         Auth: ${env:WHIRR_CREDENTIAL}
>
> How can I get the actual credential/identity value? I need them to fill
> out a configuration for my service.
>  --
> Russell Jurney twitter.com/rjurney russell.jurney@gmail.com datasyndrome.
> com
>