Skip to content

Instantly share code, notes, and snippets.

@furandon-pig
Created May 19, 2014 11:58
Show Gist options
  • Save furandon-pig/5139a2e2e360f0634b1e to your computer and use it in GitHub Desktop.
Save furandon-pig/5139a2e2e360f0634b1e to your computer and use it in GitHub Desktop.
OSvにElasticsearchを追加する手順です。
OSvへのElasticsearch追加手順
=================================
* osv/apps/elasticsearchにGET,Makefile,module.pyを追加します。
```
$ cd osv/apps
$ mkdir elasticsearch
$ cd elasticsearch
$ wget --no-check-certificate https://gist.githubusercontent.com/furandon-pig/4f14b51cd30d24203611/raw/29d5aa1a7e7afa43effa6118bd76328d3627cf73/osv-elasticsearch-module.py -O module.py
$ wget --no-check-certificate https://gist.githubusercontent.com/furandon-pig/e6fbb0793b48dbb5de08/raw/2fe05a43f0db00273b40bc3a8e6896d74e076c40/osv-elasticsearch-Makefile -O Makefile
$ wget --no-check-certificate https://gist.githubusercontent.com/furandon-pig/5204d9f6b51a1febc8dc/raw/42643980f4a340f13ede516d4827d920284be4f5/osv-elasticsearch-GET -O GET
```
* ビルドします。
```
$ make image=elasticsearch
```
* 現状(2014/05/19時点のコミット96996da2f6ad26bbec9a246c6e66604d7411c76c)では以下のエラーが発生します。
```
$ ./scripts/run.py
OSv v0.08-156-g96996da
eth0: 192.168.122.15
[2014-05-19 12:08:09,221][INFO ][node ] [James "Jimmy" Marks] version[1.1.1], pid[0], build[f1585f0/2014-04-16T14:27:12Z]
[2014-05-19 12:08:09,245][INFO ][node ] [James "Jimmy" Marks] initializing ...
[2014-05-19 12:08:09,893][INFO ][plugins ] [James "Jimmy" Marks] loaded [], sites []
Failed looking up symbol rpc_createerr
[backtrace]
0x0000000000334c7b <elf::object::relocate_rela()+347>
0x0000000000334e47 <elf::object::relocate()+199>
0x0000000000335ba4 <elf::program::get_library(std::string, std::vector<std::string, std::allocator<std::string> >)+1316>
0x0000000000418b70 <dlopen+112>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment