Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bucket type use issue [JIRA: RIAK-1665] #717

Open
xiaoliuliu2050 opened this issue Apr 2, 2015 · 1 comment
Open

bucket type use issue [JIRA: RIAK-1665] #717

xiaoliuliu2050 opened this issue Apr 2, 2015 · 1 comment
Assignees

Comments

@xiaoliuliu2050
Copy link

with my nodes ,i just update the riak.conf file and specify the storage_backend parameter to multi.

after that i use the command
riak-admin bucket-type create memory_backend '{"props":{"backend":"memory"}}'
to create a new bucket type.

then i start the link
{ok, Pid} = riakc_pb_socket:start_link("127.0.0.1", 8087).

then create a new object and want to put it in the bucket which bear the bucket-type named memory_backend.
Object1 = riakc_obj:new({<<"memory_backend">>, <<"my_bucket">>},
<<"user19735">>,<<"xx">>).

finally,i try to put the object to database with the command,
riakc_pb_socket:put(Pid, Object1).

Unfortunately,the server just stuck there,and not return any info.

why?

@Basho-JIRA Basho-JIRA changed the title bucket type use issue bucket type use issue [JIRA: RIAK-1665] Apr 2, 2015
@Basho-JIRA Basho-JIRA assigned jonmeredith and unassigned seancribbs May 7, 2015
@JeetKunDoug
Copy link
Contributor

@xiaoliuliu2050 did you activate your bucket type after creating it? In order for riak to make sure the bucket type is available across the cluster, you need to first create the bucket type, and then activate. See http://docs.basho.com/riak/latest/dev/advanced/bucket-types/#Managing-Bucket-Types-Through-the-Command-Line for more information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants