我是Talend的新手,在尝试使用Talend for Integration工具版本5.5.1从一个数据库迁移到另一个数据库之前,尝试在MySQL中复制数据库。
以下是page on the talend help 我在哪里找到了我在下面写的命令
从数据库X到数据库X. 根据您的操作系统和体系结构,执行以下命令之一。 Talend-Studio-linux-gtk-x86以及Talend-Studio-win32-x86.exe仅作为示例给出。使用您可以在NEW CommandLine目录的根目录找到的实际.exe名称。
如前提条件中所述,为了防止在迁移过程中编辑源数据库的结构,您需要复制此数据库并在迁移脚本中将此重复数据库用作源数据库。有关数据库备份的更多信息,请参阅备份管理数据库(MySQL,H2,MS SQL Server或Oracle)。
我在命令提示符下运行此命令: -
TOS_DI-win-x86_64.exe -nosplash -application org.talend.repository.TalendMigration
-consoleLog -data migration-workspace -sourceUrl jdbc:mysql://127.0.0.1:3306/test
-sourceUser root -sourcePasswd root -targetUrl jdbc:mysql://127.0.0.1:3306/test1
-targetUser root -targetPasswd root -vmargs -Xss5m -Xms64m -Xmx1024m
但是我收到了一些错误: -
!SESSION 2014-09-18 16:42:22.690 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_67
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_IN
Framework arguments: -application org.talend.repository.TalendMigration -sourceUrl
jdbc:mysql://127.0.0.1:3306/test -sourceUser root -sourcePasswd root -targetUrl
jdbc:mysql://127.0.0.1:3306/test1 -targetUser root -targetPasswd root
Command-line arguments: -os win32 -ws win32 -arch x86_64 -application
org.talend.repository.TalendMigration -consoleLog -data migration-workspace -sourceUrl
jdbc:mysql://127.0.0.1:3306/test -sourceUser root -sourcePasswd root -targetUrl
jdbc:mysql://127.0.0.1:3306/test1 -targetUser root -targetPasswd root
!ENTRY org.eclipse.osgi 2 0 2014-09-18 16:42:24.174
答案 0 :(得分:0)
Talend不是命令行工具。它可以访问工作室,您可以在其中设计数据集成作业。 如果你想启动工作室,只需运行TOS_DI-win-x86_64.exe(在Windows 64bit上)
设计数据集成作业后,可以将它们导出为批处理作业。然后,您将能够运行命令来执行该作业。
要开始使用Talend Open Studio,请查看他们的official web site以及Talend Forge上提供的所有资源
答案 1 :(得分:-1)
如果要在talend中使用命令行,则可以使用 tSystem 组件,并可以在 tSystem 命令框中粘贴mysql命令行查询并运行该作业。 / p>