Re: Problem with Solr Search

2017-04-01 Thread Fred Dushin

> On Mar 30, 2017, at 12:58 AM, Nguyễn Văn Nghĩa Em  wrote:
> 
> I have met some problems:
> 1. Create search index with error: "Can not create search index on all 
> nodes". This error appear after 30 seconds timeout. I opened the index folder 
> in /var/lib/riak/yz, I found that there are some folder without 
> core.properties file. I don't know whether it is normal or not.

Need to get to the bottom of this, before doing any performance testing.  If 
you don't have an search index on a node, you will not get reliable search 
results.

I would check to make sure Solr is running properly on the nodes on which you 
are not finding the index.  If you look at the logic for creating a local index 
[1], you should see some checks to see if the index is in metadata or on disk.  
You should see some entries in the logs that will show either success or errors 
on creation.  Check the error logs, to ensure you are not getting errors 
communicating with Solr.

Also, note that 2.1.1 is fairly old.  Significant improvement with batching and 
asynchronous writes to Solr were added in Riak 2.2, and the latest release of 
the 2.2 branch is 2.2.2.

-Fred

[1] https://github.com/basho/yokozuna/blob/2.1.0/src/yz_index.erl#L193


> 
> 2. When I make a searching load test with Riak Benchmark tool with about 1000 
> Request Per second. I see about 5-10% error which relate to "Failed to 
> search". But when I make a load test with Solr HTTP API, the throuput is 
> about 2000 Request Per Second without any error. It may be the problem in 
> Riak config. I hope someone can show me why this error happend

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


Re: Unable to compile Riak on Raspberry Pi 3

2017-04-01 Thread Alex Moore
Hi cocos,

I recently did some testing around this and journaled the steps needed to
build KV and TS on Raspbian:

https://gist.github.com/alexmoore/7bbdece19223cea1e144e4d23a5ed7ec

This includes building Basho's flavor of Erlang, and the fix that Matthew
mentioned.

Thanks,
Alex

On Sat, Apr 1, 2017 at 7:41 AM, Matthew Von-Maszewski 
wrote:

> A fix for that problem in leveldb/util/perf_count.cc already exists on the
> "develop" branch of the github repository basho/leveldb.  Download it and
> rebuild.
>
> Sent from my iPad
>
> On Apr 1, 2017, at 4:08 AM, cocos  wrote:
>
> Hello,
>
> currenty I'm trying  to install Riak on the Raspberry Pi 3 for testing
> purposes. I used the following instruction from basho:
>
> http://docs.basho.com/riak/kv/2.2.2/setup/installing/source/
>
> I'm having problems compiling it from source. I tried to compile it on
> Raspbian Jessie and then switched to Ubuntu Server 16.04. Both times with
> the same result. It is not compiling and aborts at a certain point. I don't
> know what causes the problem since it only says: `recipe for target
> 'util/perf_count.o' failed`. Searching Google and the mailing list from
> basho weren't successful.
>
> The version of `gcc` is `gcc (Raspbian 4.9.2-10) 4.9.2`. The version of
> `Erlang` is  `Erlang R16B02_basho8 (erts-5.10.3)`
>
> The commands i used are the following:
>
> *Installing Erlang:*
>
> wget http://s3.amazonaws.com/downloads.basho.com/erlang/
> otp_src_R16B02basho10.tar.gz
>
> tar zxvf otp_src_R16B02-basho10.tar.gz
>
> cd OTP_R16B02_basho10
> ./otp_build autoconf
> ./configure && make && sudo make install
>
> *Installing Riak:*
>
> wget http://s3.amazonaws.com/downloads.basho.com/riak/2.2/
> 2.2.1/riak-2.2.1.tar.gz
>
> tar zxvf riak-2.2.1.tar.gz
>
> cd riak-2.2.1
> make locked-deps
> make rel
>
> Any suggestions are welcome.
>
> ## *Output:* ##
>
> `./include/leveldb/atomics.h:155:15: note:
> template argument deduction/substitution failed
> util/perf_count.cc:439:40:
> note: deduced conflicting types for parameter ‘ValueT’
> (‘unsigned int’ and‘int’ add_and_fetch(ptr_32, 1);`
>
>
> `Makefile:190: recipe for target 'util/perf_count.o' failed
> make[1]: *** [util/perf_count.o] Error 1
> make[1]: *** Waiting for unfinished jobs
> make[1]: Leaving directory '/home/pi/Riak/riak/deps/
> eleveldb/c_src/leveldb'
> ERROR: Command [compile] failed!
> Makefile:23: recipe for target 'compile' failed
> make: *** [compile] Error 1`
>
> Von meinem Samsung Galaxy Smartphone gesendet.
>
> 
>
> ___
> 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
>
>
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Unable to compile Riak on Raspberry Pi 3

2017-04-01 Thread Matthew Von-Maszewski
A fix for that problem in leveldb/util/perf_count.cc already exists on the 
"develop" branch of the github repository basho/leveldb.  Download it and 
rebuild. 

Sent from my iPad

> On Apr 1, 2017, at 4:08 AM, cocos  wrote:
> 
> Hello,
> 
> currenty I'm trying  to install Riak on the Raspberry Pi 3 for testing 
> purposes. I used the following instruction from basho:
> 
> http://docs.basho.com/riak/kv/2.2.2/setup/installing/source/
> 
> I'm having problems compiling it from source. I tried to compile it on 
> Raspbian Jessie and then switched to Ubuntu Server 16.04. Both times with the 
> same result. It is not compiling and aborts at a certain point. I don't know 
> what causes the problem since it only says: `recipe for target 
> 'util/perf_count.o' failed`. Searching Google and the mailing list from basho 
> weren't successful. 
> 
> The version of `gcc` is `gcc (Raspbian 4.9.2-10) 4.9.2`. The version of 
> `Erlang` is  `Erlang R16B02_basho8 (erts-5.10.3)`
> 
> The commands i used are the following:
> 
> Installing Erlang:
> 
> wget 
> http://s3.amazonaws.com/downloads.basho.com/erlang/otp_src_R16B02basho10.tar.gz
> 
> tar zxvf otp_src_R16B02-basho10.tar.gz
> 
> cd OTP_R16B02_basho10
> ./otp_build autoconf
> ./configure && make && sudo make install
> 
> Installing Riak:
> 
> wget 
> http://s3.amazonaws.com/downloads.basho.com/riak/2.2/2.2.1/riak-2.2.1.tar.gz
> 
> tar zxvf riak-2.2.1.tar.gz
> 
> cd riak-2.2.1
> make locked-deps
> make rel
> 
> Any suggestions are welcome.
> 
> ## Output: ##
> 
> `./include/leveldb/atomics.h:155:15: note: 
> template argument deduction/substitution failed util/perf_count.cc:439:40:
> note: deduced conflicting types for parameter ‘ValueT’ 
> (‘unsigned int’ and‘int’ add_and_fetch(ptr_32, 1);`
> 
> 
> `Makefile:190: recipe for target 'util/perf_count.o' failed
> make[1]: *** [util/perf_count.o] Error 1
> make[1]: *** Waiting for unfinished jobs
> make[1]: Leaving directory 
> '/home/pi/Riak/riak/deps/eleveldb/c_src/leveldb'
> ERROR: Command [compile] failed!
> Makefile:23: recipe for target 'compile' failed
> make: *** [compile] Error 1`
> 
> Von meinem Samsung Galaxy Smartphone gesendet.
> 
> ___
> 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


Unable to compile Riak on Raspberry Pi 3

2017-04-01 Thread cocos

Hello,

currenty I'm trying  to install Riak**on the Raspberry Pi 3 for testing 
purposes. I used the following instruction from basho:


http://docs.basho.com/riak/kv/2.2.2/setup/installing/source/

I'm having problems compiling it from source. I tried to compile it on 
Raspbian Jessie and then switched to Ubuntu Server 16.04. Both times 
with the same result. It is not compiling and aborts at a certain point. 
I don't know what causes the problem since it only says: `recipe for 
target 'util/perf_count.o' failed`. Searching Google and the mailing 
list from basho weren't successful.


The version of `gcc` is `gcc (Raspbian 4.9.2-10) 4.9.2`. The version of 
`Erlang` is  `Erlang R16B02_basho8 (erts-5.10.3)`


The commands i used are the following:

*Installing Erlang:*

wget 
http://s3.amazonaws.com/downloads.basho.com/erlang/otp_src_R16B02basho10.tar.gz


tar zxvf otp_src_R16B02-basho10.tar.gz

cd OTP_R16B02_basho10
./otp_build autoconf
./configure && make && sudo make install

*Installing Riak:*

wget 
http://s3.amazonaws.com/downloads.basho.com/riak/2.2/2.2.1/riak-2.2.1.tar.gz


tar zxvf riak-2.2.1.tar.gz

cd riak-2.2.1
make locked-deps
make rel

Any suggestions are welcome.

## *Output:* ##

`./include/leveldb/atomics.h:155:15: note:
template argument deduction/substitution failed 
util/perf_count.cc:439:40:

note: deduced conflicting types for parameter ‘ValueT’
(‘unsigned int’ and‘int’ add_and_fetch(ptr_32, 1);`


`Makefile:190: recipe for target 'util/perf_count.o' failed
make[1]: *** [util/perf_count.o] Error 1
make[1]: *** Waiting for unfinished jobs
make[1]: Leaving directory 
'/home/pi/Riak/riak/deps/eleveldb/c_src/leveldb'

ERROR: Command [compile] failed!
Makefile:23: recipe for target 'compile' failed
make: *** [compile] Error 1`

Von meinem Samsung Galaxy Smartphone gesendet.
Hello,
currenty I'm trying  to install Riak on the Raspberry Pi 3 for testing 
purposes. I used the following instruction from basho:

http://docs.basho.com/riak/kv/2.2.2/setup/installing/source/

I'm having problems compiling it from source. I tried to compile it on Raspbian 
Jessie and then switched to Ubuntu Server 16.04. Both times with the same 
result. It is not compiling and aborts at a certain point. I don't know what 
causes the problem since it only says: `recipe for target 'util/perf_count.o' 
failed`. Searching Google and the mailing list from basho weren't successful. 

The version of `gcc` is `gcc (Raspbian 4.9.2-10) 4.9.2`. The version of 
`Erlang` is  `Erlang R16B02_basho8 (erts-5.10.3)`

The commands i used are the following:

Installing Erlang:

    wget 
http://s3.amazonaws.com/downloads.basho.com/erlang/otp_src_R16B02basho10.tar.gz

    tar zxvf otp_src_R16B02-basho10.tar.gz

    cd OTP_R16B02_basho10
    ./otp_build autoconf
    ./configure && make && sudo make install

Installing Riak:

    wget 
http://s3.amazonaws.com/downloads.basho.com/riak/2.2/2.2.1/riak-2.2.1.tar.gz

    tar zxvf riak-2.2.1.tar.gz

    cd riak-2.2.1
    make locked-deps
    make rel

Any suggestions are welcome.

## Output: ##

    `./include/leveldb/atomics.h:155:15: note: 
    template argument deduction/substitution failed util/perf_count.cc:439:40:
    note: deduced conflicting types for parameter ‘ValueT’ 
    (‘unsigned int’ and‘int’ add_and_fetch(ptr_32, 1);`


    `Makefile:190: recipe for target 'util/perf_count.o' failed
    make[1]: *** [util/perf_count.o] Error 1
    make[1]: *** Waiting for unfinished jobs
    make[1]: Leaving directory '/home/pi/Riak/riak/deps/eleveldb/c_src/leveldb'
    ERROR: Command [compile] failed!
    Makefile:23: recipe for target 'compile' failed
    make: *** [compile] Error 1`

Von meinem Samsung Galaxy Smartphone gesendet.___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com