当前位置:网站首页>Cloud native essay using Hana expression database service on Google kubernetes cluster
Cloud native essay using Hana expression database service on Google kubernetes cluster
2022-06-26 09:53:00 【51CTO】
We know ,Cluster yes Google Kubernetes Engine ( abbreviation GKE) The basis of , Represents a container application Kubernetes Objects are running on the cluster .
Google Kubernetes Engine (GKE) Provides a managed environment , Developers can use Google Infrastructure on GKE Deployment in China 、 Management and expansion of containerized applications .GKE The environment includes multiple Compute Engine example , These instances are combined to form Google Kubernetes Cluster.
SAP HANA Expression yes SAP HANA Simplified version of , Designed for use on laptops and other mainframe computers ( Including cloud hosted virtual machines ) Up operation , Of course, it supports the Google Kubernetes Cluster Up operation . This version supports SAP HANA In addition to the traditional memory database function , Also provide bring-your-own-language And so on , Support microservices 、 Predictive analysis and machine learning algorithms , And geospatial processing for building insight driven applications .

This article will describe in detail how to Google Kubernetes Cluster Deploy and use HANA Expression Database Service.
stay Google Cloud Platform To create a Google Kubernetes Cluster example
Sign in Google Cloud Platform Console :

Click... In the upper left corner of the console Hamburger menu , Create a new Kubernetes Cluster:

maintain Cluster The name of , Choose the right version , Click on Customize customize :
by Cluster Appoint CPU And memory parameters , selected Ubuntu As an operating system .Cluster The size of is set to 1.
Cluster After creation and successful deployment , Click on Connect Button to connect .

After successful connection , You can use Cloud Shell Operate the cluster :
Cloud Shell The command line is provided in the same way as Cluster Interact .

stay Google Kubernetes Cluster Upper Department HANA Expression Database Service
Use the following command to create a secret In order to get Docker Mirror image :
kubectl create secret docker-registry docker-secret --docker-server=https://index.docker.io/v1/ --docker-username=xxx --docker-password=yyyyyy [email protected]
Create a yaml Deployment configuration file in (Deployment Configuration File), Save as hxe.yaml file :
This yaml The file defines a HANA Expression Of Docker Mirror image :store/saplabs/hanaexpress:2.00.030.00.20180403.2
Use the following command line to run this Docker Image deployment to Kubernetes Cluster On :
- kubectl create -f hxe.yaml
- kubectl describe pods
Wait for the deployment to complete successfully :

Execute the command line kubectl get pods, Make sure pod Status as Running, Then enter Pod Inside of container :
kubectl exec -it <<pod-name>> bash
You can use SQL Command line , The connection runs on Pod Inside HANA Expression The instance :
hdbsql -i 90 -d systemdb -u SYSTEM -p HXEHana1
Add... To the database document store Support for :alter database HXE add 'docstore';
from SQLPAD service get external IP Address :
kubectl get services

With this externally accessible IP After the address , Visit its 3000 port , You can log in to the browser SQLPAD 了 :

Click on Sign In, Create a Administration account.

Use Connections menu , Connect HANA Expression Database tables in the instance :
from kubectl get services Found in the command line results list hxe-connect, Copy its External IP Address :

Create a new database connection , Maintain just copied External IP Address , Database user name and password ,Tenant Other login information :

After the database connection is established , You can create a new one Query, Read and write it .

Create a name quotes Of document store, And insert some test data :
Create a Column surface , Turn on Fuzzy Search Support for :
Insert into document store collection Copy the data to the above Column table :
Query and wait The word with the lowest similarity :
summary
thus , We finished in Google Kubernetes Cluster In the operation HANA Expression Database Service Operation steps of . It is not difficult to feel from the whole process , Will include HANA Expression Of Docker The image is deployed in Google Kubernetes Cluster And run in Pod Inside , Realized HANA Expression Service out of the box , Thus avoiding On-Premises In deployment mode HANA Expression Tedious installation and configuration steps .
【 This article is participating in the cloud native prize essay solicitation activity 】, Activity Links : https://ost.51cto.com/posts/12598
边栏推荐
猜你喜欢

Badge collection 6:api\_ Use of level

install realsense2: The following packages have unmet dependencies: libgtk-3-dev

c语言语法基础之——指针(字符、一维数组) 学习

Redis notes (12) - single thread architecture (non blocking IO, multiplexing) and multiple asynchronous threads
![Logical English structure [key points]](/img/4b/52a666ed01087adbc5fa4f9e1db393.png)
Logical English structure [key points]

logback

国际化配置
![[trajectory planning] testing of ruckig Library](/img/c7/51c0f6dc3bf7c7fa4528118a4c32fa.png)
[trajectory planning] testing of ruckig Library

Badge series 8: generate a personalized Badge

2021-11-22 运动规划杂记
随机推荐
英语常用短语
深度学习(初识tensorflow2.版本)之三好学生成绩问题(1)
软件测试---如何选择合适的正交表
Introduction to QPM
自动化测试——关于unitest与pytest初始化共存问题
How to create an IE tab in edge browser
The shutter tabbar listener is called twice
Leetcode connected to rainwater series 42 (one dimension) 407 (2D)
Abnormal record-23
Notes on sports planning on November 22, 2021
Various errors encountered by tensorflow
Code statistics tools cloc and SCC
Upgrade idea to 2021.2 shortcut keys
Daily-used English phrases
#云原生征文# 在 Google Kubernetes Cluster 上使用 HANA Expression Database Service
Redis notes (15) - Pipeline (the client packages and sends batch commands to save network overhead)
c语言语法基础之——指针( 多维数组、函数、总结 ) 学习
十万行事务锁,开了眼界了。
Does the go compiled executable have dynamic library links?
The third-party extension package of thinkphp6.0 supports uploading to Alibaba cloud and qiniu cloud