日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

一步步学习如何安装并使用SAP HANA Express Edition

發布時間:2023/12/19 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 一步步学习如何安装并使用SAP HANA Express Edition 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

使用Jerry這篇文章在Google Cloud platform上的Kubernetes集群部署HANA Express里介紹的方法在Google Cloud Platform的Kubernetes cluster上安裝SAP HANA Express.

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

安裝完成后,在啟動的pod里有兩個容器,分別運行著SQLPad和HANA Express.

SQLPad是一個基于Nodejs開發的直接在瀏覽器運行SQL查詢并對結果進行可視化展示工具。SQLPad支持的數據庫非常多,比如:MySQL, Postgres, SQL Server, Vertica, Crate, Presto等。

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

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


注冊一個帳戶并登錄:

選擇admin-Connections:

新建一個數據庫連接:

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

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

把這個地址填到數據庫創建向導里:

創建一個名為quotes的collection并插入一些數據:

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 });

注意這個生成的sql collection并不是數據庫表,而是一種document store(noSQL),實際上只是鍵值對-key value pair.

下面的SQL語句執行的操作是把document store里的值取出進行分析,將分析結果存放到新創建的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;

要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":

總結

以上是生活随笔為你收集整理的一步步学习如何安装并使用SAP HANA Express Edition的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。