} } } public void executeBatch() throws SQLException { batchExecuted=true; prepStatement.executeBatch(); counter = new AtomicInteger(0); } 一旦Spout和Bolt準(zhǔn)備就緒(等待被執(zhí)行),topology生成器將會(huì)建立topology并準(zhǔn)備執(zhí)行。下面就來看一下執(zhí)行步驟。
在本地集群上運(yùn)行和測試topology