Issue when generating benchmark graphs using R from Basho Bench on Windows PC

2013-07-18 Thread jerryjyuan
I have installed Erlang and R statistics Language (R 3.0.1 executables) on my
Windows PC desktop, and also I have installed and compiled Basho bench on
Windows PC. 

I am able to run the basho bench benchmark tests on Windows PC against the
Riak server on Linux platform. And then I am trying to generate benchmark
tests using R from Basho bench via the command: make results (or the manual
command like: priv/summary.r -i tests/current), but I see the following
error:

$ make results
priv/summary.r -i tests/current
file name is missing
priv/summary.r: line 6: syntax error near unexpected token `('
priv/summary.r: line 6: `arg0 <- sub("--file=(.*)", "\\1", grep("--file=",
commandArgs(), value = TRUE))'
Makefile:19: recipe for target `results' failed
make: *** [results] Error 2

If I commented out the arg0 and dir0 lines, and I see the following error as
well:

$ make results
priv/summary.r -i tests/current
file name is missing
priv/summary.r: line 11: syntax error near unexpected token `('
priv/summary.r: line 11: `params = matrix(c('
Makefile:19: recipe for target `results' failed
make: *** [results] Error 2

What could be the reasons for these issues ? such as:
(1) Because basho bench is running on Windows PC, so do we need to modify
the summary.r file to correct the above errors (by the way, I made one line
change for the location of Rscript on my Windows PC) ?
(2) Does the R installation have any issues, such as missing packages ?

Thanks for your inputs in advance if you got some ideas.

Here are some details about the installations of each component:
(1) Erlang Installation:
 http://www.erlang.org/download_release/14
 R15B01 Windows Binary File: otp_win32_R15B01.exe
(2) R Installation:
 http://cran.rstudio.com/
 R-3.0.1-win.exe
(3) Basho Bench Installation:
 http://docs.basho.com/riak/latest/cookbooks/Benchmarking/
 git clone git://github.com/basho/basho_bench.git
 cd basho_bench
 make
(4) Run Basho Bench tests using Cygwin:
 ./basho_bench myconfig.config




--
View this message in context: 
http://riak-users.197444.n3.nabble.com/Issue-when-generating-benchmark-graphs-using-R-from-Basho-Bench-on-Windows-PC-tp4028400.html
Sent from the Riak Users mailing list archive at Nabble.com.

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


Re: Issue when generating benchmark graphs using R from Basho Bench on Windows PC

2013-07-18 Thread jerryjyuan
I got some helpful feedbacks from Jon Meredith about the errors encountered
during my previous runs:

I don't have a Windows environment available to replicate your work with,
but it looks a bit like the R script is being interpreted as a shell script
rather than as Rscript

You may have soem more mileage running Rscript directly.
/path/to/Rscript priv/summary.r -i tests/current

The inputs from Jon are very helpful and now I am able to run the command to
generate benchmark graphs, such as the following example output below.
Thanks for the good info from Jon.

$ "C:/Program Files/R/R-3.0.1/bin/x64/Rscript" priv/summary.r -i
tests/20130716_013808
[1] "plyr"
Loading required package: plyr
[1] "grid"
Loading required package: grid
[1] "getopt"
Loading required package: getopt
[1] "proto"
Loading required package: proto
[1] "ggplot2"
Loading required package: ggplot2
Loading required package: methods
[1] 0
[1] 85.96346
geom_smooth: method="auto" and size of largest group is <1000, so using
loess. Use 'method = x' to change the smoothing method.
geom_smooth: method="auto" and size of largest group is <1000, so using
loess. Use 'method = x' to change the smoothing method.
geom_smooth: method="auto" and size of largest group is <1000, so using
loess. Use 'method = x' to change the smoothing method.
geom_smooth: method="auto" and size of largest group is <1000, so using
loess. Use 'method = x' to change the smoothing method.
geom_smooth: method="auto" and size of largest group is <1000, so using
loess. Use 'method = x' to change the smoothing method.
geom_smooth: method="auto" and size of largest group is <1000, so using
loess. Use 'method = x' to change the smoothing method.
geom_smooth: method="auto" and size of largest group is <1000, so using
loess. Use 'method = x' to change the smoothing method.
null device
  1




--
View this message in context: 
http://riak-users.197444.n3.nabble.com/Issue-when-generating-benchmark-graphs-using-R-from-Basho-Bench-on-Windows-PC-tp4028400p4028417.html
Sent from the Riak Users mailing list archive at Nabble.com.

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


How to create a Jinterface node and cluster for Java Client Benchmark with Basho Bench

2013-07-21 Thread jerryjyuan
I am trying to run some Java client benchmark testing with Basho Bench by
following the Riak document:
http://docs.basho.com/riak/latest/references/appendices/Java-Client-Benchmark/

The Basho Bench tool configuration file for this need requires Jinterface
node, see below:

%% The list of remote Java client nodes you want to bench.
%% Each entry is a tupple of the format
%% {node(), inet:ip4_address(), inet:port_number()}
%% Were host is the Jinterface node and
%% ip and port form the address of the
%% Riak interface that Java client should call

{riakc_java_nodes, [{'java@127.0.0.1', {127,0,0,1}, 10018}]}.

And I don't see the Riak online documentation has some description about
Jinterface node. If you have information about the document pages or the
procedures to create Jinterface node, it would be highly appreciated.

Thanks.
Jerry




--
View this message in context: 
http://riak-users.197444.n3.nabble.com/How-to-create-a-Jinterface-node-and-cluster-for-Java-Client-Benchmark-with-Basho-Bench-tp4028467.html
Sent from the Riak Users mailing list archive at Nabble.com.

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


Re: How to create a Jinterface node and cluster for Java Client Benchmark with Basho Bench

2013-07-23 Thread jerryjyuan
Hi Russell,

Thanks a lot for your helpful feedbacks about my question, and the following
is what you described about the bench_shim Jinterface wrapper for the RJC:

https://github.com/basho/bench_shim
The bench_shim is a JInterface wrapper for the RJC. I don't know if it works
with the current version of the client though. 

I have followed the instructions about building and running the Jinterface
node like below:

  git clone git://github.com/basho/bench_shim.git
  mvn clean install
  mvn exec:java -Dexec.mainClass="com.basho.riak.bench.BenchShimApp"
-Dexec.classpathScope=runtime -Dexec.args="nodename@host.local MY_COOKIE"

And based on the sample configuration file "riakc_java.config":

{riakc_java_nodes, [{'j...@riakhost1.lan', {127,0,0,1}, 8087},
{'j...@riakhost2.lan', {127,0,0,1}, 8087}, {'j...@riakhost3.lan',
{127,0,0,1}, 8087}]}.

It is using the following information for each Jinterface node:
{'j...@riakhost1.lan', {127,0,0,1}, 8087}

Then how do we know what the above information is from the above
configurations and running commands ? such as the port 8087, etc. Also why
does the above data use "{127,0,0,1}" instead of dot separation ?

Also inside the above command:
-Dexec.args="nodename@host.local MY_COOKIE"

How do we define the information like host.local, etc. ?

I know these questions might be straightforward, but this is my first time
to use bench_shim, and I am not sure where in the document has some
descriptions about these.

Thanks in advance for all your help and feedbacks.

Thanks.
Jerry




--
View this message in context: 
http://riak-users.197444.n3.nabble.com/How-to-create-a-Jinterface-node-and-cluster-for-Java-Client-Benchmark-with-Basho-Bench-tp4028467p4028513.html
Sent from the Riak Users mailing list archive at Nabble.com.

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