当前位置:网站首页>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
边栏推荐
- The basis of C language grammar -- pointer (multidimensional array, function, summary) learning
- LeetCode 基本计算器 224. 227. follow up 394
- js---获取对象数组中key值相同的数据,得到一个新的数组
- Cento7.7 elk installation simple record
- Testing practice - App testing considerations
- logback
- Vscode common programming fonts
- 【轨迹规划】Ruckig库的测试
- Thinking before QPM preparation optimization
- Teach you to use shell script to check whether the server program is running
猜你喜欢
Champions League data set (Messi doesn't cry - leaving Barcelona may reach another peak)
十万行事务锁,开了眼界了。
Jz2440--- using uboot burning program
jz2440---使用uboot燒錄程序
c语言语法基础之——局部变量及存储类别、全局变量及存储类别、宏定义 学习
Redis 新手入门
力扣------从数组中移除最大值和最小值
Badge series 8: generate a personalized Badge
install opencv-contrib-dev to use aruco code
Notes on sports planning on November 22, 2021
随机推荐
SQL function
SQL 函数
Install new version cmake & swig & tinyspline
js---获取对象数组中key值相同的数据,得到一个新的数组
c语言语法基础之——函数嵌套、递归 小程序斐波那契之和、阶乘
2021年全国职业院校技能大赛(中职组)网络安全竞赛试题(1)详细解析教程
online trajectory generation
DAY 3 数组,前置后置,字符空间,关键词和地址指针
Notes on sports planning on November 22, 2021
使用递归或while循环获取父/子层级结构的名称
Do you know the //go: instructions in the go source code, go:linkname?
Force buckle ----- remove the maximum and minimum values from the array
Daily-used English phrases
libgstreamer-1.0. so. 0: cannot open shared object file: No such file or directory
TensorFlow遇到的各种错误
测试须知——常见接口协议解析
LeetCode 剑指 Offer II 091.粉刷房子 - 原地修改
Speed test of adding, deleting, modifying and querying 5million pieces of data in a single MySQL table
online trajectory generation
Enter the page input box to automatically obtain the focus