When testing InitialLoad, observe the InitialLoad process that occurs after the node is registered. After testing, we found that the process of registering A node is generally like this. Here we use manual registration as an example. If node B is A RegistrationServer, node A must be registered on Node B, and Node B has started, A starts according to the configured Registry.
When testing the Initial Load, observe the Initial Load process that occurs after the node is registered. After testing, it is found that the process of registering A node is generally like this. Here we use manual Registration as an example. Assume that node B is A Registration Server, node A needs to be registered on Node B, and Node B has started, A starts according to the configured Registry.
When testing the Initial Load, observe the Initial Load process that occurs after the node is registered. After testing, it is found that the process of registering A node is generally like this. Here we use manual Registration as an example. Assume that node B is A Registration Server, node A needs to be registered on Node B, and Node B has started, A starts according to the configured Registry. the url property tries to register A to obtain information about A (in the SYM_NODE table and SYM_NODE_SECURITY table). At this time, A does not enable registration for B, and A cannot register. Run
../bin/symadmin--engine corp-000 open-registration store 001
After the command, it is equivalent to accepting the connection request of A (guess: B compares the parameters passed by this command with the information that A has been trying to send. They refer to the same node, accept the connection request). After the connection is established, A can get the information of B to fill the columns in the SYM_NODE table and SYM_NODE_SECURITY table (in fact, the SYM_NODE_IDENTITY table and the SYM_NODE_HOST table are also related data filled after executing this command ).
As you can see, the purpose of registration is to allow A to have B's information and further access to B. That is to say, whether A is registered with B is to check whether A has B information. If we delete the information of B in A, it will make A forget the previous registration relationship.
To register a node again:
1. The following four related tables are found: SYM_NODE, SYM_NODE_IDENTITY, SYM_NODE_HOST, and SYM_NODE_SECURITY.
After the four tables are cleared at the end of A, the unregistered information is printed on the memory ricds console of:
[store-001] - RegistrationService - Thisnode is unregistered. It will attempt toregister using the registration.url[store-001] - DataLoaderService - Usingregistration URL ofhttp://hadoop4.highgo.com:8080/sync/corp-000/registration?nodeGroupId=store&externalId=001&syncURL=http%3A%2F%2Fhadoop3%3A31415%2Fsync%2Fstore-001&schemaVersion=%3F&databaseType=PostgreSQL&databaseVersion=9.2&symmetricVersion=3.6.14&hostName=hadoop3&ipAddress=192.168.100.59[store-001] - DataLoaderService -Registration attempt failed. Registration was not open[store-001] - RegistrationService - Couldnot register. Sleeping before attemptingagain.[store-001] - RegistrationService -Sleeping for 17000ms
2. At this time, run the "enable registration" command on Node B:
../bin/symadmin--engine corp-000 open-registration store 001
3. Check the tables just cleared in the database at Client A. The information is filled.