怎么安裝并使用SAPHANAExpressEdition

這篇文章主要介紹了怎么安裝并使用SAP HANA Express Edition,具有一定借鑒價(jià)值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。

專注于為中小企業(yè)提供網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè)服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)畢節(jié)免費(fèi)做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動(dòng)了上1000家企業(yè)的穩(wěn)健成長(zhǎng),幫助中小企業(yè)通過網(wǎng)站建設(shè)實(shí)現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。

文中介紹了一個(gè)yaml文件,里面聲明了容器鏡像文件store/saplabs/hanaexpress:2.00.033.00.20180925.2.

安裝完成后,在啟動(dòng)的pod里有兩個(gè)容器,分別運(yùn)行著SQLPad和HANA Express.

SQLPad是一個(gè)基于Nodejs開發(fā)的直接在瀏覽器運(yùn)行SQL查詢并對(duì)結(jié)果進(jìn)行可視化展示工具。SQLPad支持的數(shù)據(jù)庫非常多,比如:MySQL, Postgres, SQL Server, Vertica, Crate, Presto等。

使用kubectl get services拿到sqlpad的external IP:

怎么安裝并使用SAP HANA Express Edition

在瀏覽器里輸入剛才獲得的IP地址,后面加上默認(rèn)的3000端口,打開sqlpad的web控制臺(tái):

怎么安裝并使用SAP HANA Express Edition怎么安裝并使用SAP HANA Express Edition

注冊(cè)一個(gè)帳戶并登錄:

怎么安裝并使用SAP HANA Express Edition

選擇admin-Connections:

怎么安裝并使用SAP HANA Express Edition

新建一個(gè)數(shù)據(jù)庫連接:

怎么安裝并使用SAP HANA Express Edition

database driver從下拉菜單里選擇SAP HANA:

怎么安裝并使用SAP HANA Express Edition

回到Google Cloud Platform的cloud shell,使用kubectl get services獲得hxe-connect的external IP:

怎么安裝并使用SAP HANA Express Edition

把這個(gè)地址填到數(shù)據(jù)庫創(chuàng)建向?qū)Ю铮?/p>

怎么安裝并使用SAP HANA Express Edition

創(chuàng)建一個(gè)名為quotes的collection并插入一些數(shù)據(jù):

create collection quotes;
insert into quotes values ( { "FROM" : 'HOMER', "TO" : 'BART',  "QUOTE" :  'I want to share something with you: The three little sentences that will get you through life. Number 1: Cover for me. Number 2: Oh, good idea, Boss! Number 3: It wai like that when I got here.', "MOES_BAR" : 'Point(  -86.880306 36.508361 )', "QUOTE_ID" : 1  });
insert into quotes values ( { "EPISODE" : 'GRADE SCHOOL CONFIDENTIAL', "FROM" : 'HOMER',   "QUOTE" :  'Wait a minute. Bart''s teacher is named Krabappel? Oh, I''ve been calling her Crandall. Why did not anyone tell me? Ohhh, I have been making an idiot out of myself!', "QUOTE_ID" : 2, "MOES_BAR" : 'Point( 2.161018 41.392641 )' });
insert into quotes values ( { "FROM" : 'HOMER',   "QUOTE" :  'Oh no! What have I done? I smashed open my little boy''s piggy bank, and for what? A few measly cents, not even enough to buy one beer. Weit a minute, lemme count and make sure…not even close.', "MOES_BAR" : 'Point( -122.400690 37.784366 )', "QUOTE_ID" : 3 });

注意這個(gè)生成的sql collection并不是數(shù)據(jù)庫表,而是一種document store(NOSQL),實(shí)際上只是鍵值對(duì)-key value pair.

下面的SQL語句執(zhí)行的操作是把document store里的值取出進(jìn)行分析,將分析結(jié)果存放到新創(chuàng)建的column table里:

--Create a columnar table with a text fuzzy search index
create column table quote_analysis
(
	id integer,
	homer_quote text FAST PREPROCESS ON FUZZY SEARCH INDEX ON,
	lon_lat nvarchar(200)
);
-- Copy the quotes form the JSON store to the relational table
insert into quote_analysis
with doc_store as (select quote_id, quote from quotes)
select doc_store.quote_id as id, doc_store.quote as homer_quote, 'Point( 2.151255 41.354159 )'
from doc_store;

感謝你能夠認(rèn)真閱讀完這篇文章,希望小編分享的“怎么安裝并使用SAP HANA Express Edition”這篇文章對(duì)大家有幫助,同時(shí)也希望大家多多支持創(chuàng)新互聯(lián),關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,更多相關(guān)知識(shí)等著你來學(xué)習(xí)!

網(wǎng)站名稱:怎么安裝并使用SAPHANAExpressEdition
URL地址:http://muchs.cn/article0/pgogoo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)網(wǎng)站建設(shè)、動(dòng)態(tài)網(wǎng)站移動(dòng)網(wǎng)站建設(shè)、外貿(mào)建站、網(wǎng)頁設(shè)計(jì)公司、定制開發(fā)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

商城網(wǎng)站建設(shè)