Hi Mark,

If you need to get the structure the data, your best bet is to pull the
content type. You'll need to list-keys [1] on that bucket and then parse
the header for each key with a HEAD request, paying special attention to
the content-type for the key [2]. Keep in mind we don't recommend using
list-keys for production, but if it's for test data and an offline-cluster,
it's fine. Make sure to use the "?keys=stream" option if the client you're
using supports it.

The biggest caveat here is that you're trusting the client that stored the
data initially to have specified the correct content type. Riak doesn't
 validate it proactively on the way in.

Hope that helps.

Mark


[1] http://docs.basho.com/riak/latest/references/apis/http/HTTP-List-Keys/
[2]
http://docs.basho.com/riak/latest/references/apis/http/HTTP-Fetch-Object/#Response


On Wed, Jul 10, 2013 at 7:37 AM, Mark Wagner <mwagne...@gmail.com> wrote:

> Thanks for the info!!!  I appreciate the help and I am glad to know that
> it should just work!
>
> I don't really need the data from the whole cluster while developing the
> script.  I just need to get my queries working etc...
>
> One issue I am facing is I don't know the structure of the data.  So I am
> trying to browse it (http://localhost:8098/riak?buckets=true)  and I
> getting content decode  error.
>
> Any ideas?  thoughts on how to troubleshoot this?  Or different approaches
> to determining the structure?
>
>
> Thanks AGAIN!!!
>
>
> Mark
>
>
> On Wed, Jul 10, 2013 at 7:59 AM, Justin Sheehy <jus...@basho.com> wrote:
>
>> Hi, Mark.
>>
>> You've already received a little advice generally so I won't pile on that
>> part, but one thing stood out to me:
>>
>> > My client has sent me a backup from one of their cluster nodes. bitcask
>> data,. rings and config.
>>
>> Unless I'm misunderstanding what you're doing, what you're working on
>> will not get you the data from the whole cluster, but the fraction of the
>> data that was stored on the one node that you have a backup from. Just a
>> warning, in case you hadn't realized this.
>>
>> -Justin
>>
>>
>>
>
>
> --
> Mark Wagner, Web & Mobile Developer
> *:coderow*
> *Web & mobile application development for business*
> m: 480.580.1261 | o: 612.293.9090
> www.coderow.com | m...@coderow.com | @thesociableme
>
>
>
>
> _______________________________________________
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to