两个方案
第一种
dbName="/stocks_orderbook" fileCond=dbName + "%" t=exec substr(file,strlen(dbName)) from rpc(getControllerAlias(),getClusterChunksStatus) where file like fileCond, state != "COMPLETE" dropPartition(database("dfs:/"+dbName),t,,true)
第二种
deleteChunkMetaOnMaster("dfs://compoDB/20170808/0_50")//删除控制节点元数据 deleteReplicas(chunkId,node)//删除数据节点元数据