Does TiDB support deployment on openEuler operating system version 22.03?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TIDB是否支持openEuler操作系统22.03版本的部署

| username: Qiao

I checked the official website and did not find any instructions for adapting to the Euler system. I saw some netizens saying that they successfully deployed on version 20.03, but we need to deploy on version 22.03. So, we installed it ourselves and found errors during deployment. Does this mean TiDB does not support deployment on Euler version 22.03?

| username: Billmay表妹 | Original post link

I only saw this practice article~

| username: 数据小黑 | Original post link

Since v6.1.1, TiDB provides different levels of quality standards support for different combinations of operating systems and CPU architectures.

  • On the following operating systems and corresponding CPU architecture combinations, TiDB meets enterprise-level production quality requirements, and product features have been comprehensively and systematically verified:
Operating System Supported CPU Architecture
* Red Hat Enterprise Linux 8.4 and above 8.x versions
* CentOS 8.4 and above 8.x versions * x86_64
* ARM 64
* Red Hat Enterprise Linux 7.3 and above 7.x versions
* CentOS 7.3 and above 7.x versions * x86_64
* ARM 64
Kylin V10 SP1/SP2 * x86_64
* ARM 64
UOS V20 * x86_64
* ARM 64

Note

According to CentOS Linux EOL, upstream support for CentOS ended on December 31, 2021.

  • On the following operating systems and corresponding CPU architecture combinations, you can compile, build, and deploy TiDB, and use basic OLTP and OLAP functions and data tools. However, TiDB does not guarantee enterprise-level production quality requirements:
Operating System Supported CPU Architecture
macOS Catalina and above versions * x86_64
* ARM 64
Oracle Enterprise Linux 7.3 and above 7.x versions x86_64
Ubuntu LTS 18.04 and above versions x86_64
Debian 9 (Stretch) and above versions x86_64
Fedora 35 and above versions x86_64
openSUSE Leap 15.3 and above versions (excluding Tumbleweed) x86_64
SUSE Linux Enterprise Server 15 x86_64

Note

  • TiDB only supports the Red Hat Compatible Kernel (RHCK) of Oracle Enterprise Linux and does not support the Unbreakable Enterprise Kernel provided by Oracle Enterprise Linux.
  • TiDB will no longer support Ubuntu 16.04. It is strongly recommended to upgrade to Ubuntu 18.04 or higher.
  • For the 32-bit versions of the operating systems listed in the above two tables, TiDB does not guarantee that it can be compiled, built, and deployed on these 32-bit operating systems and corresponding CPU architectures, or TiDB does not actively adapt to these 32-bit operating systems.
  • Operating system versions not mentioned above may be able to run TiDB, but they are not officially supported by TiDB.

Euler belongs to other systems. You can try to compile and deploy it, but it is not officially supported, and it is not confirmed whether it is stable and robust. The Euler 2003 version happens to be similar to the CentOS 7 architecture, so direct deployment is not a problem. However, it is not confirmed whether it is stable when actually running. Euler 2203 has significant differences from 2003, so direct deployment is not possible. According to my understanding, it needs to be recompiled and deployed.
Just because some users have successfully deployed the 2003 version does not mean it will definitely succeed on 2203. In other words, most programs successfully deployed on 2003 may not work on 2203 because the underlying GCC version has changed.

| username: Qiao | Original post link

Yes, I saw that too, but I can’t install 22.03 :sob:

| username: Qiao | Original post link

Okay, thank you.

| username: Billmay表妹 | Original post link

Remember to select the answer above and mark it as [Best Answer].

| username: tracy0984 | Original post link

I am also testing. According to the official documentation, this error can be resolved by enabling passwordless Sudo access for the installation user and manually creating SSH trust. I encountered this error at a different step. You can give it a try.

| username: Qiao | Original post link

Everything is configured. I have written a script for the entire installation process. The script works perfectly on CentOS, but it fails to install on Euler. Moreover, the error positions for TiDB 5.4 and 6.2 are different. For 5.4, it reports an error at the first SSH step, even though I have configured SSH properly. For 6.2, it reports an error later in the process.

| username: Billmay表妹 | Original post link

Take a look at these two contents, do they help you?

| username: tracy0984 | Original post link

Yes, I installed version 5.3. Indeed, the 2203 version of openEuler reported this error again during deployment, but in the 2003 version, the 5.3 installation went through normally…

| username: tracy0984 | Original post link

I have solved this problem, can you try again?
Solution:
echo “PubkeyAcceptedKeyTypes=+ssh-rsa” >>/etc/ssh/sshd_config
Then restart the sshd service.
Currently, I have successfully installed TiDB 5.3 on openEuler 2203.

| username: Qiao | Original post link

I tried your method with both 5.4.0 and 6.2.0, but it still doesn’t work. Have you encountered this error before?

| username: wuxiangdong | Original post link

It seems that the Euler system has done a lot of hardening, and it may be necessary to remove some of the SSH-related hardening.

| username: tracy0984 | Original post link

I haven’t encountered this error yet…
I modified the tiup cluster deploy command to specify --user as root instead of the current user, so there’s no need to modify the /usr/share/polkit-1/actions/org.freedesktop.systemd1.policy file.
In version 5.3.0, the default value for --user is root.
Then the installation was successful… I’ll test it further.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.