1
5

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.

RPMからVespaをインストール(for CentOS7)

Last updated at Posted at 2018-03-16

RPM向けのQuick Startが見当たらないので書いてみた。

インストール

$ sudo yum-config-manager --add-repo https://copr.fedorainfracloud.org/coprs/g/vespa/vespa/repo/epel-7/group_vespa-vespa-epel-7.repo

$ sudo yum -y install epel-release centos-release-scl
$ sudo yum -y install vespa

起動

$ sudo systemctl start vespa
$ sudo systemctl start vespa-configserver

サンプルを試す

deploy

$ git clone https://github.com/vespa-engine/sample-apps.git
export VESPA_SAMPLE_APPS=`pwd`/sample-apps

$ /opt/vespa/bin/vespa-deploy prepare $VESPA_SAMPLE_APPS/basic-search/src/main/application/

$ /opt/vespa/bin/vespa-deploy activate

データをFeed

$ curl -s -X POST --data-binary @${VESPA_SAMPLE_APPS}/basic-search/music-data-1.json \
    http://localhost:8080/document/v1/music/music/docid/1 | python -m json.tool
$ curl -s -X POST --data-binary @${VESPA_SAMPLE_APPS}/basic-search/music-data-2.json \
    http://localhost:8080/document/v1/music/music/docid/2 | python -m json.tool

クエリーを投げてみる

$ curl -s http://localhost:8080/search/?query=bad | python -m json.tool

参考URL
http://docs.vespa.ai/documentation/
http://docs.vespa.ai/documentation/vespa-quick-start.html

1
5
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
1
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?