文中介紹了一個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:

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