安装到install_ambari.sh mysql出错

DMGYZ 2周前
50次浏览 0人关注 复制链接 所属标签: EXCEL 安装报错

Configuring database...
Enter advanced database configuration [y/n] (n)? y
Configuring database...
==============================================================================
Choose one of the following options:
[1] - PostgreSQL (Embedded)
[2] - Oracle
[3] - MySQL / MariaDB
[4] - PostgreSQL
[5] - Microsoft SQL Server (Tech Preview)
[6] - SQL Anywhere
[7] - BDB
==============================================================================
Enter choice (1): 3
Hostname (localhost): ark1.analysys.xyz
Port (3306): 3306
Database name (ambari): ambari
Username (ambari): ambari
Enter Database Password (bigdata):
Re-enter password:
Configuring ambari database...
Configuring remote database connection properties...
WARNING: Before starting Ambari Server, you must run the following DDL against the database to create the schema: /var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql
Proceed with configuring remote database connection properties [y/n] (y)? y
Extracting system views...
ambari-admin-2.5.1.0.159.jar
...........
Adjusting ambari-server permissions and ownership...
Ambari Server 'setup' completed successfully.
install_ambari.sh: line 84: mysql: command not found
[argo@ark1 soft]$ netstat -ntlp

3条回答
朱楠@Argo运营 2周前

发下环境监测信息

有用0 评论1
登录后可参与回答,请 登录
DMGYZ 回复 朱楠@Argo运营 2周前

发上面了

有用0 评论
DMGYZ 2周前

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.cn99.com
* updates: mirrors.aliyun.com
Package 2:nmap-ncat-6.40-19.el7.x86_64 already installed and latest version
Nothing to do

系统检查脚本:Version 2020-11-09
*******************************************************系统检查 *******************************************************
系统:GNU/Linux
发行版本:CentOS Linux release 7.6.1810 (Core)
内核:3.10.0-957.el7.x86_64
主机名:ark1
SELinux:enabled
语言/编码:en_US.UTF-8
当前时间:2020-11-09 16:43:15
最后启动:2020-11-09 14:35
运行时间: 2:07
umask:0022
*******************************************************CPU检查*******************************************************
物理CPU个数:2
逻辑CPU个数:4
每CPU核心数:2
CPU型号:Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
CPU架构:x86_64
CPU特性:Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec arat spec_ctrl intel_stibp flush_l1d arch_capabilities
*******************************************************内存检查*******************************************************
total used free shared buff/cache available
Mem: 15G 484M 189M 11M 14G 14G
Swap: 2.0G 0B 2.0G
*******************************************************hosts检查*******************************************************
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.126.100 ark1.analysys.xyz ark1
*******************************************************磁盘挂载使用检查*******************************************************
Mounted Filesystem | Type Size Used Avail | Filesystem Inodes IUsed IFree | IUse%
/ /dev/mapper/centos-root | xfs 147G 28G 120G | /dev/mapper/centos-root 74M 80K 74M | 1%
/dev devtmpfs | devtmpfs 7.8G 0 7.8G | devtmpfs 2.0M 411 2.0M | 1%
/dev/shm tmpfs | tmpfs 7.8G 0 7.8G | tmpfs 2.0M 1 2.0M | 1%
/run tmpfs | tmpfs 7.8G 12M 7.8G | tmpfs 2.0M 1.4K 2.0M | 1%
/sys/fs/cgroup tmpfs | tmpfs 7.8G 0 7.8G | tmpfs 2.0M 16 2.0M | 1%
/data1 /dev/sdb | ext4 148G 61M 140G | /dev/sdb 9.4M 12 9.4M | 1%
/boot /dev/sda1 | xfs 1014M 146M 869M | /dev/sda1 512K 327 512K | 1%
/run/user/0 tmpfs | tmpfs 1.6G 0 1.6G | tmpfs 2.0M 1 2.0M | 1%

*******************************************************磁盘个数检查*******************************************************
Disk /dev/sda: 161.1 GB, 161061273600 bytes, 314572800 sectors
Disk label type: dos
Disk identifier: 0x000e0b9b
Disk /dev/sdb: 161.1 GB, 161061273600 bytes, 314572800 sectors
Disk /dev/mapper/centos-root: 157.8 GB, 157831659520 bytes, 308264960 sectors
Disk /dev/mapper/centos-swap: 2147 MB, 2147483648 bytes, 4194304 sectors
******************************************************硬件厂商检查*******************************************************
Manufacturer: VMware, Inc.
Product Name: VMware Virtual Platform
UUID: 9b7a4d56-be60-6929-658d-ca715151ccad
*******************************************************网络检查*******************************************************
ens33: 192.168.126.100/24
ens34: 192.168.1.33/24
ens33
Speed: 1000Mb/s
ens34
Speed: 1000Mb/s
网关:192.168.1.1 | DNS:192.168.1.1
网络连接:可以连接外网
*******************************************************监听检查*******************************************************
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
udp UNCONN 0 0 *:68 *:*
udp UNCONN 0 0 192.168.1.33:123 *:*
udp UNCONN 0 0 192.168.126.100:123 *:*
udp UNCONN 0 0 127.0.0.1:123 *:*
udp UNCONN 0 0 *:123 *:*
udp UNCONN 0 0 :::123 :::*
tcp LISTEN 0 128 *:22 *:*
tcp LISTEN 0 5 *:9381 *:*
tcp LISTEN 0 384 :::3306 :::*
tcp LISTEN 0 128 :::22 :::*
*******************************************************进程检查*******************************************************

内存占用TOP10
-------------
PID %MEM RSS COMMAND
18627 1.6 270812 /opt/soft/analysys-mysql/bin/mysqld
9570 0.1 17116 /usr/bin/python2
9224 0.0 14328 /usr/lib/polkit-1/polkitd
16836 0.0 10252 /usr/bin/python
9219 0.0 8752 /usr/sbin/NetworkManager
1 0.0 7400 /usr/lib/systemd/systemd
4658 0.0 6524 /usr/lib/systemd/systemd-journald
16418 0.0 6352 sshd:
9225 0.0 6328 /usr/bin/vmtoolsd
9222 0.0 6108 /usr/bin/VGAuthService

CPU占用TOP10
------------
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
23126 root 20 0 161880 2140 1536 R 6.2 0.0 0:00.02 top
1 root 20 0 194292 7400 4168 S 0.0 0.0 0:03.20 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:08.78 ksoftirqd/0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
7 root rt 0 0 0 0 S 0.0 0.0 0:00.42 migration/0
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
9 root 20 0 0 0 0 S 0.0 0.0 0:02.21 rcu_sched
10 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 lru-add-drain
11 root rt 0 0 0 0 S 0.0 0.0 0:00.07 watchdog/0
*******************************************************服务检查*******************************************************

服务配置
--------
atd.service enabled
auditd.service enabled
autovt@.service enabled
crond.service enabled
dbus-org.freedesktop.NetworkManager.service enabled
dbus-org.freedesktop.nm-dispatcher.service enabled
getty@.service enabled
kdump.service enabled
lvm2-monitor.service enabled
microcode.service enabled
NetworkManager-dispatcher.service enabled
NetworkManager-wait-online.service enabled
NetworkManager.service enabled
ntpd.service enabled
rhel-autorelabel.service enabled
rhel-configure.service enabled
rhel-dmesg.service enabled
rhel-domainname.service enabled
rhel-import-state.service enabled
rhel-loadmodules.service enabled
rhel-readonly.service enabled
rsyslog.service enabled
sshd.service enabled
sysstat.service enabled
systemd-readahead-collect.service enabled
systemd-readahead-drop.service enabled
systemd-readahead-replay.service enabled
tuned.service enabled
vgauthd.service enabled
vmtoolsd.service enabled

正在运行的服务
--------------
atd.service loaded active running Job spooling tools
auditd.service loaded active running Security Auditing Service
crond.service loaded active running Command Scheduler
dbus.service loaded active running D-Bus System Message Bus
getty@tty1.service loaded active running Getty on tty1
lvm2-lvmetad.service loaded active running LVM2 metadata daemon
NetworkManager.service loaded active running Network Manager
ntpd.service loaded active running Network Time Service
polkit.service loaded active running Authorization Manager
rsyslog.service loaded active running System Logging Service
sshd.service loaded active running OpenSSH server daemon
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-udevd.service loaded active running udev Kernel Device Manager
tuned.service loaded active running Dynamic System Tuning Daemon
vgauthd.service loaded active running VGAuth Service for open-vm-tools
vmtoolsd.service loaded active running Service for virtual machines hosted on VMware
*******************************************************自启动检查*******************************************************
touch /var/lock/subsys/local
*******************************************************计划任务检查*******************************************************
-rw-r--r--. 1 root root 128 Apr 11 2018 /etc/cron.d/0hourly
-rw-------. 1 root root 235 Apr 1 2020 /etc/cron.d/sysstat
-rw-r--r--. 1 root root 825 Nov 9 14:20 /etc/cron.d/fangzhou
-rw-r--r--. 1 root root 157 Nov 9 15:41 /etc/cron.d/mysqldump
-rwx------. 1 root root 219 Oct 31 2018 /etc/cron.daily/logrotate
-rwxr-xr-x. 1 root root 618 Oct 30 2018 /etc/cron.daily/man-db.cron
-rwxr-xr-x. 1 root root 18823 Mar 1 2019 /etc/cron.daily/google-chrome
-rw-------. 1 root root 0 Apr 11 2018 /etc/cron.deny
-rwxr-xr-x. 1 root root 392 Apr 11 2018 /etc/cron.hourly/0anacron
-rw-r--r--. 1 root root 451 Jun 10 2014 /etc/crontab
*******************************************************用户检查*******************************************************
/etc/passwd: 2020-11-09 15:41:40 (0 天 1 小时前)

特权用户
--------
root

用户列表
--------
用户名 UID GID HOME SHELL 最后一次登录
root 0 0 /root /bin/bash 2020-11-09_14:35:00
mysql 998 996 /var/lib/mysql /bin/bash 从未登录过
argo 1000 1000 /home/argo /bin/bash 2020-11-09_14:18:00
isuhadoop 1001 1001 /home/isuhadoop /bin/bash 从未登录过
hue 1002 1001 /home/hue /bin/bash 从未登录过
streaming 1003 1001 /home/streaming /bin/bash 从未登录过
postgres 26 26 /var/lib/pgsql /bin/bash 从未登录过

空密码用户
----------
mysql
isuhadoop
hue
streaming
postgres

相同ID的用户
------------
*******************************************************密码检查*******************************************************

密码过期检查
------------
root 永不过期
mysql 永不过期
argo 永不过期
isuhadoop 永不过期
hue 永不过期
streaming 永不过期
postgres 永不过期

密码策略检查
------------
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_MIN_LEN 5
PASS_WARN_AGE 7
*******************************************************Sudoers检查*******************************************************
root ALL=(ALL) ALL
%wheel ALL=(ALL) ALL

******************************************************* 防火墙检查*******************************************************
firewalld: inactive

/etc/sysconfig/firewalld
-----------------------
# firewalld command line args
# possible values: --debug
FIREWALLD_ARGS=
*******************************************************SSH检查*******************************************************
服务状态:active
SSH协议版本:

信任主机
--------
argo 授权 "argo@ark1" 无密码访问

是否允许ROOT远程登录
--------------------
PermitRootLogin yes

/etc/ssh/sshd_config
--------------------
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
SyslogFacility AUTHPRIV
AuthorizedKeysFile .ssh/authorized_keys
PermitEmptyPasswords no
PasswordAuthentication yes
ChallengeResponseAuthentication no
GSSAPIAuthentication no
GSSAPICleanupCredentials no
UsePAM yes
X11Forwarding yes
UseDNS no
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
AcceptEnv XMODIFIERS
Subsystem sftp /usr/libexec/openssh/sftp-server
*******************************************************syslog检查*******************************************************
服务状态:active

/etc/rsyslog.conf
-----------------
*.info;mail.none;authpriv.none;cron.none /var/log/messages
authpriv.* /var/log/secure
mail.* -/var/log/maillog
cron.* /var/log/cron
*.emerg :omusrmsg:*
uucp,news.crit /var/log/spooler
local7.* /var/log/boot.log
*******************************************************jdk检查*******************************************************
/opt/jdk1.8.0_221
*******************************************************Eguan邮件服务器检查*******************************************************
tips:默认检测易观邮箱服务器!
邮件是否可以发出(port:25):True
邮件是否可以发出(SSL方式,port:465):True
邮件是否可以发出(SSL方式,port:587):True
*******************************************************rpm包检查*******************************************************
dbus-python-1.1.1-9.el7.x86_64
glibc-2.17-260.el7.x86_64
glibc-common-2.17-260.el7.x86_64
libselinux-python-2.5-14.1.el7.x86_64
newt-python-0.52.15-4.el7.x86_64
python-2.7.5-76.el7.x86_64
python-configobj-4.7.2-7.el7.noarch
python-decorator-3.4.0-3.el7.noarch
python-firewall-0.5.3-5.el7.noarch
python-gobject-base-3.22.0-1.el7_4.1.x86_64
python-iniparse-0.4-9.el7.noarch
python-libs-2.7.5-76.el7.x86_64
python-linux-procfs-0.4.9-4.el7.noarch
python-perf-3.10.0-957.el7.x86_64
python-pycurl-7.19.0-19.el7.x86_64
python-pyudev-0.15-9.el7.noarch
python-schedutils-0.4-6.el7.x86_64
python-slip-0.4.0-4.el7.noarch
python-slip-dbus-0.4.0-4.el7.noarch
python-urlgrabber-3.10-9.el7.noarch
rpm-python-4.11.3-35.el7.x86_64
*******************************************************数据盘性能检测*******************************************************
*******************************************************服务器兼容问题*******************************************************
cpu线程数不符合方舟安装要求,最低要求cpu线程数16,内存最低要求32g,当前CPU线程为4,当前内存是15g

有用0 评论0