2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MaxOSX Sierraでriak環境構築

2
Last updated at Posted at 2017-12-17
  • Sierraでriak動かしてる情報がなかったのでメモ

環境

  • Mac OSX Sierra
  • riak 2.2.3

手順

riakをインストール

% brew install riak
  • 起動してみる
% riak start
!!!!
!!!! WARNING: ulimit -n is 256; 65536 is the recommended minimum.
!!!!
  • warningが出る

  • Lionまでだと/etc/launchd.confを修正すればいいらしいがファイルが見当たらない

limit.maxfiles.plistを作成する

  • /Library/LaunchDaemons/limit.maxfiles.plistを作成して以下の内容を記述する
limit.maxfiles.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>limit.maxfiles</string>
    <key>ProgramArguments</key>
    <array>
      <string>launchctl</string>
      <string>limit</string>
      <string>maxfiles</string>
      <string>200000</string>
      <string>200000</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>ServiceIPC</key>
    <false/>
  </dict>
</plist>
  • 起動してみる
% riak start
riak failed to start within 15 seconds,
see the output of 'riak console' for more information.
If you want to wait longer, set the environment variable
WAIT_FOR_ERLANG to the number of seconds to wait.
  • 失敗する

riak consoleなどでエラー原因などがみられるが、問題になっていそうなところを修正してもabortして終了してしまう。

公式をみると、brewで入るriakは最新になってないようなので、tarを取得して使う。


% curl -O http://s3.amazonaws.com/downloads.basho.com/riak/2.2/2.2.3/osx/10.8/riak-2.2.3-OSX-x86_64.tar.gz
tar xzvf riak-2.2.3-osx-x86_64.tar.gz
% cd riak-2.2.3
% bin/riak start
% bin/riak ping
pong
% bin/riak stop
ok
  • 無事動いた
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?