mirror of https://github.com/apache/druid.git
Using string formatter in log statements.
Clean up of imports on the pusher.
This commit is contained in:
parent
61c014c49f
commit
c8ff5ca2fb
|
@ -76,7 +76,7 @@ public class CassandraDataSegmentPuller extends CassandraStorage implements Data
|
|||
{
|
||||
try
|
||||
{
|
||||
log.info("Writing to [" + outFile.getAbsolutePath() + "]");
|
||||
log.info("Writing to [%s]", outFile.getAbsolutePath());
|
||||
OutputStream os = Files.newOutputStreamSupplier(outFile).getOutput();
|
||||
meta = ChunkedStorage
|
||||
.newReader(indexStorage, key, os)
|
||||
|
@ -109,7 +109,7 @@ public class CassandraDataSegmentPuller extends CassandraStorage implements Data
|
|||
.execute();
|
||||
ColumnList<String> children = result.getResult();
|
||||
long lastModified = children.getColumnByName("lastmodified").getLongValue();
|
||||
log.info("Read lastModified for [" + key + "] as [" + lastModified + "]");
|
||||
log.info("Read lastModified for [%s] as [%d]", key, lastModified);
|
||||
return lastModified;
|
||||
} catch (ConnectionException e)
|
||||
{
|
||||
|
|
|
@ -13,11 +13,8 @@ import com.metamx.druid.index.v1.IndexIO;
|
|||
import com.metamx.druid.loading.DataSegmentPusher;
|
||||
import com.metamx.druid.loading.DataSegmentPusherUtil;
|
||||
import com.metamx.druid.utils.CompressionUtils;
|
||||
import com.netflix.astyanax.Keyspace;
|
||||
import com.netflix.astyanax.MutationBatch;
|
||||
import com.netflix.astyanax.model.ColumnFamily;
|
||||
import com.netflix.astyanax.recipes.storage.ChunkedStorage;
|
||||
import com.netflix.astyanax.recipes.storage.ChunkedStorageProvider;
|
||||
|
||||
/**
|
||||
* Cassandra Segment Pusher
|
||||
|
|
Loading…
Reference in New Issue