================ TODO ==============
http://orientdb.com/orientdb-enterprise/
https://github.com/orientechnologies/orientdb-hademo
https://github.com/orientechnologies/orientdb-hademo
http://orientdb.com/orientdb-enterprise/?#matrix
https://www.udemy.com/orientdb-getting-started/
https://orientdb.com/docs/2.2/SQL-HA-Sync-Cluster.html
https://www.youtube.com/watch?v=WdP6n2SXVG0
================
OrientDB
OrientDB是兼具文檔數據庫的靈活性和圖形數據庫管理鏈接能力的可深層次擴展的文檔-圖形數據庫管理系統。可選無模式、全模式或混合模式下。支持許多高級特性,諸如ACID事務、快速索引,原生和SQL查詢功能。可以JSON格式導入、導出文檔。若不執行昂貴的JOIN操作的話,如同關系數據庫可在幾毫秒內可檢索數以百記的鏈接文檔圖。
安裝:
通過docker進行安裝:
$ docker run -d --name orientdb -p 2424:2424 -p 2480:2480 -e ORIENTDB_ROOT_PASSWORD=root orientdb:latest
# docker run -d --name orientdb -p 2424:2424 -p 2480:2480 -e ORIENTDB_ROOT_PASSWORD=root orientdb:latest
Unable to find image 'orientdb:latest' locally
Trying to pull repository docker.io/library/orientdb ...
latest: Pulling from docker.io/library/orientdb
88286f41530e: Pull complete
009f6e766a1b: Pull complete
86ed68184682: Pull complete
c26e632329da: Pull complete
458eb9b8c69e: Pull complete
Digest: sha256:ed30e40f4fa6dc2d7ee6ec3937dc31a4c99877e091b8487346a10607e89e6362
ae37adb5d6b2493e2b6bc8711fa5e3373998fd6223cf4151f8ba4c09a57a8b62
# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
disconfcompose_disconf-app latest 67de9e7fc6be 4 days ago 357.3 MB
disconfcompose_disconf-zoo latest 2888fec417af 4 days ago 388 MB
syswin/disconf-build latest bdbb988abf0c 4 days ago 600.8 MB
docker.io/mysql 5.7 c73c7527c03a 5 days ago 412.3 MB
docker.io/tomcat 7.0 3402a4bb8ae6 6 days ago 357.3 MB
docker.io/orientdb latest e0723e4b0ee2 9 days ago 149.6 MB
docker.io/redis 3.0 c44fa74ead88 5 weeks ago 91.53 MB
docker.io/maven 3.3-jdk-7 5fa565e704e4 4 months ago 595.9 MB
docker.io/java 7-jre b0006d129082 6 months ago 331.5 MB
docker.io/nginx 1.9 c8c29d842c09 14 months ago 182.7 MB
# docker run docker.io/orientdb
.
.` `
, `:.
`,` ,:`
.,. :,,
.,, ,,,
. .,.::::: ```` ::::::::: :::::::::
,` .::,,,,::.,,,,,,`;; .: :::::::::: ::: :::
`,. ::,,,,,,,:.,,.` ` .: ::: ::: ::: :::
,,:,:,,,,,,,,::. ` ` `` .: ::: ::: ::: :::
,,:.,,,,,,,,,: `::, ,, ::,::` : :,::` :::: ::: ::: ::: :::
,:,,,,,,,,,,::,: ,, :. : :: : .: ::: ::: :::::::
:,,,,,,,,,,:,:: ,, : : : : .: ::: ::: :::::::::
` :,,,,,,,,,,:,::, ,, .:::::::: : : .: ::: ::: ::: :::
`,...,,:,,,,,,,,,: .:,. ,, ,, : : .: ::: ::: ::: :::
.,,,,::,,,,,,,: `: , ,, : ` : : .: ::: ::: ::: :::
...,::,,,,::.. `: .,, :, : : : .: ::::::::::: ::: :::
,::::,,,. `: ,, ::::: : : .: ::::::::: ::::::::::
,,:` `,,.
,,, .,`
,,. `, GRAPH DATABASE
`` `.
`` orientdb.com
`
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1431830528 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /orientdb/bin/hs_err_pid1.log
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000080000000, 1431830528, 0) failed; error='Out of memory' (errno=12)
問題1:
$ docker run -d --name orientdb -p 2424:2424 -p 2480:2480 -e ORIENTDB_ROOT_PASSWORD=root orientdb:latest
/usr/bin/docker-current: Cannot connect to the Docker daemon. Is the docker daemon running on this host?.
See '/usr/bin/docker-current run --help'.
$ docker run -d --name orientdb -p 2424:2424 -p 2480:2480 -e ORIENTDB_ROOT_PASSWORD=root orientdb:latest
Unable to find image 'orientdb:latest' locally
Trying to pull repository docker.io/library/orientdb ...
latest: Pulling from docker.io/library/orientdb
88286f41530e: Pull complete
009f6e766a1b: Pull complete
86ed68184682: Pull complete
c26e632329da: Pull complete
458eb9b8c69e: Pull complete
Digest: sha256:ed30e40f4fa6dc2d7ee6ec3937dc31a4c99877e091b8487346a10607e89e6362
ae37adb5d6b2493e2b6bc8711fa5e3373998fd6223cf4151f8ba4c09a57a8b62
解決:
切換到root賬號下操作就可以了。
擴展閱讀:
orientdb 的官網。
OrientDB - The World's First Distributed Multi-Model NoSQL Database with a Graph Database Engine
http://orientdb.com/orientdb-enterprise/
簡介:
企業版,提供一些有用的工具。
[OrientDB] OrientDB 入門教程 (英文版)
http://down.51cto.com/data/1081456
簡介:
英文教程,需要積分下載。
https://www.w3cschool.cn/orientdb/orientdb-mx931xi1.html
簡介:
w3c 上的一個教程,很全面的中文系列教程。比較容易入手。
OrientDB基本概念
https://www.w3cschool.cn/orientdb/orientdb_basic_concepts.html
ArangoDB,MongoDB,Neo4j 和 OrientDB 性能比較
http://www.aiisen.com/20535-zh.html
簡介:
一個簡單的比較。
如何在 Ubuntu 16.04 上安裝和配置 OrientDB
https://www.tutobrid.com/operation_engineer/how-to-install-and-configure-orientdb-on-ubuntu-16-04.html
一個備用地址:
Ubuntu 16.04 上 OrientDB 安裝配置教程
http://www.linuxidc.com/Linux/2017-05/143863.htm
簡介:
解釋的很好。作者用的是在ubutnu下源碼安裝。常見的使用場景和常見問題都介紹到了。
http://orientdb.com/download/
簡介: NOTE: 按照這里的docker 安裝方式可以安裝(需要修改jdk的配置)
OrientDB給出的下載頁面。
支持多平臺源碼下載,支持docker安裝。
支持多種編程語言接入。
http://orientdb.com/docs/last/Programming-Language-Bindings.html
簡介:
不同編程語言接入的API.
OrientDB driver for Python that uses the binary protocol.
https://github.com/orientechnologies/pyorient
簡介:
Python的Binary接入API。
比較常用的orientdb的驅動。
目前使用pyorient來操作數據庫。
Python REST interface for OrientDB
https://github.com/emehrkay/Compass
簡介:
Python的REST接入API。看起來還不是很成熟。
Compass is a simple Python REST interface for the OrientDB graph document store. Later iterations of compass will allow you to choose between the REST or BINARY protocols while using the same compass interface.
Requirements
Python 2.6
OrientDB Rest Server