MySQL高可用之PXC安装部署
Hostname | IP | Port | OS Version | MySQL Version | Xtrabackup version |
zlm2 | 192.168.1.101 | 3308 | CentOS 7.0 | PXC 5.7.22 | 2.4.12 Linux (x86_64) |
zlm3 | 192.168.1.102 | 3308 | CentOS 7.0 | PXC 5.7.22 | 2.4.12 Linux (x86_64) |
zlm4 | 192.168.1.103 | 3308 | CentOS 7.0 | PXC 5.7.22 | 2.4.12 Linux (x86_64) |
[root@zlm2 :: ~]
#mkdir -p /opt/mysql [root@zlm2 :: ~]
#ls -l|grep Percona
-rwxr-xr-x root root Aug : Percona-XtraDB-Cluster-5.7.-rel22-29.26..Linux.x86_64.ssl102.tar.gz [root@zlm2 :: ~]
#gzip -d Percona-XtraDB-Cluster-5.7.-rel22-29.26..Linux.x86_64.ssl102.tar.gz [root@zlm2 :: ~]
#ls -l|grep Percona
-rwxr-xr-x root root Aug : Percona-XtraDB-Cluster-5.7.-rel22-29.26..Linux.x86_64.ssl102.tar [root@zlm2 :: ~]
#tar xf Percona-XtraDB-Cluster-5.7.-rel22-29.26..Linux.x86_64.ssl102.tar -C /opt/mysql [root@zlm2 :: ~]
#cd /usr/local [root@zlm2 :: /usr/local]
#ln -s /opt/mysql/Percona-XtraDB-Cluster-5.7.-rel22-29.26..Linux.x86_64.ssl102/ mysql [root@zlm2 :: /usr/local]
#ls -l
total
drwxr-xr-x. root root May : bin
drwxr-xr-x. root root Jun etc
drwxr-xr-x. root root Jun games
drwxr-xr-x. root root Jun include
drwxr-xr-x. root root Jun lib
drwxr-xr-x. root root May : lib64
drwxr-xr-x. root root Jun libexec
lrwxrwxrwx root root Apr : mysql -> mysql-5.7.-linux-glibc2.-x86_64/
drwxr-xr-x root root Aug : mysql-5.7.-linux-glibc2.-x86_64
drwxrwxr-x root root May : mysql_performance_monitor-agent
drwxr-xr-x. root root Apr : sbin
drwxr-xr-x. root root May : share
drwxr-xr-x. root root Jun src
drwxr-xr-x zabbix zabbix Apr : zabbix [root@zlm2 :: /usr/local]
#rm -f mysql [root@zlm2 :: /usr/local]
#ln -s /opt/mysql/Percona-XtraDB-Cluster-5.7.-rel22-29.26..Linux.x86_64.ssl102/ mysql [root@zlm2 :: /usr/local]
#ls -l
total
drwxr-xr-x. root root Jul : bin
drwxr-xr-x. root root Jun etc
drwxr-xr-x. root root Jun games
drwxr-xr-x. root root Jun include
drwxr-xr-x. root root Jun lib
drwxr-xr-x. root root Jun lib64
drwxr-xr-x. root root Jun libexec
lrwxrwxrwx root root Aug : mysql -> /opt/mysql/Percona-XtraDB-Cluster-5.7.-rel22-29.26..Linux.x86_64.ssl102/
drwxr-xr-x root root Aug : mysql-5.7.-linux-glibc2.-x86_64
drwxr-xr-x. root root Jun sbin
drwxr-xr-x. root root Jul : share
drwxr-xr-x. root root Jun src [root@zlm2 :: /usr/local]
#ldd mysql/bin/mysqld
linux-vdso.so. => (0x00007fff96f3f000)
libpthread.so. => /lib64/libpthread.so. (0x00007f1119136000)
libaio.so. => /lib64/libaio.so. (0x00007f1118f34000)
libnuma.so. => /lib64/libnuma.so. (0x00007f1118d27000)
libcrypt.so. => /lib64/libcrypt.so. (0x00007f1118af0000)
libssl.so. => /lib64/libssl.so. (0x00007f1118883000)
libcrypto.so. => /lib64/libcrypto.so. (0x00007f111849b000)
libdl.so. => /lib64/libdl.so. (0x00007f1118297000)
libz.so. => /lib64/libz.so. (0x00007f1118081000)
librt.so. => /lib64/librt.so. (0x00007f1117e78000)
libstdc++.so. => /lib64/libstdc++.so. (0x00007f1117b71000)
libm.so. => /lib64/libm.so. (0x00007f111786f000)
libgcc_s.so. => /lib64/libgcc_s.so. (0x00007f1117658000)
libc.so. => /lib64/libc.so. (0x00007f1117297000)
/lib64/ld-linux-x86-.so. (0x00007f1119359000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007f1117094000)
libgssapi_krb5.so. => /lib64/libgssapi_krb5.so. (0x00007f1116e47000)
libkrb5.so. => /lib64/libkrb5.so. (0x00007f1116b64000)
libcom_err.so. => /lib64/libcom_err.so. (0x00007f1116960000)
libk5crypto.so. => /lib64/libk5crypto.so. (0x00007f111672d000)
libkrb5support.so. => /lib64/libkrb5support.so. (0x00007f111651e000)
libkeyutils.so. => /lib64/libkeyutils.so. (0x00007f1116319000)
libresolv.so. => /lib64/libresolv.so. (0x00007f11160ff000)
libselinux.so. => /lib64/libselinux.so. (0x00007f1115eda000)
libpcre.so. => /lib64/libpcre.so. (0x00007f1115c78000)
liblzma.so. => /lib64/liblzma.so. (0x00007f1115a53000) ... //Omitted the procedure of installation on the other nodes.
[root@zlm2 :: ~]
#mkdir -p /data/mysql/mysql3308/{data,logs,tmp} [root@zlm2 :: ~]
#chown -R mysql.mysql /data [root@zlm2 :: ~]
#cp /vagrant/my3308.cnf /data/mysql/mysql3308 [root@zlm2 :: ~]
#cd /data/mysql/mysql3308 [root@zlm2 :: /data/mysql/mysql3308]
#ls -l
total
drwxr-xr-x mysql mysql Aug : data
drwxr-xr-x mysql mysql Aug : logs
-rwxr-xr-x root root Aug : my3308.cnf
drwxr-xr-x mysql mysql Aug : tmp [root@zlm2 :: /data/mysql/mysql3308]
#tail - my3308.cnf
...
#pxc
innodb_locks_unsafe_for_binlog=
innodb_autoinc_lock_mode=
loose-wsrep_cluster_name=pxc_wubx
loose-wsrep_cluster_address=gcomm://192.168.1.101,192.168.1.102,192.168.103
loose-wsrep_node_address=192.168.1.101
loose-wsrep_provider=/usr/local/mysql/lib/libgalera_smm.so
loose-wsrep_sst_method=xtrabackup-v2
#loose-wsrep_sst_method=rsync
loose-wsrep_sst_auth=sst:zlmzlm
#loose-wsrep_debug=on
#loose-wsrep_provider_options="debug=on"
[root@zlm2 :: /data/mysql/mysql3308]
#mysqld --defaults-file=/data/mysql/mysql3308/my3308.cnf --initialize [root@zlm2 :: /data/mysql/mysql3308]
#tail ./data/error.log
--07T09::47.560965+: [Warning] CA certificate ca.pem is self signed.
--07T09::47.603271+: [Note] A temporary password is generated for root@localhost: bY2jmV=k)ltM //This is the password we need when first login.
--07T09::48.459948+: [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
--07T09::48.459948+: [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
--07T09::48.459948+: [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
--07T09::48.459948+: [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
--07T09::48.459948+: [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
--07T09::48.459948+: [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
--07T09::48.459948+: [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
--07T09::48.459948+: [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode. [root@zlm2 :: /data/mysql/mysql3308]
#cd data [root@zlm2 :: /data/mysql/mysql3308/data]
#ls -l
total
-rw-r----- mysql mysql Aug : auto.cnf
-rw------- mysql mysql Aug : ca-key.pem
-rw-r--r-- mysql mysql Aug : ca.pem
-rw-r--r-- mysql mysql Aug : client-cert.pem
-rw------- mysql mysql Aug : client-key.pem
-rw-r----- mysql mysql Aug : error.log
-rw-r----- mysql mysql Aug : ib_buffer_pool
-rw-r----- mysql mysql Aug : ibdata1
-rw-r----- mysql mysql Aug : ib_logfile0
-rw-r----- mysql mysql Aug : ib_logfile1
-rw-r----- mysql mysql Aug : ib_logfile2
drwxr-x--- mysql mysql Aug : mysql
drwxr-x--- mysql mysql Aug : performance_schema
-rw------- mysql mysql Aug : private_key.pem
-rw-r--r-- mysql mysql Aug : public_key.pem
-rw-r--r-- mysql mysql Aug : server-cert.pem
-rw------- mysql mysql Aug : server-key.pem
-rw-r----- mysql mysql Aug : slow.log
drwxr-x--- mysql mysql Aug : sys //Omitted the operations on the other nodes.Notice that there's no need to initialize the other node.
[root@zlm2 :: /data/mysql/mysql3308/data]
#mysqld --defaults-file=/data/mysql/mysql3308/my3308.cnf --wsrep-new-cluster &
[] [root@zlm2 :: /data/mysql/mysql3308/data]
#tail ../data/error.log |grep ERROR
--07T09::57.471628+: [ERROR] WSREP: wsrep_load(): dlopen(): /usr/local/mysql/lib/libgalera_smm.so: symbol SSL_COMP_free_compression_methods, version libssl.so. not defined in file libssl.so. with link time reference
--07T09::57.471657+: [ERROR] WSREP: wsrep_load() failed to load the provider('/usr/local/mysql/lib/libgalera_smm.so'): Invalid argument (). Need to abort.
--07T09::57.471661+: [ERROR] Aborting
[]+ Exit mysqld --defaults-file=/data/mysql/mysql3308/my3308.cnf [root@zlm2 :: /data/mysql/mysql3308/data]
#cd /usr/local/mysql/lib [root@zlm2 :: /usr/local/mysql/lib]
#ls -l|grep libgalera_smm.so
-rwxr-xr-x root root Jun : libgalera_smm.so [root@zlm2 :: /usr/local/mysql/lib]
#rpm -qa|grep openssl
openssl-libs-1.0.1e-.el7..x86_64
openssl-devel-1.0.1e-.el7..x86_64
openssl-1.0.1e-.el7..x86_64 [root@zlm2 :: /usr/local/mysql/lib]
#cd /usr/lib64 [root@zlm2 :: /usr/lib64]
#ls -l|grep libssl
-rwxr-xr-x. root root Mar libssl3.so
lrwxrwxrwx root root Jul libssl.so -> libssl.so.1.0.1e
lrwxrwxrwx root root Jul libssl.so. -> libssl.so.1.0.1e
-rwxr-xr-x root root Jun libssl.so.1.0.1e [root@zlm2 :: /usr/lib64]
#yum install openssl
... //Omitted. Updated:
openssl.x86_64 :1.0.2k-.el7 Dependency Updated:
openssl-devel.x86_64 :1.0.2k-.el7 openssl-libs.x86_64 :1.0.2k-.el7 Complete! [root@zlm2 :: /usr/lib64]
#tail /data/mysql/mysql3308/data/error.log |grep ERROR [root@zlm2 :: /usr/lib64]
#ps aux|grep mysqld
mysql 2.9 20.1 pts/ Sl : : mysqld --defaults-file=/data/mysql/mysql3308/my3308.cnf --wsrep-new-cluster
root 0.0 0.0 pts/ R+ : : grep --color=auto mysqld [root@zlm2 :: /usr/lib64]
#cat /data/mysql/mysql3308/data/error.log |grep password
--07T09::47.603271+: [Note] A temporary password is generated for root@localhost: bY2jmV=k)ltM [root@zlm2 :: /usr/lib64]
#mysql -uroot -p -S /tmp/mysql3308.sock
Enter password:
ERROR (HY000): Can't connect to MySQL server on '192.168.1.101' (111) [root@zlm2 :: /usr/lib64]
#ps aux|grep mysqld
mysql 0.6 20.1 pts/ Sl : : mysqld --defaults-file=/data/mysql/mysql3308/my3308.cnf --wsrep-new-cluster
root 0.0 0.0 pts/ R+ : : grep --color=auto mysqld [root@zlm2 :: /usr/lib64]
#mysql -uroot -p -hlocalhost -S /tmp/mysql3308.sock
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is
Server version: 5.7.--29.26-log Copyright (c) - Percona LLC and/or its affiliates
Copyright (c) , , Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. (root@localhost mysql3308.sock)[(none)]>grant all privileges on *.* to zlm@'192.168.1.%';
ERROR (): Can't find any matching row in the user table
(root@localhost mysql3308.sock)[(none)]>grant all privileges on *.* to zlm@'192.168.1.%' identified by 'zlmzlm';
Query OK, rows affected, warning (0.34 sec) (root@localhost mysql3308.sock)[(none)]>grant reload,lock tables,replication client on *.* to sst@localhost identified by 'zlmzlm';
Query OK, rows affected, warnings (0.03 sec) (root@localhost mysql3308.sock)[(none)]>select user,host from mysql.user;
+---------------+-------------+
| user | host |
+---------------+-------------+
| zlm | 192.168..% |
| mysql.session | localhost |
| mysql.sys | localhost |
| root | localhost |
| sst | localhost |
+---------------+-------------+
rows in set (0.00 sec) (root@localhost mysql3308.sock)[(none)]>show global status like '%wsrep%';
+----------------------------------+--------------------------------------+
| Variable_name | Value |
+----------------------------------+--------------------------------------+
| wsrep_local_state_uuid | bd5525ab-9a15-11e8-aa0f-4b830c783fc7 |
| wsrep_protocol_version | |
| wsrep_last_applied | |
| wsrep_last_committed | |
| wsrep_replicated | |
| wsrep_replicated_bytes | |
| wsrep_repl_keys | |
| wsrep_repl_keys_bytes | |
| wsrep_repl_data_bytes | |
| wsrep_repl_other_bytes | |
| wsrep_received | |
| wsrep_received_bytes | |
| wsrep_local_commits | |
| wsrep_local_cert_failures | |
| wsrep_local_replays | |
| wsrep_local_send_queue | |
| wsrep_local_send_queue_max | |
| wsrep_local_send_queue_min | |
| wsrep_local_send_queue_avg | 0.000000 |
| wsrep_local_recv_queue | |
| wsrep_local_recv_queue_max | |
| wsrep_local_recv_queue_min | |
| wsrep_local_recv_queue_avg | 0.500000 |
| wsrep_local_cached_downto | |
| wsrep_flow_control_paused_ns | |
| wsrep_flow_control_paused | 0.000000 |
| wsrep_flow_control_sent | |
| wsrep_flow_control_recv | |
| wsrep_flow_control_interval | [ , ] |
| wsrep_flow_control_interval_low | |
| wsrep_flow_control_interval_high | |
| wsrep_flow_control_status | OFF |
| wsrep_cert_deps_distance | 1.000000 |
| wsrep_apply_oooe | 0.000000 |
| wsrep_apply_oool | 0.000000 |
| wsrep_apply_window | 1.000000 |
| wsrep_commit_oooe | 0.000000 |
| wsrep_commit_oool | 0.000000 |
| wsrep_commit_window | 1.000000 |
| wsrep_local_state | |
| wsrep_local_state_comment | Synced |
| wsrep_cert_index_size | |
| wsrep_cert_bucket_count | |
| wsrep_gcache_pool_size | |
| wsrep_causal_reads | |
| wsrep_cert_interval | 0.000000 |
| wsrep_ist_receive_status | |
| wsrep_ist_receive_seqno_start | |
| wsrep_ist_receive_seqno_current | |
| wsrep_ist_receive_seqno_end | |
| wsrep_incoming_addresses | 192.168.1.101: |
| wsrep_desync_count | |
| wsrep_evs_delayed | |
| wsrep_evs_evict_list | |
| wsrep_evs_repl_latency | //// |
| wsrep_evs_state | OPERATIONAL |
| wsrep_gcomm_uuid | bd54497d-9a15-11e8-b386-2759969fcd01 |
| wsrep_cluster_conf_id | |
| wsrep_cluster_size | |
| wsrep_cluster_state_uuid | bd5525ab-9a15-11e8-aa0f-4b830c783fc7 |
| wsrep_cluster_status | Primary |
| wsrep_connected | ON |
| wsrep_local_bf_aborts | |
| wsrep_local_index | |
| wsrep_provider_name | Galera |
| wsrep_provider_vendor | Codership Oy <info@codership.com> |
| wsrep_provider_version | 3.26(r) |
| wsrep_ready | ON |
+----------------------------------+--------------------------------------+
rows in set (0.00 sec) //Check the below global status of PXC.
| wsrep_local_state | |
| wsrep_local_state_comment | Synced |
| wsrep_cluster_status | Primary |
| wsrep_connected | ON | //It means that the PXC has been worked normally on node zlm2. //The partial error log of PXC which shows the success of starting up of it.
--07T09::40.631123+: [Note] Event Scheduler: Loaded events
--07T09::40.631550+: [Note] mysqld: ready for connections.
Version: '5.7.22-22-29.26-log' socket: '/tmp/mysql3308.sock' port: Percona XtraDB Cluster binary (GPL) 5.7.-29.26, Revision da86071, wsrep_29.
--07T09::40.635469+: [Note] WSREP: Initialized wsrep sidno
--07T09::40.635501+: [Note] WSREP: Auto Increment Offset/Increment re-align with cluster membership change (Offset: -> ) (Increment: -> )
--07T09::40.635510+: [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
--07T09::40.635525+: [Note] WSREP: Assign initial position for certification: , protocol version:
--07T09::40.635540+: [Note] WSREP: Service thread queue flushed.
--07T09::40.635577+: [Note] WSREP: GCache history reset: ----: -> bd5525ab-9a15-11e8-aa0f-4b830c783fc7:
--07T09::40.637360+: [Note] WSREP: Synchronized with group, ready for connections
--07T09::40.637369+: [Note] WSREP: Setting wsrep_ready to true
--07T09::40.637372+: [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification. //Check the files in datadir.
[root@zlm2 :: /data/mysql/mysql3308/data]
#ls -l
total
-rw-r----- mysql mysql Aug : auto.cnf
-rw------- mysql mysql Aug : ca-key.pem
-rw-r--r-- mysql mysql Aug : ca.pem
-rw-r--r-- mysql mysql Aug : client-cert.pem
-rw------- mysql mysql Aug : client-key.pem
-rw-r----- mysql mysql Aug : error.log
-rw-r----- mysql mysql Aug : galera.cache
-rw-r----- mysql mysql Aug : grastate.dat
-rw-r----- mysql mysql Aug : gvwstate.dat
-rw-r----- mysql mysql Aug : ib_buffer_pool
-rw-r----- mysql mysql Aug : ibdata1
-rw-r----- mysql mysql Aug : ib_logfile0
-rw-r----- mysql mysql Aug : ib_logfile1
-rw-r----- mysql mysql Aug : ib_logfile2
-rw-r----- mysql mysql Aug : ibtmp1
drwxr-x--- mysql mysql Aug : mysql
drwxr-x--- mysql mysql Aug : performance_schema
-rw------- mysql mysql Aug : private_key.pem
-rw-r--r-- mysql mysql Aug : public_key.pem
-rw-r--r-- mysql mysql Aug : server-cert.pem
-rw------- mysql mysql Aug : server-key.pem
-rw-r----- mysql mysql Aug : slow.log
drwxr-x--- mysql mysql Aug : sys
-rw-r----- mysql mysql Aug : xb_doublewrite
-rw-r----- mysql mysql Aug : zlm2.pid [root@zlm2 :: /data/mysql/mysql3308/data]
#cat grastate.dat
# GALERA saved state
version: 2.1
uuid: bd5525ab-9a15-11e8-aa0f-4b830c783fc7
seqno: -
safe_to_bootstrap: //This means the node is the first one who starts the cluster.
//Let's start the PXC on node zlm3.
[root@zlm3 :: /data/mysql/mysql3308/data]
#mysqld --defaults-file=/data/mysql/mysql3308/my3308.cnf &
[] [root@zlm3 :: /data/mysql/mysql3308/data]
#ps aux|grep mysqld
mysql 20.0 16.9 pts/ Sl : : mysqld --defaults-file=/data/mysql/mysql3308/my3308.cnf
root 0.0 0.0 pts/ R+ : : grep --color=auto mysqld [root@zlm3 :: /data/mysql/mysql3308/data]
#tail - error.log
--07T09::08.825870+: [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
--07T09::08.825960+: [Warning] WSREP: Node is running in bootstrap/initialize mode. Disabling pxc_strict_mode checks
--07T09::08.836945+: [Warning] InnoDB: Using innodb_locks_unsafe_for_binlog is DEPRECATED. This option may be removed in future releases. Please use READ COMMITTED transaction isolation level instead; Please refer to http://dev.mysql.com/doc/refman/5.7/en/set-transaction.html --07T09::27.784997+: [Warning] InnoDB: New log files created, LSN=
--07T09::28.565405+: [Warning] InnoDB: Creating foreign key constraint system tables.
--07T09::29.043051+: [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 1ca6f9ae-9a17-11e8-9a7c-080027de0e0e.
--07T09::29.054082+: [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
--07T09::29.471412+: [Warning] CA certificate ca.pem is self signed.
--07T09::29.536187+: [Note] A temporary password is generated for root@localhost: ,M3=why-ok&d
--07T09::01.556746+: [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
--07T09::01.556802+: [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
--07T09::01.556812+: [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
--07T09::01.556830+: [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
--07T09::01.556837+: [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
--07T09::01.556847+: [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
--07T09::01.556920+: [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
--07T09::01.556931+: [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode. //The starting mysqld operation begins here.
--07T10::43.794296+: [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
--07T10::43.801975+: [Warning] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory.
--07T10::43.802040+: [Note] mysqld (mysqld 5.7.--29.26-log) starting as process ...
--07T10::43.805420+: [Note] WSREP: Setting wsrep_ready to false //Not ready.
--07T10::43.805476+: [Note] WSREP: No pre-stored wsrep-start position found. Skipping position initialization.
--07T10::43.805486+: [Note] WSREP: wsrep_load(): loading provider library '/usr/local/mysql/lib/libgalera_smm.so'
--07T10::43.829026+: [Note] WSREP: wsrep_load(): Galera 3.26(r) by Codership Oy <info@codership.com> loaded successfully.
--07T10::43.829070+: [Note] WSREP: CRC-32C: using hardware acceleration.
--07T10::43.829385+: [Warning] WSREP: Could not open state file for reading: '/data/mysql/mysql3308/data//grastate.dat'
--07T10::43.829395+: [Warning] WSREP: No persistent state found. Bootstraping with default state
--07T10::43.829432+: [Note] WSREP: Found saved state: ----:-, safe_to_bootstrap:
--07T10::43.837823+: [Note] WSREP: Passing config to GCS: base_dir = /data/mysql/mysql3308/data/; base_host = 192.168.1.102; base_port = ; cert.log_conflicts = no; debug = no; evs.auto_evict = ; evs.delay_margin = PT1S; evs.delayed_keep_period = PT30S; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT15S; evs.join_retrans_period = PT1S; evs.max_install_timeouts = ; evs.send_window = ; evs.stats_report_period = PT1M; evs.suspect_timeout = PT5S; evs.user_send_window = ; evs.view_forget_timeout = PT24H; gcache.dir = /data/mysql/mysql3308/data/; gcache.freeze_purge_at_seqno = -; gcache.keep_pages_count = ; gcache.keep_pages_size = ; gcache.mem_size = ; gcache.name = /data/mysql/mysql3308/data//galera.cache; gcache.page_size = 128M; gcache.recover = no; gcache.size = 128M; gcomm.thread_prio = ; gcs.fc_debug = 0; gcs.fc_factor = 1; gcs.fc_limit = 100; gcs.fc_master_slave = no; gcs.max_packet_size = 64500; gcs.max_throttle = 0.25; gcs.recv_q_hard_limit = 9223372036854775807; gcs.recv_q_soft_limit = 0.25; gcs.sync_donor = no; gmcast.segment = 0; gmcast.version = 0; pc.announce_timeout = PT3S; pc.checksum = false; pc.ignore_quorum = false; pc.ignore_sb = false; pc.npvo = false; pc.recovery = 1; pc.version = 0; pc.wait_prim = true; pc.wait_prim_timeout = PT30S; pc.weight = 1; protonet.backend = asio; protonet.version = 0; repl.causal_read_timeout = PT30S; repl.commit_order = 3; repl.key_format = FLAT8; repl.max_ws_size = 2147483647; repl.proto_max = 8; socket.checksum = 2; socket.recv_buf_size = 212992;
--07T10::43.861834+: [Note] WSREP: GCache history reset: ----: -> ----:-
--07T10::43.866886+: [Note] WSREP: Assign initial position for certification: -, protocol version: -
--07T10::43.866919+: [Note] WSREP: Preparing to initiate SST/IST //Begin to SST or IST.
--07T10::43.866922+: [Note] WSREP: Starting replication
--07T10::43.866936+: [Note] WSREP: Setting initial position to ----:-
--07T10::43.867102+: [Note] WSREP: Using CRC-32C for message checksums.
--07T10::43.867166+: [Note] WSREP: gcomm thread scheduling priority set to other:
--07T10::43.869814+: [Warning] WSREP: Fail to access the file (/data/mysql/mysql3308/data//gvwstate.dat) error (No such file or directory). It is possible if node is booting for first time or re-booting after a graceful shutdown
--07T10::43.869842+: [Note] WSREP: Restoring primary-component from disk failed. Either node is booting for first time or re-booting after a graceful shutdown
--07T10::43.870450+: [Note] WSREP: GMCast version
--07T10::43.870721+: [Note] WSREP: (2cf33746, 'tcp://0.0.0.0:4567') listening at tcp://0.0.0.0:4567
--07T10::43.870729+: [Note] WSREP: (2cf33746, 'tcp://0.0.0.0:4567') multicast: , ttl:
--07T10::43.871017+: [Note] WSREP: EVS version
--07T10::43.871191+: [Note] WSREP: gcomm: connecting to group 'pxc_wubx', peer '192.168.1.101:,192.168.1.102:,192.168.103:'
--07T10::43.873170+: [Note] WSREP: (2cf33746, 'tcp://0.0.0.0:4567') connection established to 2cf33746 tcp://192.168.1.102:4567
--07T10::43.873199+: [Warning] WSREP: (2cf33746, 'tcp://0.0.0.0:4567') address 'tcp://192.168.1.102:4567' points to own listening address, blacklisting
--07T10::43.873754+: [Note] WSREP: (2cf33746, 'tcp://0.0.0.0:4567') connection established to bd54497d tcp://192.168.1.101:4567
--07T10::43.873806+: [Note] WSREP: (2cf33746, 'tcp://0.0.0.0:4567') turning message relay requesting on, nonlive peers:
--07T10::44.373051+: [Note] WSREP: declaring bd54497d at tcp://192.168.1.101:4567 stable
--07T10::44.373698+: [Note] WSREP: Node bd54497d state primary
--07T10::44.374205+: [Note] WSREP: Current view of cluster as seen by this node
view (view_id(PRIM,2cf33746,)
memb {
2cf33746, //This is node zlm2,first one started the cluster.
bd54497d, //This is node zlm3.
}
joined {
}
left {
}
partitioned {
}
)
--07T10::44.374227+: [Note] WSREP: Save the discovered primary-component to disk
--07T10::44.374354+: [Note] WSREP: discarding pending addr without UUID: tcp://192.168.0.103:4567
--07T10::44.374361+: [Note] WSREP: discarding pending addr proto entry 0x378db50
--07T10::44.872036+: [Note] WSREP: gcomm: connected
--07T10::44.872107+: [Note] WSREP: Shifting CLOSED -> OPEN (TO: )
--07T10::44.872173+: [Note] WSREP: Waiting for SST/IST to complete.
--07T10::44.872327+: [Note] WSREP: New COMPONENT: primary = yes, bootstrap = no, my_idx = , memb_num =
--07T10::44.872840+: [Note] WSREP: STATE_EXCHANGE: sent state UUID: 2d8c2e2a-9a1c-11e8--a6fcb0b47ae5
--07T10::44.873577+: [Note] WSREP: STATE EXCHANGE: sent state msg: 2d8c2e2a-9a1c-11e8--a6fcb0b47ae5
--07T10::44.874140+: [Note] WSREP: STATE EXCHANGE: got state msg: 2d8c2e2a-9a1c-11e8--a6fcb0b47ae5 from (zlm3)
--07T10::44.874158+: [Note] WSREP: STATE EXCHANGE: got state msg: 2d8c2e2a-9a1c-11e8--a6fcb0b47ae5 from (zlm2)
--07T10::44.874169+: [Note] WSREP: Quorum results:
version = ,
component = PRIMARY,
conf_id = ,
members = / (primary/total),
act_id = ,
last_appl. = -,
protocols = // (gcs/repl/appl),
group UUID = bd5525ab-9a15-11e8-aa0f-4b830c783fc7
--07T10::44.874173+: [Note] WSREP: Flow-control interval: [, ] //The scope of fc interval.
--07T10::44.874176+: [Note] WSREP: Trying to continue unpaused monitor
--07T10::44.874179+: [Note] WSREP: Shifting OPEN -> PRIMARY (TO: )
--07T10::44.874224+: [Note] WSREP: State transfer required:
Group state: bd5525ab-9a15-11e8-aa0f-4b830c783fc7:
Local state: ----:-
--07T10::44.874231+: [Note] WSREP: REPL Protocols: (, )
--07T10::44.874237+: [Note] WSREP: New cluster view: global state: bd5525ab-9a15-11e8-aa0f-4b830c783fc7:, view# : Primary, number of nodes: , my index: , protocol version
--07T10::44.874241+: [Note] WSREP: Setting wsrep_ready to true
--07T10::44.874243+: [Warning] WSREP: Gap in state sequence. Need state transfer.
--07T10::44.874245+: [Note] WSREP: Setting wsrep_ready to false
--07T10::44.874315+: [Note] WSREP: Initiating SST/IST transfer on JOINER side (wsrep_sst_xtrabackup-v2 --role 'joiner' --address '192.168.1.102' --datadir '/data/mysql/mysql3308/data/' --defaults-file '/data/mysql/mysql3308/my3308.cnf' --defaults-group-suffix '' --parent '' --binlog '/data/mysql/mysql3308/logs/mysql-bin' )
which: no socat in (/usr/sbin:/sbin:/opt/mysql/Percona-XtraDB-Cluster-5.7.-rel22-29.26..Linux.x86_64.ssl102/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/mysql/bin:/usr/local/zabbix/bin:/usr/local/zabbix/sbin)
--07T08::.523175Z WSREP_SST: [ERROR] ******************* FATAL ERROR **********************
--07T08::.524742Z WSREP_SST: [ERROR] socat not found in path: /usr/sbin:/sbin:/opt/mysql/Percona-XtraDB-Cluster-5.7.-rel22-29.26..Linux.x86_64.ssl102/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/mysql/bin:/usr/local/zabbix/bin:/usr/local/zabbix/sbin
--07T08::.525848Z WSREP_SST: [ERROR] ******************************************************
--07T10::45.526151+: [ERROR] WSREP: Failed to read 'ready <addr>' from: wsrep_sst_xtrabackup-v2 --role 'joiner' --address '192.168.1.102' --datadir '/data/mysql/mysql3308/data/' --defaults-file '/data/mysql/mysql3308/my3308.cnf' --defaults-group-suffix '' --parent '' --binlog '/data/mysql/mysql3308/logs/mysql-bin'
Read: '(null)'
--07T10::45.526151+: [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup-v2 --role 'joiner' --address '192.168.1.102' --datadir '/data/mysql/mysql3308/data/' --defaults-file '/data/mysql/mysql3308/my3308.cnf' --defaults-group-suffix '' --parent '' --binlog '/data/mysql/mysql3308/logs/mysql-bin' : (No such file or directory)
--07T10::45.526201+: [ERROR] WSREP: Failed to prepare for 'xtrabackup-v2' SST. Unrecoverable.
--07T10::45.526208+: [ERROR] Aborting --07T10::45.526211+: [Note] Giving client threads a chance to die gracefully
--07T10::47.373430+: [Note] WSREP: (2cf33746, 'tcp://0.0.0.0:4567') turning message relay requesting off
--07T10::47.526391+: [Note] WSREP: Closing send monitor...
--07T10::47.526431+: [Note] WSREP: Closed send monitor.
--07T10::47.526455+: [Note] WSREP: gcomm: terminating thread
--07T10::47.526465+: [Note] WSREP: gcomm: joining thread
--07T10::47.526479+: [Note] WSREP: rollbacker thread exiting
--07T10::47.526675+: [Note] WSREP: gcomm: closing backend
--07T10::50.874663+: [Note] WSREP: (2cf33746, 'tcp://0.0.0.0:4567') connection to peer bd54497d with addr tcp://192.168.1.101:4567 timed out, no messages seen in PT3S (gmcast.peer_timeout)
--07T10::50.874839+: [Note] WSREP: (2cf33746, 'tcp://0.0.0.0:4567') turning message relay requesting on, nonlive peers: tcp://192.168.1.101:4567
--07T10::51.877925+: [Note] WSREP: (2cf33746, 'tcp://0.0.0.0:4567') reconnecting to bd54497d (tcp://192.168.1.101:4567), attempt 0
--07T10::53.026867+: [Note] WSREP: declaring node with index suspected, timeout PT5S (evs.suspect_timeout)
--07T10::53.027032+: [Note] WSREP: evs::proto(2cf33746, LEAVING, view_id(REG,2cf33746,)) suspecting node: bd54497d
--07T10::53.027042+: [Note] WSREP: evs::proto(2cf33746, LEAVING, view_id(REG,2cf33746,)) suspected node without join message, declaring inactive
--07T10::53.027063+: [Note] WSREP: Current view of cluster as seen by this node
view (view_id(NON_PRIM,2cf33746,)
memb {
2cf33746, //Only remains the first node zlm2.
}
joined {
}
left {
}
partitioned {
bd54497d, //Node zlm3 became a suspected node and be moved here.
}
)
--07T10::53.027092+: [Note] WSREP: Current view of cluster as seen by this node
view ((empty))
--07T10::53.027370+: [Note] WSREP: gcomm: closed
--07T10::53.027421+: [Note] WSREP: New COMPONENT: primary = no, bootstrap = no, my_idx = , memb_num =
--07T10::53.027435+: [Note] WSREP: Flow-control interval: [, ]
--07T10::53.027438+: [Note] WSREP: Trying to continue unpaused monitor
--07T10::53.027443+: [Note] WSREP: Received NON-PRIMARY.
--07T10::53.027447+: [Note] WSREP: Shifting PRIMARY -> OPEN (TO: )
--07T10::53.027458+: [Note] WSREP: Received self-leave message.
--07T10::53.027463+: [Note] WSREP: Flow-control interval: [, ]
--07T10::53.027466+: [Note] WSREP: Trying to continue unpaused monitor
--07T10::53.027469+: [Note] WSREP: Received SELF-LEAVE. Closing connection.
--07T10::53.027472+: [Note] WSREP: Shifting OPEN -> CLOSED (TO: )
--07T10::53.027477+: [Note] WSREP: RECV thread exiting : Success
--07T10::53.027719+: [Note] WSREP: recv_thread() joined.
--07T10::53.027732+: [Note] WSREP: Closing replication queue.
--07T10::53.027738+: [Note] WSREP: Closing slave action queue.
--07T10::53.027796+: [Note] WSREP: Waiting for active wsrep applier to exit
--07T10::53.027804+: [Note] WSREP: Service disconnected.
--07T10::53.027807+: [Note] WSREP: Waiting to close threads......
--07T10::58.028048+: [Note] WSREP: Some threads may fail to exit.
--07T10::58.028088+: [Note] Binlog end
--07T10::58.028341+: [Note] mysqld: Shutdown complete [root@zlm3 :: /data/mysql/mysql3308/data]
#ps aux|grep mysqld
root 0.0 0.0 pts/ R+ : : grep --color=auto mysqld //Let's see the detail of ERROR message.
[root@zlm3 :: /data/mysql/mysql3308/data]
#cat error.log |grep ERROR
--07T08::.523175Z WSREP_SST: [ERROR] ******************* FATAL ERROR **********************
--07T08::.524742Z WSREP_SST: [ERROR] socat not found in path: /usr/sbin:/sbin:/opt/mysql/Percona-XtraDB-Cluster-5.7.-rel22-29.26..Linux.x86_64.ssl102/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/mysql/bin:/usr/local/zabbix/bin:/usr/local/zabbix/sbin
--07T08::.525848Z WSREP_SST: [ERROR] ******************************************************
--07T10::45.526151+: [ERROR] WSREP: Failed to read 'ready <addr>' from: wsrep_sst_xtrabackup-v2 --role 'joiner' --address '192.168.1.102' --datadir '/data/mysql/mysql3308/data/' --defaults-file '/data/mysql/mysql3308/my3308.cnf' --defaults-group-suffix '' --parent '' --binlog '/data/mysql/mysql3308/logs/mysql-bin'
--07T10::45.526151+: [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup-v2 --role 'joiner' --address '192.168.1.102' --datadir '/data/mysql/mysql3308/data/' --defaults-file '/data/mysql/mysql3308/my3308.cnf' --defaults-group-suffix '' --parent '' --binlog '/data/mysql/mysql3308/logs/mysql-bin' : (No such file or directory)
--07T10::45.526201+: [ERROR] WSREP: Failed to prepare for 'xtrabackup-v2' SST. Unrecoverable.
--07T10::45.526208+: [ERROR] Aborting //It says that we are absent of "socat" package. [root@zlm3 :: /data/mysql/mysql3308/data]
#yum install socat
... //Omitted. Warning: RPMDB altered outside of yum.
Installing : socat-1.7.3.2-.el7.x86_64 /
Verifying : socat-1.7.3.2-.el7.x86_64 / Installed:
socat.x86_64 :1.7.3.2-.el7 Complete! //Start the PXC on zlm2 again.
[root@zlm3 :: /data/mysql/mysql3308/data]
#mysqld --defaults-file=/data/mysql/mysql3308/my3308.cnf &
[] [root@zlm3 :: /data/mysql/mysql3308/data]
#tail -f error.log
--07T10::15.116919+: [Note] WSREP: Member 0.0 (zlm3) requested state transfer from '*any*'. Selected 1.0 (zlm2)(SYNCED) as donor.
--07T10::15.117004+: [Note] WSREP: Shifting PRIMARY -> JOINER (TO: )
--07T10::15.117035+: [Note] WSREP: Requesting state transfer: success, donor:
--07T10::15.117051+: [Note] WSREP: GCache history reset: ----: -> bd5525ab-9a15-11e8-aa0f-4b830c783fc7:
--07T10::15.696885+: [Warning] WSREP: 1.0 (zlm2): State transfer to 0.0 (zlm3) failed: - (No such file or directory)
--07T10::15.696918+: [ERROR] WSREP: gcs/src/gcs_group.cpp:gcs_group_handle_join_msg():: Will never receive state. Need to abort.
--07T10::15.696940+: [Note] WSREP: gcomm: terminating thread
--07T10::15.696949+: [Note] WSREP: gcomm: joining thread
--07T10::15.697076+: [Note] WSREP: gcomm: closing backend
--07T10::17.026257+: [Note] WSREP: (5167e9c7, 'tcp://0.0.0.0:4567') turning message relay requesting off
--07T10::19.026327+: [Note] WSREP: (5167e9c7, 'tcp://0.0.0.0:4567') connection to peer bd54497d with addr tcp://192.168.1.101:4567 timed out, no messages seen in PT3S (gmcast.peer_timeout)
--07T10::19.026394+: [Note] WSREP: (5167e9c7, 'tcp://0.0.0.0:4567') turning message relay requesting on, nonlive peers: tcp://192.168.1.101:4567
--07T10::20.086590+: [Note] WSREP: (5167e9c7, 'tcp://0.0.0.0:4567') reconnecting to bd54497d (tcp://192.168.1.101:4567), attempt 0
--07T10::20.786605+: [Note] WSREP: declaring node with index suspected, timeout PT5S (evs.suspect_timeout)
--07T10::20.786778+: [Note] WSREP: evs::proto(5167e9c7, LEAVING, view_id(REG,5167e9c7,)) suspecting node: bd54497d
--07T10::20.786826+: [Note] WSREP: evs::proto(5167e9c7, LEAVING, view_id(REG,5167e9c7,)) suspected node without join message, declaring inactive
--07T10::20.786941+: [Note] WSREP: Current view of cluster as seen by this node
view (view_id(NON_PRIM,5167e9c7,)
memb {
5167e9c7,
}
joined {
}
left {
}
partitioned {
bd54497d,
}
)
--07T10::20.787061+: [Note] WSREP: Current view of cluster as seen by this node
view ((empty))
--07T10::20.787324+: [Note] WSREP: gcomm: closed
--07T10::20.787362+: [Note] WSREP: mysqld: Terminated.
^C [root@zlm3 :: /data/mysql/mysql3308/data]
#cat error.log |grep ERROR
--07T10::15.696918+: [ERROR] WSREP: gcs/src/gcs_group.cpp:gcs_group_handle_join_msg():: Will never receive state. Need to abort. [root@zlm3 :: /data/mysql/mysql3308/data]
#ps aux|grep mysqld
root 0.0 0.0 pts/ R+ : : grep --color=auto mysqld
[]+ Aborted mysqld --defaults-file=/data/mysql/mysql3308/my3308.cnf [root@zlm3 :: /data/mysql/mysql3308/data]
#cat error.log |grep ERROR
--07T11::15.619315+: [ERROR] WSREP: gcs/src/gcs_group.cpp:gcs_group_handle_join_msg():: Will never receive state. Need to abort.
--07T09::.246252Z WSREP_SST: [ERROR] ******************* FATAL ERROR **********************
--07T09::.247507Z WSREP_SST: [ERROR] Error while getting data from donor node: exit codes:
--07T09::.254423Z WSREP_SST: [ERROR] ******************************************************
--07T09::.258735Z WSREP_SST: [ERROR] Cleanup after exit with status:
--07T09::.137993Z WSREP_SST: [ERROR] ******************* FATAL ERROR **********************
--07T09::.139033Z WSREP_SST: [ERROR] Possible timeout in receving first data from donor in gtid/keyring stage
--07T09::.140912Z WSREP_SST: [ERROR] ******************************************************
--07T09::.141951Z WSREP_SST: [ERROR] Cleanup after exit with status: //There's still one error which cause the mysqld process cannot be started.
Start mysqld of PXC on node zlm4.
[root@zlm4 :: /data/mysql/mysql3308/data]
#mysqld --defaults-file=/data/mysql/mysql3308/my3308.cnf initialize [root@zlm4 :: /data/mysql/mysql3308/data]
#ls -l
total
-rw-r----- mysql mysql Aug : error.log
-rw-r----- mysql mysql Aug : galera.cache
-rw-r----- mysql mysql Aug : grastate.dat [root@zlm4 :: /data/mysql/mysql3308/data]
#cat error.log |grep ERROR
--07T09::.770212Z WSREP_SST: [ERROR] ******************* FATAL ERROR **********************
--07T09::.771275Z WSREP_SST: [ERROR] xtrabackup not in path: /usr/sbin:/sbin:/opt/mysql/Percona-XtraDB-Cluster-5.7.-rel22-29.26..Linux.x86_64.ssl102/bin:/root/perl5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/mysql/bin:/usr/local/zabbix/bin:/usr/local/zabbix/sbin
--07T09::.771951Z WSREP_SST: [ERROR] ******************************************************
--07T11::24.772254+: [ERROR] WSREP: Failed to read 'ready <addr>' from: wsrep_sst_xtrabackup-v2 --role 'joiner' --address '192.168.1.103' --datadir '/data/mysql/mysql3308/data/' --defaults-file '/data/mysql/mysql3308/my3308.cnf' --defaults-group-suffix '' --parent '' --binlog '/data/mysql/mysql3308/logs/mysql-bin'
--07T11::24.772279+: [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup-v2 --role 'joiner' --address '192.168.1.103' --datadir '/data/mysql/mysql3308/data/' --defaults-file '/data/mysql/mysql3308/my3308.cnf' --defaults-group-suffix '' --parent '' --binlog '/data/mysql/mysql3308/logs/mysql-bin' : (No such file or directory)
--07T11::24.772317+: [ERROR] WSREP: Failed to prepare for 'xtrabackup-v2' SST. Unrecoverable.
--07T11::24.772322+: [ERROR] Aborting [root@zlm4 :: /data/mysql/mysql3308/data]
#innobackupex --help
-bash: innobackupex: command not found //It's due to absence of Xtrabackup tools on node zlm4.
MySQL高可用之PXC安装部署的更多相关文章
- MySQL高可用之PXC安装部署(续)
Preface Yesterday I implemented a three-nodes PXC,but there were some errors when proceeding ...
- MySQL高可用方案MHA的部署和原理
MHA(Master High Availability)是一套相对成熟的MySQL高可用方案,能做到在0~30s内自动完成数据库的故障切换操作,在master服务器不宕机的情况下,基本能保证数据的一 ...
- MySQL高可用架构-MHA环境部署记录
一.MHA介绍 MHA(Master High Availability)目前在MySQL高可用方面是一个相对成熟的解决方案,它由日本DeNA公司youshimaton(现就职于Facebook公司) ...
- mysql高可用之PXC(Percona XtraDB Cluster)
简介 Percona XtraDB Cluster是MySQL高可用性和可扩展性的解决方案,Percona XtraDB Cluster提供的特性如下: 1).同步复制,事务要么在所有节点提交或不提交 ...
- MySQL高可用架构-MMM环境部署记录
MMM介绍MMM(Master-Master replication manager for MySQL)是一套支持双主故障切换和双主日常管理的脚本程序.MMM使用Perl语言开发,主要用来监控和管理 ...
- MySQL高可用架构-MMM安装教程
安装指南: 一.架构以及服务器信息 基本安装包含至少2个数据库服务器和1个监视服务器.本例中使用2个监视服务器和5个数据库服务器(服务器系统为CentOS 7) 用途 IP 主机名 Server-id ...
- hbase学习(二)hbase单机和高可用完全分布式安装部署
hbase版本 2.0.4 与hadoop兼容表http://hbase.apache.org/book.html#hadoop 我的 hadoop版本是3.1 1.单机版hbase 1.1解 ...
- (5.2)mysql高可用系列——测试环境部署
关键词环境部署: ############## 测试环境机器架构 #########[1]策划[1.1]linux服务器A组 8台 192.168.1.200~192.168.1.207,主机名db, ...
- (转)MySQL高可用方案MHA的部署和原理
背后深层次的逻辑: MHA Node则运行在每个mysql节点上,MHA Manager会定时探测集群中的master节点,当master出现故障时,它自动将最新数据的slave提升为master,然 ...
随机推荐
- luogu P1121 环状最大两段子段和
嘟嘟嘟 一道说难也难说简单也简单的dp题. 我觉得我的(有篇题解)做法就属于特别简单的. 平时遇到环的问题都是断环为链,但这道题给了一种新的思路. 观察一下,最后的答案无非就这两种:xxx--xx-- ...
- 不能安装这个“安装 OS X EI Capitan”应用程序副本不能验证” 的解决办法
不能安装这个“安装 OS X EI Capitan”应用程序副本不能验证.它在下载过程中可能已遭破坏或篡改. 解决办法:修改系统时间. 1,查看你的dmg文件的创建日期 2,把你的系统日期修改到比这个 ...
- js正则判断日期
//****************************************************************************// Function ID : Commo ...
- 【题解】洛谷P3200 [HNOI2009] 有趣的数列(卡特兰数+质因数分解)
洛谷P3200:https://www.luogu.org/problemnew/show/P3200 思路 这题明显是卡特兰数的题型咯 一看精度有点大 如果递推卡特兰数公式要到O(n2) 可以证明得 ...
- LinkedList---链表各种方法的实现
public class ListExer2 { public static void main(String[] args) { LinkList list = new LinkList(); li ...
- SpringBoot非官方教程 | 第十四篇:在springboot中用redis实现消息队列
转载请标明出处: 原文首发于:https://www.fangzhipeng.com/springboot/2017/07/11/springboot14-redis-mq/ 本文出自方志朋的博客 这 ...
- 插入排序_C语言_数组
插入排序_C语言_数组 #include <stdio.h> void insertSort(int *); int main(int argc, const char * argv[]) ...
- JS继续学习记录(一)
JS继续学习记录(一) 总感觉自己的js code写的还算可以,但是又深知好像只知道一些皮毛,所以打算仔细记录一下js晋级学习过程,日日往复 先记录一下自己目前对js的了解吧(20180828) js ...
- c#实现的udt
不多说,当前具备基本通信,是从java版本转换过来的.可以参阅. 项目地址 https://github.com/jinyuttt/netudt.git
- 【TOJ 3660】家庭关系(hash+并查集)
描述 给定若干家庭成员之间的关系,判断2个人是否属于同一家庭,即2个人之间均可以通过这些关系直接或者间接联系. 输入 输入数据有多组,每组数据的第一行为一个正整数n(1<=n<=100), ...