Hi, Luke,

The bucket_type with leveldb is called *ldb*. Buckets "teste and "books"
already existed.

*Python3:*
>>> myClient = riak.RiakClient(http_port=8098, protocol='http',
host='127.0.1.1')
>>> myBucket = myClient.bucket('foo', bucket_type='ldb')
>>> keyb = myBucket.new('bar', data='foobar')
>>> keyb.store()
<riak.riak_object.RiakObject object at 0x7fb2a168de10>
>>> myClient.get_buckets()
[<RiakBucket 'teste'>, <RiakBucket 'books'>]

*HTTP:*
curl 127.0.1.1:8098/buckets?buckets=true

{"buckets":["teste","books"]}

If I run the same procedure without specifying bucket_type, it works well.
Couldn't figure out yet what's the problem.

Felipe Esteves

Tecnologia

felipe.este...@b2wdigital.com <seu.em...@b2wdigital.com>



Em 15 de dezembro de 2016 13:56, Luke Bakken <lbak...@basho.com> escreveu:

> > But I can find the created bucket when I run buckets?buckets=true
> > Seems to me it isn't being persisted, I'm investigating.
>
> What is the command you are running? Please provide the complete command.
>
> --
> Luke Bakken
> Engineer
> lbak...@basho.com
>
> ________________________________
> Esta mensagem pode conter informações confidenciais e somente o indivíduo
> ou entidade a quem foi destinada pode utilizá-la. A transmissão incorreta
> da mensagem não acarreta a perda de sua confidencialidade. Caso esta
> mensagem tenha sido recebida por engano, solicitamos que o fato seja
> comunicado ao remetente e que a mensagem seja eliminada de seu sistema
> imediatamente. É vedado a qualquer pessoa que não seja o destinatário usar,
> revelar, distribuir ou copiar qualquer parte desta mensagem. Ambiente de
> comunicação sujeito a monitoramento.
>
> This message may include confidential information and only the intended
> addresses have the right to use it as is, or any part of it. A wrong
> transmission does not break its confidentiality. If you've received it
> because of a mistake or erroneous transmission, please notify the sender
> and delete it from your system immediately. This communication environment
> is controlled and monitored.
>
> B2W Digital
>
>

-- 

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to