Wednesday, September 2, 2015

9-02-2015 VoltDB community install on laptops (status : stuck)

I am going to install the community version of VoltDB. This means you have to compile it.Hope this changes. I will try to get the enterprise edition somehow.




sudo apt-get -y install ant build-essential ant-optional default-jdk python \
    valgrind ntp ccache git-arch git-completion git-core git-svn git-doc \
    git-email python-httplib2 python-setuptools python-dev apt-show-versions


git clone https://github.com/VoltDB/voltdb.git

cd voltdb
ant

  # following instructions on 2.2.3 ad then 2.2 to install. 
ant dist

tar -zxvf  ./obj/release/voltdb-5.6.tar.gz -C /opt
ln -s /opt/voltdb-5.6 /opt/voltdb

  # Puts the binaries in the path of all accounts. 
  # I don't like having to modify each path in each account. 
  # You could modify an etc file for the path I guess. 
cd /opt/voltdb/bin
for i in `ls`; do echo $i; rm -f /usr/local/bin/$i; ln -s /opt/voltdb/bin/$i /usr/local/bin/$i; done

  # This turns off something in memory. 
echo never >/sys/kernel/mm/transparent_hugepage/enabled

  # Turn off swapiness.

echo "" >>  /etc/sysctl.conf
echo "vm.swappiness=10" >> /etc/sysctl.conf
echo "" >>  /etc/sysctl.conf


  # Add the following to /etc/rc.local
#!/bin/bash
for f in /sys/kernel/mm/*transparent_hugepage/enabled; do
    if test -f $f; then echo never > $f; fi
done
for f in /sys/kernel/mm/*transparent_hugepage/defrag; do
    if test -f $f; then echo never > $f; fi
done 

  ### then reboot


sudo apt-get install screen  # Add this to my server setup. 
sudo apt-get install tmux


reboot


On server mark4:

  • voltdb create # as the user mark 
    • I don't know if its because its a community edition or what, but it spit out some messages.
      Build: 5.6 voltdb-5.5-158-gdb3a5fd Community Edition
      Connecting to VoltDB cluster as the leader...
      Host id of this node is: 0
      Initializing the database. This may take a moment...
      WARN: Strict java memory checking is enabled, don't do release builds or performance runs with this enabled. Invoke "ant clean" and "ant -Djmemcheck=NO_MEMCHECK" to disable.
      WARN: This is not a highly available cluster. K-Safety is set to 0.
      WARN: Durability is turned off. Command logging is off.
      Server completed initialization.
      
  • Now I need some sort of license, so I am stuck because I want to setup a cluster. Do I need a community license?

No comments:

Post a Comment