projects
/
NoSQL-toys.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
use offset for key for tables with primary key
[NoSQL-toys.git]
/
riak
/
query.sh
1
#!/bin/sh -x
2
3
RIAK=192.168.1.200:8098
4
RIAK=10.60.0.92:8098
5
6
function execute_query {
7
curl -v -X POST http://$RIAK/mapred -H "Content-Type: application/json" -d @$1
8
}
9
10
if [ ! -z "$1" ] ; then
11
execute_query $1
12
exit
13
fi
14
15
ls query/*.json | while read file ; do
16
echo "executing $file"
17
execute_query $file
18
echo
19
done