My kafka version is 0.8.2.
Now I want to copy data from Server A to Server B, and then expect kafka in Server B works the same as in Server A.
I try to copy all data in $log.dirs which include kafa-logs and zookeeper.
But it doesn't work.
Is it possible that just copy some data files, and then make it works fine in Server B as in Server A ?
Just like I copy a sql dump file from production and run into my local mysql server, then it will works same as in production server.
try kafka's kafka-mirror-maker,like this,
>bin/kafka-mirror-maker.sh
--consumer.config consumer.properties
--producer.config producer.properties --whitelist my-topic
https://kafka.apache.org/documentation.html#basic_ops_mirror_maker
consumer.properties is server A's config,you can modify zookeeper.connect to server A's zookeeper
producer.properties is server B's config,you can modify bootstrap.servers to server B's
whitelist is topic which you want to copy from.
Related
I am using Teleport (https://goteleport.com/) for my servers.
Basically I can copy file from server to my local pc (and vice versa) using tsh scp command.
But I want to copy file from one server to another server through Teleport. In this case, what is the command I should use?
I've created an agent job in SQL Server 2008 with steps:
Backup
Transfer File (to another server)
Restore (to another server)
Step 1 backup has been successful, but when process transfers the file, it fails with message
invalid drive specification
I've added IP of destination server on Windows credential, and I try to run the syntax in CMD it works:
exec xp_cmdshell 'xcopy D:\folder\file_name*.ext \\desination_IP\folder\'
When I try with SQL Server 2017, it works. Is there any difference between 2008 and 2017? Please let me know
Then go to the next step restore, what I want is to restore the database from server A to server B. Example I have 2 servers with the name A server and B server i put the job in A server and the job consists of step backup, step transfer file and step restore. I transfer db to B server then i want to restore database in B server from A server with agent.
The question is, is that possible? Can somebody help me with the query to restore a database from another server? Thanks
Check to see what user the SQL Agent service is running as, if it is Local System, you'll need to change it to an account that has access to the destination folder.
I need to copy the entire database (Shema, object, data) from the server to my local machine for testing purposes. I know that there should be development database on the server, but I need to have another copy on my machine. The database is 11g and I am using SQL developer. I only found this tutorial. However, I think it creates another copy on the server and does not transfer it to the local machine. Any help is deeply appreciated.
You need to have installed ORACLE database server on your local machine first.
Then you can use exp/imp or expdp/impdp utilities for copying entire database or schema/user.
For example how to use data pump (expdb) see this section in Oracle documentation.
you can use the exp/imp utility
exp userid=user/pass#prod full=y file=full.dump
imp userid=user/pass#dev full=y file=full.dump
datapump is running server side and is faster but then you would have to access the file system to get the dump. If you have access to the server it's the same command just impdp`expdp` running from the host.
I am trying to migrate my kettle repositories from one server A to server B. I have exported a repository from Server A as ServerA.XML. I imported the ServerA.XML to server B.
The import is finished and all the KTR, KJB files are available in the server B now. My problems in the server A the database connections are declared which you can see from
Tools->Repository->Explore->Connections. I could see that in the server A. But after exporting the ServerA.XML to server B. I am not able to see the database connection details in Tools->Repository->Explore->Connections
What am i missing here?
I have active Server A and standby Server B and B is replicating data from Server A.
I'm using SQL Server 2005 enterprise edition.
When Server A is failed, the application server is programmed to route traffic to Server B.
Then Server B becomes active server and Server A becomes standby server.
To turn Server A to be active server, the data modification when Server A failed in Server B needs to replicate back to Server A.
I don't want to over load in active server.
I'm thinking to use pull transactional replication method for replication.
But I want to know what is the best method for doing above operations because this is the first time doing this operation for me.
Have you considered utilizing database mirroring instead?
Of course... you'll end up needing a witness server, but unlike replication, there is less work for everyone. No scripts are needed to make sure that the previously failed server has the most updated data.