Giter VIP home page Giter VIP logo

getting-started's Introduction

Tarantool

Actions Status Code Coverage OSS Fuzz Telegram GitHub Discussions Stack Overflow

Tarantool is an in-memory computing platform consisting of a database and an application server.

It is distributed under BSD 2-Clause terms.

Key features of the application server:

Key features of the database:

  • MessagePack data format and MessagePack based client-server protocol.
  • Two data engines: 100% in-memory with complete WAL-based persistence and an own implementation of LSM-tree, to use with large data sets.
  • Multiple index types: HASH, TREE, RTREE, BITSET.
  • Document oriented JSON path indexes.
  • Asynchronous master-master replication.
  • Synchronous quorum-based replication.
  • RAFT-based automatic leader election for the single-leader configuration.
  • Authentication and access control.
  • ANSI SQL, including views, joins, referential and check constraints.
  • Connectors for many programming languages.
  • The database is a C extension of the application server and can be turned off.

Supported platforms are Linux (x86_64, aarch64), Mac OS X (x86_64, M1), FreeBSD (x86_64).

Tarantool is ideal for data-enriched components of scalable Web architecture: queue servers, caches, stateful Web applications.

To download and install Tarantool as a binary package for your OS or using Docker, please see the download instructions.

To build Tarantool from source, see detailed instructions in the Tarantool documentation.

To find modules, connectors and tools for Tarantool, check out our Awesome Tarantool list.

Please report bugs to our issue tracker. We also warmly welcome your feedback on the discussions page and questions on Stack Overflow.

We accept contributions via pull requests. Check out our contributing guide.

Thank you for your interest in Tarantool!

getting-started's People

Contributors

artur-barsegyan avatar ashelist avatar awekening2 avatar dj-kostya avatar kasen avatar vasiliy-t avatar zwirec avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

getting-started's Issues

Docker image example is't working

From https://ssss.try.tarantool.io/admin/tutorial/en/whats-next

For Windows users
Use Docker:


docker run -p 3301:3301 -p 8081:8081 tarantool/getting-started
Ready! At http://localhost:8081/ you will see the Tarantool UI.

Error:


 docker run -p 3301:3301 -p 8081:8081 --platform linux/amd64 tarantool/getting-started                                                                                                                                                                                 1 err  19:41:26
try-cartridge.s1-replica | failed to initialize Lua
try-cartridge.s2-master | failed to initialize Lua
try-cartridge.s2-replica | failed to initialize Lua
try-cartridge.router | failed to initialize Lua
try-cartridge.s1-master | failed to initialize Lua
   • try-cartridge.s1-replica... EXITED
   ⨯ try-cartridge.s1-replica: Process exited: Exited unsuccessfully: exit status 1
   • try-cartridge.s2-master... EXITED
   ⨯ try-cartridge.s2-master: Process exited: Exited unsuccessfully: exit status 1
   • try-cartridge.s2-replica... EXITED
   ⨯ try-cartridge.s2-replica: Process exited: Exited unsuccessfully: exit status 1
   • try-cartridge.router... EXITED
   ⨯ try-cartridge.router: Process exited: Exited unsuccessfully: exit status 1
   • try-cartridge.s1-master... EXITED
   ⨯ try-cartridge.s1-master: Process exited: Exited unsuccessfully: exit status 1
   ⨯ All instances exited

Ошибка при cartridge build

ОS: Arch-based system. Linux 5.15 OS name Manjaro

# node -v
v18.8.0
# npm -v
8.19.1
# tarantool -v
Tarantool 2.10.2-0-gb924f0b4a
# cartridge -v
Tarantool Cartridge CLI
 Version:       2.12.2
 OS/Arch:       linux/amd64
 Git commit:    53e6a5b

   • Failed to show Cartridge version: Project path . is not a project. See --project-path flag, to specify path to 
# docker -v
Docker version 20.10.17, build 100c70180f
# echo $PATH 
/home/uriid1/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/home/uriid1/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin

Полный тест ошибки

# cartridge build --verbose
   • Build application in /var/lib/tarantool/default
   • Running `cartridge.pre-build`

Warning: variable CFLAGS was not passed in build_variables
npm ci
make: npm: Command not found
make: *** [Makefile:7: node_modules] Error 127

Error: Build error: Failed building.
/var/lib/tarantool/default/cartridge.pre-build: 8: [: 2.10.0-0-g0a5ce0b9c: unexpected operator
   • Running `tarantoolctl rocks make`
Missing dependencies for try-cartridge scm-1:
   analytics scm-1 (not installed)
   cartridge-extensions scm-1 (not installed)
   crud 0.10.0 (not installed)

try-cartridge scm-1 depends on analytics scm-1 (not installed)
analytics not found for Lua 5.1.
Checking if available for other Lua versions...
Checking for Lua 5.2...
Checking for Lua 5.3...
Checking for Lua 5.4...

Error: Could not satisfy dependency analytics scm-1: No results matching query were found for Lua 5.1.
   ⨯ Failed to install rocks: Failed to run 
/usr/bin/tarantoolctl rocks make

exit status 1

Насколько я понимаю, вся ошибка из-за того, что analytics не видит npm?

Tarantool 2.10

Вышла новая версия tarantool - 2.10, неплохо бы обновить getting-started

Local installation not working

I'm going through this tutorial: https://www.tarantool.io/en/doc/latest/getting_started/getting_started_imcp/#installation

There's missing info that the build requires Node.js but I have npm already installed (v.16.16.0).

Error:

$ cartridge build --verbose
   • Build application in /home/ddaur/Documents/tarantool-tutorial/getting-started
   • Running `cartridge.pre-build`

Warning: variable CFLAGS was not passed in build_variables
npm run build

> @tarantool.io/[email protected] build
> node scripts/build.js

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module './src/long'
Require stack:
- /home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@xtuc/long/index.js
- /home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@webassemblyjs/wast-printer/lib/index.js
- /home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@webassemblyjs/helper-code-frame/lib/index.js
- /home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@webassemblyjs/wast-parser/lib/grammar.js
- /home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@webassemblyjs/wast-parser/lib/index.js
- /home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@webassemblyjs/ast/lib/node-helpers.js
- /home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@webassemblyjs/ast/lib/index.js
- /home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/webpack/lib/wasm/WebAssemblyParser.js
- /home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/webpack/lib/wasm/WebAssemblyModulesPlugin.js
- /home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/webpack/lib/WebpackOptionsApply.js
- /home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/webpack/lib/webpack.js
- /home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/scripts/build.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@xtuc/long/index.js:1:18)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@xtuc/long/index.js',
    '/home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@webassemblyjs/wast-printer/lib/index.js',
    '/home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@webassemblyjs/helper-code-frame/lib/index.js',
    '/home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@webassemblyjs/wast-parser/lib/grammar.js',
    '/home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@webassemblyjs/wast-parser/lib/index.js',
    '/home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@webassemblyjs/ast/lib/node-helpers.js',
    '/home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/@webassemblyjs/ast/lib/index.js',
    '/home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/webpack/lib/wasm/WebAssemblyParser.js',
    '/home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/webpack/lib/wasm/WebAssemblyModulesPlugin.js',
    '/home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/webpack/lib/WebpackOptionsApply.js',
    '/home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/node_modules/webpack/lib/webpack.js',
    '/home/ddaur/Documents/tarantool-tutorial/getting-started/analytics/scripts/build.js'
  ]
}
make: *** [Makefile:4: all] Error 1

Error: Build error: Failed building.
/home/ddaur/Documents/tarantool-tutorial/getting-started/cartridge.pre-build: 8: [: 2.10.0-rc1-0-g7ed15e62b: unexpected operator
   • Running `tarantoolctl rocks make`
Missing dependencies for try-cartridge scm-1:
   analytics scm-1 (not installed)
   cartridge-extensions scm-1 (not installed)
   crud 0.10.0 (not installed)

try-cartridge scm-1 depends on analytics scm-1 (not installed)
analytics not found for Lua 5.1.
Checking if available for other Lua versions...
Checking for Lua 5.2...
Checking for Lua 5.3...
Checking for Lua 5.4...

Error: Could not satisfy dependency analytics scm-1: No results matching query were found for Lua 5.1.
   ⨯ Failed to install rocks: Failed to run 
/usr/bin/tarantoolctl rocks make

exit status 1

Tarantool version:

Tarantool 2.10.0-0-g0a5ce0b9c
Target: Linux-x86_64-RelWithDebInfo
Build options: cmake . -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_BACKTRACE=ON
Compiler: /usr/bin/cc /usr/lib/ccache/g++
C_FLAGS:-g -O2 -fdebug-prefix-map=/build/tarantool-2.10.0=. -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fexceptions -funwind-tables -fno-common -fopenmp -msse2 -std=c11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation -Wno-gnu-alignof-expression -fno-gnu89-inline -Wno-cast-function-type
CXX_FLAGS:-g -O2 -fdebug-prefix-map=/build/tarantool-2.10.0=. -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fexceptions -funwind-tables -fno-common -fopenmp -msse2 -std=c++11 -Wall -Wextra -Wno-strict-aliasing -Wno-char-subscripts -Wno-format-truncation -Wno-invalid-offsetof -Wno-gnu-alignof-expression -Wno-cast-function-type

cartridge build fail

Установил tarantool как написано здесь https://www.tarantool.io/ru/download/os-installation/ubuntu/
Установил sudo apt-get install cartridge-cli

При запуске cartridge build как написано тут https://www.tarantool.io/ru/doc/latest/getting_started/getting_started_imcp/ получаю ошибку:

~/getting-started$ cartridge build

• Build application in /home/dema/tarantool-start/getting-started
• Running cartridge.pre-build
• Running tarantoolctl rocks make

Error: Could not satisfy dependency analytics scm-1: No results matching query were found for Lua 5.1.
Missing dependencies for try-cartridge scm-1:
analytics scm-1 (not installed)
cartridge-extensions scm-1 (not installed)
crud 0.10.0 (not installed)

try-cartridge scm-1 depends on analytics scm-1 (not installed)
analytics not found for Lua 5.1.
Checking if available for other Lua versions...
Checking for Lua 5.2...
Checking for Lua 5.3...
Checking for Lua 5.4...
⨯ Failed to install rocks: Failed to run
/usr/bin/tarantoolctl rocks make

Что не хватает для запуска? Локально tarantool работает.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.