kettle4.2 java调用transaction

 

		KettleEnvironment.init();
		TransMeta transMeta = new TransMeta(filename);
		Trans trans = new Trans(transMeta);
		trans.prepareExecution(null);
		trans.startThreads();
		trans.waitUntilFinished();
		trans.cleanup();
		
		if(trans.getErrors() != 0){
			System.out.println("Error!");
		}

 

 

 

 

INFO  09-02 17:37:15,781 - trans1 - 为了转换解除补丁开始  [trans1]
INFO  09-02 17:37:15,828 - XML输出 - Opening output stream in encoding: UTF-8
INFO  09-02 17:37:16,234 - 表输入 - Finished reading query, closing connection.
INFO  09-02 17:37:16,234 - 表输入 - 完成处理 (I=8, O=0, R=0, W=8, U=0, E=0
INFO  09-02 17:37:16,234 - XML输出 - 完成处理 (I=0, O=8, R=8, W=8, U=0, E=0

你可能感兴趣的:(etl,keddtle)