[TOC]
Redis Note-taking (ii): Java API use with Redis distributed cluster environment using Redis Java API (i): Standalone version of Redis API usageThe Redis Java API operates through Jedis, so the first Jedis third-party libraries are needed, because the MAVEN project is used, so the Jedis dependency is given first:Basic code exampleThe commands that Redis can provide, Jedis are also provided, and are very similar in use, so here's just some c
file./hdfs/data--Storing data./hdfs/tmp--Storing temporary files 2.6 Modifying an XML configuration file The XML file that needs to be modified under hadoop2.9.1/etc/hadoop/There are 5 main files to modify:hadoop-env.shCore-site.xmlHdfs-site.xmlMapred-site.xmlYarn-site.xmlSlaves 2.6.1, vim hadoop-env.sh, fill in the Java installation path 2.6.2, vim core-site.xml,configuration tag insert the following content2.6.3, Vim Hdfs-site.xml 2.6.4, Vim Mapred-site.xml 2.6.5, Vim
for a storm configurationStorm.zookeeper.servers:-"192.168.1.10"-"192.168.1.11"Nimbus.host: "192.168.1.10"Storm.local.dir: "/opt/stormtmp/data"ui.port:8080Supervisor.slots.ports:-6700-6701-6702-6703### ##### These may optionally is filled in:## # List of Custom Serializations# Topology.kryo.register:#-Org.mycompany.MyType#-Org.mycompany.MyType2:org.mycompany.MyType2Serializer## # List of custom Kryo decorators# topology.kryo.decorators:#-Org.mycompany.MyDecorator## # Locations of the DRPC serve
. The Supervisor Daemon is responsible for starting and stopping worker processes on that machine.3) UIRun the supervision command "Bin/storm UI" to run the Storm UI (you can access a site from a browser that provides diagnostic information for clusters and topologies). Enter "Http://{nimbus host}:8081" in your browser to access the UI.AddMaster Nodehang to background bootnohup./storm Nimbus Start UInohup./storm UI the UI can be started by a browser to access thehttp://master:8081You can start a
The Springcloud series tutorials include the following:Springcloud Series Tutorial 01:eureka Registration Center Cluster setupSpringcloud Series Tutorial 02:configserver Configuration Center Server SetupSpringcloud Series Tutorial 03:configclient Configuration Center Client SetupSpringcloud Series Tutorial 04: Configuration information Dynamic Refresh/bus/refreshSpringcloud Series Tutorial: @FeignClient MicroServices Interface invocation and authoriza
_master_host \ "$ssh _start_vip \"; Exit 0; } else {usage (); Exit 1; }} # A simple system call, enable the VIP on the new master sub Start_vip () {' ssh $new _master_ssh_user\@ $new _mas Ter_host \ "$ssh _start_vip \"; # A Simple System "call" Disable the VIP on the Old_master sub Stop_vip () {' ssh $orig _master_ssh_user\@ $orig _mast Er_host \ "$ssh _stop_vip \"; } Sub Usage {print "Usage:master_ip_failover–command=start|stop|stopssh|status–orig_master_host=host–orig_master_i P
/M02/83/DA/ Wkiol1d-fisrztqyaae3obxqws0129.png-wh_500x0-wm_3-wmp_4-s_2998259665.png "alt=" Wkiol1d-fisrztqyaae3obxqws0129.png-wh_50 "/>Use Ntpdate to synchronize the system time with the NTP server and write to the hardware clock, the Ntpdate service starts from the boot.Ntpdate 0.centos.pool.ntp.orgHwclock-wChkconfig ntpdate on650) this.width=650; "title=" Qq20160707164638.png "src=" http://s4.51cto.com/wyfs02/M01/83/DA/ Wkiol1d-fvrjxtihaacrtlswtzo178.png-wh_500x0-wm_3-wmp_4-s_2912137538.png "a
How do you setup/remove/modify cluster synchronization services daemon (cssd) on a non-RAC system (init.css d )?
Each of the localconfig operations need to be run as root$ ORACLE_HOME refers to the home used by ASM
Setup/Add==============
If the CSS is missing either due to specifically excluding it at install time... or it was later removed
$ ORACLE_HOME/bin/lo
[hadoop@hadoop01. ssh]$ Cat id_dsa.pub.hadoop03 >> Authorized_keysDistribute the Authorized_keys on the master host to each slave host:[email protected]. ssh]$ SCP Authorized_keys [email protected]:/home/hadoop/.ssh/authorized_keys[hadoop@ Hadoop01. ssh]$ SCP Authorized_keys [email protected]:/home/hadoop/.ssh/Authorized_keysTo install the JDK:sudo tar-xvf jdk-7u55-linux--R root:root jdk1.7.0_55JDK1.7.0_55 is generated after successful installation, confirming that the directory permission is d
# Priority change after script execution: 5 means priority +5;-5 is priority-5}Vrrp_instance Vi_a {State MASTER # Lord This value is master, from top to backupInterface eth0VIRTUAL_ROUTER_ID 50 # This value must be consistent between master and slavePriority 100Advert_int 1Authentication {# Authentication two parameter values, master and slave must also be consistentAuth_type PASSAuth_pass Yiban}Track_script {Chk_http_port}virtual_ipaddress {192.168.78.220}}5 Start keepalivedEnsure network upti
Tags: User erro mysql tps row dev error ati rateMySQL Cluster setup-multi-Master modeThis article uses the Galera build MySQL cluster, realizes each MySQL is the main server, does not have the master-slave division.Environment:Three mysql5.7 servers.To install the MySQL cluster:Preparation before installation:# echo ' 192.168.1.2 mysql1 ' >>/etc/hosts# echo ' 192
other nodes have not yet started;
4 Starting the Data node
Enter each data node, that is, the NDB1 and NDB2 directories, respectively: Ndbd-c localhost:1186
Start a second data node in the same way
PS: If you are prompted that a folder does not exist, create a new folder in that directory, and then restart it;
5 starting the MySQL service node
The same access to the MySQL Service node directory is the Mysqld1 and mysqld2 directories, executed: Mysqld.exe--defaults-f
({addshard: "shardtwo.mongodb.local:27018", Name: "Shardtwo"})
>>db.runcommand ({addshard: "shardthree.mongodb.local:27018", Name: "Shardthree"})As far as possible, the Shard server avoids the change of IP address of the server in the way of domain name resolution4. Start the Shard and add the slice key to the database>>db.runcommand ({"enablesharding": "Mc_visit"})
>>db.runcommand ({"Shardcollection": "MC_VISIT.MC _visit "," key ": {" Visitdate ":-1," Virus ": 1}})5, no data in the case of mod
.png " alt= "Wkiol1vartur2iezaalcbilsdlw740.jpg"/>See the above information, congratulations, Master-slave has been built successfully.9. TestingCreate a database in mastermysql> CREATE DATABASE Leedb;Viewing the database in slavemysql> show databases;You can see that the leedb in master has been automatically synced to slave. All possible future database changes in masterwill automatically sync to the slave. Of course, MySQL can filter the database or the data table to synchronize, you can choo
can also directly on the left to choose a source you think fast, I prefer 163.com.Problem:Parsing host mirrors.163.com ... Failed: unknown name or service. Wget: Unable to resolve host address "mirrors.163.com"Workaround:
Log in Root
Enter/etc/resolv.confVim/etc/resolv.conf
Modify content below (change DNS address to Google Domain name server)NameServer 8.8.8.8NameServer 8.8.4.4
Problem:Workaround:/etc/ssh//etc/ssh/permitrootlogin prohibit - Permitrootlogin y
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.