OrientDB學習筆記

================ 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賬號下操作就可以了。

擴展閱讀:

http://orientdb.com/
簡介:

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
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 229,460評論 6 538
  • 序言:濱河連續發生了三起死亡事件,死亡現場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機,發現死者居然都...
    沈念sama閱讀 99,067評論 3 423
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事。” “怎么了?”我有些...
    開封第一講書人閱讀 177,467評論 0 382
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 63,468評論 1 316
  • 正文 為了忘掉前任,我火速辦了婚禮,結果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當我...
    茶點故事閱讀 72,184評論 6 410
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發上,一...
    開封第一講書人閱讀 55,582評論 1 325
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當著我的面吹牛,可吹牛的內容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 43,616評論 3 444
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 42,794評論 0 289
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當地人在樹林里發現了一具尸體,經...
    沈念sama閱讀 49,343評論 1 335
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 41,096評論 3 356
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發現自己被綠了。 大學時的朋友給我發了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 43,291評論 1 371
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 38,863評論 5 362
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質發生泄漏。R本人自食惡果不足惜,卻給世界環境...
    茶點故事閱讀 44,513評論 3 348
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 34,941評論 0 28
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 36,190評論 1 291
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 52,026評論 3 396
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 48,253評論 2 375

推薦閱讀更多精彩內容

  • Spring Cloud為開發人員提供了快速構建分布式系統中一些常見模式的工具(例如配置管理,服務發現,斷路器,智...
    卡卡羅2017閱讀 134,809評論 18 139
  • Docker — 云時代的程序分發方式 要說最近一年云計算業界有什么大事件?Google Compute Engi...
    ahohoho閱讀 15,576評論 15 147
  • 讓自己變得更潮更自信,不僅僅是衣服鞋子和包包,還有一個極其重要的部分。 就是你的發型。 你穿的衣服不能代表你,你腳...
    許晨Yolo閱讀 1,504評論 1 8
  • 什么是用戶體驗設計 用戶體驗設計是指用于交互體驗設計中的一糸列方法,方法背后的邏輯就是簡單易行。用戶體驗設計需要使...
    wangrad閱讀 1,288評論 0 1