天天看點

rasdaman介紹及安裝

一、分布式介紹

       Rasdaman中的主節點稱為Rasdaman的主機,它充當中央Rasdaman請求分派器并且控制所有伺服器程序。Rasdaman管理器接收客戶機請求并将這些請求配置設定給伺服器程序。伺服器程序解析和配置設定請求,然後生成對資料庫主機上的關系伺服器的調用。根據調用,關系伺服器從關系資料庫存儲中檢索指定的資料。檢索到的資料通過網絡發送到客戶機的節點。

rasdaman介紹及安裝

二、資料模型

      基于數組的資料模型時Rasdaman中用來組織資料集的基本資料結構。次元上的每個單元格/元素都包含一個獨立的或符合的值,但是所有單元格都具有相同的結構,并且值的位置是從索引中計算出來的的。在Rasdaman中,每個次元的索引隻能是整數,不支援地理坐标投影。數組的每個單元格都定義為基數類型和符合資料類型,包括嵌套結構。數組被分組到集合中,集合構成數組處理的基礎,就像關系資料庫中的表一樣。

三、實體數模型

      Rasdaman在查詢語言中提供了數組存儲布局語言,使使用者能夠控制重要的實體調優參數。塊方案包括規則快、對齊塊、定向塊和感興趣的區域塊。在使用者設定了分塊參數之後,Rasdaman會在資料加載過程中自動将輸入資料劃分為塊,并将它們與本地資料庫中的中繼資料一起存儲。Rasdaman還支援針對不同分塊方案的不同索引。R+樹索引和目錄索引都适用于所有的分塊方案,而正常計算所有隻适用于正常平鋪,但是比其他所有更快。

四、安裝

擷取穩定的rasdaman.repo源
sudo curl "http://download.rasdaman.org/packages/rpm/stable/CentOS/7/x86_64/rasdaman.repo" -o /etc/yum.repos.d/rasdaman.repo

通過yum擷取rpm包
sudo yum clean all
sudo yum update

擷取epel存儲庫
sudo yum install epel-release
安裝rasdaman軟體包:(這裡會有兩個包grib_api和grib_api_dever兩個包安裝失敗,因為這兩個包已經一個軟體包取代,但是這個取代它們的軟體包不被rasdaman認可故安裝失敗)
sudo yum install rasdaman
source /etc/profile.d/rasdaman.sh

下載下傳grib_api和grib_api_dever兩個rpm包,手動安裝:
(這裡缺少libopenjpeg.so.2()(64bit),安裝下載下傳下面三個包lib64openjpeg-devel、
lib64openjpeg2等一系列包)
http://rpmfind.net/linux/rpm2html/search.php?query=libopenjpeg.so.2%28%29%
2864bit%29&submit=Search+...&system=&arch=

檢測能否正常使用:
rasql -q 'select c from RAS_COLLECTIONNAMES as c' --out string
http://localhost:8080/rasdaman/ows
更新
sudo service rasdaman stop
sudo service tomcat stop
sudo yum clean all
sudo yum update rasdaman
sudo migrate_petascopedb.sh

問題1:執行上面語句報錯:host::1 xxx 的錯,需要去gb_hb中将權限問題,根據需要更改。
service rasdaman start
service rasdaman stop
service rasdaman status
service tomcat status
service postgresql status

問題2:發現開啟tomcat後無法通路到頁面資料!
原因:檢視了Tomcat日志是因為無法通路到PG資料庫的資料,rasdaman的很多資料儲存在
PG資料庫,将PG設定為不通過密碼驗證就能正常通路了。