如何在centos7上安装yugabyte-2.0.6.0/2.0.8.0? [英] How to install yugabyte-2.0.6.0/2.0.8.0 on centos7?

查看:593
本文介绍了如何在centos7上安装yugabyte-2.0.6.0/2.0.8.0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

环境:
os:centos7.6
内核:3.10.0-957.el7.x86_64
gcc版本4.8.5
Python 2.7.5
ip:10.1.2.3
主机名:srvr0
fqdn:srvr0.example.org

environment:
os: centos7.6
kernel: 3.10.0-957.el7.x86_64
gcc version 4.8.5
Python 2.7.5
ip:10.1.2.3
host name: srvr0
fqdn:srvr0.example.org

我正在尝试安装yugabyte,如下所示:
a)下载了yugabyte-2.0.6.0-linux.tar.gz
b)提取到/opt/yugabyte
c)将回送地址127.0.0.2/8, 127.0.0.3/8, 127.0.0.4/8, 127.0.0.5/8, 127.0.0.6/8, 127.0.0.7/8添加到接口lo
d)打开的端口7000, 9000, 7100, 5433, 9042, 6379
e)运行/opt/yugabyte/yugabyte-2.0.6.0/bin/post_install.sh
f)运行/opt/yugabyte/yugabyte-2.0.6.0/bin/yb-ctl --data_dir "/opt/yugabyte/data" create

I am trying to install yugabyte, as follows:
a) downloaded yugabyte-2.0.6.0-linux.tar.gz
b) extracted to /opt/yugabyte
c) added loopback addresses 127.0.0.2/8, 127.0.0.3/8, 127.0.0.4/8, 127.0.0.5/8, 127.0.0.6/8, 127.0.0.7/8 to interface lo
d) opened ports 7000, 9000, 7100, 5433, 9042, 6379
e) run /opt/yugabyte/yugabyte-2.0.6.0/bin/post_install.sh
f) run /opt/yugabyte/yugabyte-2.0.6.0/bin/yb-ctl --data_dir "/opt/yugabyte/data" create

但出现错误:

but getting error:

INFO: Waiting for master and tserver processes to comeup.
INFO: Waiting for master leader election and tablet server registration.
INFO: PIDs found:{'tserver': [None], 'master': [None]}
ERROR: Atleast one master or tserver is down.
^^^Encontered Errors^^^

Update1:​​
端口是免费的,即没有任何服务用尽,并且日志文件为空:

Update1:
the ports are free ie.not used up by any service and the log files are empty:

/opt/yugabyte/data/node-1/disk-1/tserver.err
/opt/yugabyte/data/node-1/disk-1/tserver.out
/opt/yugabyte/data/node-1/disk-1/master.err
/opt/yugabyte/data/node-1/disk-1/master.out
/tmp/tmp098oCG

和状态日志文件未创建:

and status logfiles are not created:

/opt/yugabyte/data/node-1/disk-1/tserver.INFO
/opt/yugabyte/data/node-1/disk-1/master.INFO

Update2:
ps -ef | grep {yb-master pid}ps -ef | grep {tserver pid}都有错误:

Update2:
both ps -ef | grep {yb-master pid} and ps -ef | grep {tserver pid} has error:

[1]+ Illegal instruction (core dumped)

Update3:
早期版本可以工作.

Update3:
earlier versions work.

更新4:

[root@srvr0 ~]# grep "invalid opcode" /var/log/messages
Nov 29 15:28:18 srvr0 kernel: traps: yb-tserver[12192] trap invalid opcode ip:7fa69e2f4b8a sp:7fff91e8dd00 error:0 in ld.so[7fa69e2ec000+1b000] 
Nov 29 15:28:18 srvr0 kernel: traps: yb-admin[12199] trap invalid opcode ip:7f2476ebbb8a sp:7fffeaa0cfb0 error:0 in ld.so[7f2476eb3000+1b000]

[root@srvr0 ~]# lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 37
Model name:            Intel(R) Core(TM) i7 CPU       M 620  @ 2.67GHz
Stepping:              5
CPU MHz:               1199.000
CPU max MHz:           2667.0000
CPU min MHz:           1199.0000
BogoMIPS:              5320.11
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              4096K
NUMA node0 CPU(s):     0-3
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt aes lahf_lm ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid dtherm ida arat spec_ctrl intel_stibp flush_l1d

[root@srvr0 ~]# uname -a
Linux srvr0 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

yugabyte-2.0.8.0的Update5(截至2019年12月22日):

Dec 21 19:14:54 srvr0 kernel: perf: interrupt took too long (3197 > 3181), lowering kernel.perf_event_max_sample_rate to 62000
Dec 21 19:14:54 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:14:54 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:14:54 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:14:54 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:03 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:03 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:03 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:03 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:03 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:07 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:07 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:07 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:07 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:10 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:13 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:13 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:16 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:16 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:19 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:19 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:47 srvr0 journal: unable to create file '/run/user/0/dconf/user': Permission denied.  dconf will not work properly.
Dec 21 19:15:49 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:15:49 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:16:01 srvr0 kernel: brcmsmac bcma0:1: wl0: brcms_c_d11hdrs_mac80211:  txop exceeded phylen 153/256 dur 1730/1504
Dec 21 19:16:03 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:16:03 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:16:23 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:16:23 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:16:53 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:16:53 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:18:32 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:18:32 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:18:44 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:18:44 srvr0 journal: g_simple_action_set_enabled: assertion 'G_IS_SIMPLE_ACTION (simple)' failed
Dec 21 19:19:35 srvr0 python: detected unhandled Python exception in '/opt/yugabyte/yugabyte-2.0.8.0/bin/yb-ctl'
Dec 21 19:19:36 srvr0 abrt-server: Executable '/opt/yugabyte/yugabyte-2.0.8.0/bin/yb-ctl' doesn't belong to any package and ProcessUnpackaged is set to 'no'
Dec 21 19:19:36 srvr0 abrt-server: 'post-create' on '/var/spool/abrt/Python-2019-12-21-19:19:36-15790' exited with 1
Dec 21 19:19:36 srvr0 abrt-server: Deleting problem directory '/var/spool/abrt/Python-2019-12-21-19:19:36-15790'
Dec 21 19:20:02 srvr0 systemd: Started Session 8 of user root.
[root@srvr0 ~]# 

请帮助我正确安装和配置yugabyte.

Please help me in installing and configuring yugabyte properly.

推荐答案

更新:

> https://github.com/yugabyte/yugabyte- db/issues/3044 .有些版本的YugabyteDB使用的是较新的linuxbrew 程序包受到此问题的影响. YugabyteDB 2.0.8版解决了此问题.

This issue was addressed by https://github.com/yugabyte/yugabyte-db/issues/3044. Some versions of YugabyteDB that were using newer linuxbrew packages were affected by this issue. The 2.0.8 version of YugabyteDB fixes this issue.

旧:

其中一个端口上可能正在运行其他内容.

It is possible that something else is running on one of the ports.

您能否查看/opt/yugabyte/data目录中的日志以获取线索??

Can you please look at logs in the /opt/yugabyte/data directory for clues.?

对于yb-master,请查找master.err/master.out/yb-master.INFO文件. 类似地,对于yb-tserver,请查找tserver.err/tserver.out/yb-tserver.INFO文件.

For yb-master, look for master.err/master.out/yb-master.INFO files. Similar, for yb-tserver look for tserver.err/tserver.out/yb-tserver.INFO files.

例如,使用它来查找err文件的位置. find . -name "master.err" -print

For example, use this to find the location of the err file. find . -name "master.err" -print

这篇关于如何在centos7上安装yugabyte-2.0.6.0/2.0.8.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆