Where the file configuration is sent to ZooKeeper

Updated on technology 2024-03-20
8 answers
  1. Anonymous users2024-02-07

    .Load the properties file in XML format.

    I spring instantiate the datasource example for my general file to configure:

    html] view plain copy

  2. Anonymous users2024-02-06

    1) Unzip zookeepertar -xf -c key line home myuser zookeeper Copy 3 copies of the zookeeper folder, renamed as zookeepera, zookeeperb, zookeeperc. And create data snapshots and log storage folder manuscript source, named zooa, zoob, zooc.

  3. Anonymous users2024-02-05

    A and B have to be placed, they are all clients relative to ZooKeeper, and they all have to know the address of ZooKeeper services.

  4. Anonymous users2024-02-04

    The value of myid is the value of item A defined in the file. ZooKeeper reads this file when it starts. Here's how to fix it:

    1. First get the zookeeper installation package, and the zookeeper package can be obtained directly from apache.

    2. Unzip the ZooKeeper package and use the following command: $ tar zxvf mv usr local bigdata zookeeper.

    3. Configure the zookeeper home environment variable, using the following command process: $cd vibashrc 。Add something like ZooKeeper at the end.

    4. Then configure zookeeper, use the command as shown below.

    5. Finally, start the zookeeper cluster and enter the following command on each node: $ start.

  5. Anonymous users2024-02-03

    A pseudo-cluster is a cluster in which multiple zookeeper processes are started on a single machine and formed into a cluster. For example, start three zookeeper processes.

    1. Find the zk directory and make two copies.

    cp -r zk zk2

    cp -r zk zk3

    2. Modify the configuration files separately.

    datadir=/opt/zk/zk/data

    datalogdir=/opt/zk/zk/logs

    You can modify the datadir, datalogdir, and clientport parameters of the other two zk directory configuration files respectively.

    3. Create a myid file.

    Create a myid file in the datadir of zk, zk2, zk3, and write a number indicating the number of serverThe number must correspond to the x in the file.

    0 in opt zk zk data myid file, 1 in opt zk zk2 data myid file, and 2 in opt zk zk3 data myid file

    zk@master ~]echo 0 > /opt/zk/zk/data/myid

    zk@master ~]echo 1 > /opt/zk/zk2/data/myid

    zk@master ~]echo 2 > /opt/zk/zk3/data/myid

    4. Start separately.

    5. Start the client test, if it can be operated to prove that the configuration is successful.

  6. Anonymous users2024-02-02

    The myid file does not have a suffix (to create a text file, remove the extension txt).

  7. Anonymous users2024-02-01

    Formatting is simply no formatting. You create a new txt and then delete the suffix and change it to myid without any suffix. Then right-click to open the way and select the text.

  8. Anonymous users2024-01-31

    It should be noted that the path is the problem, it is best to use the absolute path to refer to **, and the address should be in the XML file, so that it can be uploaded through FTP software, such as flashfxpThis should be no problem with uploading.

Related questions
5 answers2024-03-20

If it's a small amount of data, such as contacts, you can turn on the Bluetooth of the two mobile phones to transfer to each other, and that's fine. It can also be transferred with a mobile phone card. >>>More

8 answers2024-03-20

Let's give you a method.,This method is set up.,You can change it to read.,If you can read the configuration, it's no problem, right? >>>More

11 answers2024-03-20

1. As long as it is not a 64-bit Vista system, let him delete the temporary file cookie history in IE, then enter the content tab of IE attributes, click to clear the SSL status, and then click the setting button behind autocomplete, delete the form and password, and then log in to the game. >>>More

5 answers2024-03-20

Win7 boot prompts that there is a page configuration problem when starting the computer,This problem can be solved by setting virtual memory,It is best to set the virtual memory in other logical disks other than the system disk。 >>>More

18 answers2024-03-20

with"connstr"Try it.

The complete one is"connstr"] >>>More