Permalink
Browse files

Adding new M/R vars to package builds

  • Loading branch information...
1 parent c23a6e9 commit cf6af79aaa1a7558d514c6b46f63795fce8542d4 @dizzyd dizzyd committed Dec 28, 2010
Showing with 11 additions and 0 deletions.
  1. +6 −0 package/deb/vars.config
  2. +5 −0 package/rpm/SPECS/riak-search.spec
View
6 package/deb/vars.config
@@ -20,3 +20,9 @@
{runner_log_dir, "/var/log/riaksearch"}.
{pipe_dir, "/tmp/riak/"}.
{runner_user, "riak"}.
+
+%% M/R related vars
+{mapred_queue_dir, "/var/lib/riaksearch/mr_queue"}.
+{map_js_vms, 8}.
+{reduce_js_vms, 6}.
+{hook_js_vms, 2}.
View
5 package/rpm/SPECS/riak-search.spec
@@ -44,6 +44,10 @@ cat > rel/vars.config <<EOF
{analyzer_port, 6095}.
{sasl_error_log, "%{_localstatedir}/log/%{appname}/sasl-error.log"}.
{sasl_log_dir, "%{_localstatedir}/log/%{appname}/sasl"}.
+{mapred_queue_dir, "%{_localstatedir}/lib/%{name}/mr_queue"}.
+{map_js_vms, 8}.
+{reduce_js_vms, 6}.
+{hook_js_vms, 2}.
% vm.args
{node, "riak@127.0.0.1"}.
% bin/riak*
@@ -71,6 +75,7 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/%{appname}/merge_index
mkdir -p %{buildroot}%{_localstatedir}/lib/%{appname}/ring
mkdir -p %{buildroot}%{_localstatedir}/log/%{appname}/sasl
mkdir -p %{buildroot}%{_localstatedir}/run/%{appname}
+mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/mr_queue
#Copy all necessary lib files etc.
cp -r %{releasepath}/lib %{buildroot}%{riak_lib}

0 comments on commit cf6af79

Please sign in to comment.