読者です 読者をやめる 読者になる 読者になる

仕事やプライベートで調べたことのメモ書きなど(@札幌)

仕事やプライベートで調べたこと、興味ある事のメモ書きです。2016年4月から札幌で働いてます。※このブログは個人によるもので、団体を代表するものではありません。

Windows上のVagrantでAerospikeをインストールしてみる

KVSの一種であるAerospikeを試したくなったので、以下のページに従って入れてみた。

Aerospikeとは

www.aerospike.com

AerospikeはNoSQLの仲間。数あるKVSの中でも高速性が売り。CassandraやRedisとよく比較されている。
www.aerospike.com

サイバーエージェントが大規模に導入したことが有名。
www.cyberagent.co.jp

AerospikeをWindows(Vagrant)に入れてみる

http://www.aerospike.com/docs/operations/install/vagrant/win

C:\HashiCorp\Vagrant\aerospike-vm>vagrant init aerospike/centos-6.5
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

C:\HashiCorp\Vagrant\aerospike-vm>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'aerospike/centos-6.5' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'aerospike/centos-6.5'
    default: URL: https://atlas.hashicorp.com/aerospike/centos-6.5
==> default: Adding box 'aerospike/centos-6.5' (v3.10.0.3) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/aerospike/boxes/centos-6.5/versions/3.10.0.3/providers/virt
ualbox.box
    default: Progress: 100% (Rate: 2797k/s, Estimated time remaining: --:--:--)
==> default: Successfully added box 'aerospike/centos-6.5' (v3.10.0.3) for 'virtualbox'!
==> default: Importing base box 'aerospike/centos-6.5'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'aerospike/centos-6.5' is up to date...
==> default: Setting the name of the VM: aerospike-vm_default_1478009422332_5745
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly

==> default: Forwarding ports...
    default: 3000 (guest) => 3000 (host) (adapter 1)
    default: 8081 (guest) => 8081 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 5.0.20
    default: VirtualBox Version: 5.1
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => C:/HashiCorp/Vagrant/aerospike-vm

C:\HashiCorp\Vagrant\aerospike-vm>

すると、上記のように普通にインストールが実行され、aerospikeのserviceが動いているらしいことは確認できる。