Skip to content

Commit

Permalink
Merged from senseidb/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Lei Wang committed Feb 19, 2013
2 parents 08574da + 105f04d commit 2c4f41d
Show file tree
Hide file tree
Showing 18 changed files with 488 additions and 251 deletions.
2 changes: 1 addition & 1 deletion bin/load-index
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def main(argv):
"type" : "exec",
"mbean" : "com.senseidb:zoie-name=pair-admin-%s-%s" % (self.node['id'], self.part),
"operation" : "loadIndex",
"arguments" : [os.path.join(uri, str(self.part))]
"arguments" : [os.path.join(uri, "shard" + str(self.part))]
})
if not res.get('value'):
if res.get('status') == 404:
Expand Down
10 changes: 9 additions & 1 deletion bin/start-sensei-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ bin=`cd "$bin"; pwd`
OS=`uname`
IP="" # store IP
case $OS in
Linux) IP=`/sbin/ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}' | head -n 1`;;
Linux)
if [ -f /sbin/ifconfig ]
then
IP=`/sbin/ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}' | head -n 1`
else
# some linux use /bin/ifconfig (e.g. gentoo)
IP=`/bin/ifconfig | grep 'inet ' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $2}' | head -n 1`
fi
;;
FreeBSD|OpenBSD|Darwin) IP=`ifconfig | grep -E '^en[0-9]:' -A 4 | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}' | head -n 1` ;;
SunOS) IP=`ifconfig -a | grep inet | grep -v '127.0.0.1' | awk '{ print $2} ' | head -n 1` ;;
*) IP="Unknown";;
Expand Down
2 changes: 1 addition & 1 deletion example/cars/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
default delimiter is ","
-->
<column name="tags" type="string" multi="true" delimiter=","/>
<!-- attributes: indexed,store,termvector are only used when type is text -->
<!-- attributes: indexed,termvector are only used when type is text -->
<column name="contents" type="text" index="ANALYZED" store="YES" termvector="YES" />
</table>

Expand Down
1 change: 1 addition & 0 deletions resources/zookeeper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
dataDir=/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181
maxClientCnxns=30
Loading

0 comments on commit 2c4f41d

Please sign in to comment.