mirror of https://github.com/apache/cassandra
Revert "fix references to defunct CqlPagingInputFormat"
This reverts commit e550ea6021.
This commit is contained in:
parent
e20810c7bd
commit
e27cdf935c
|
|
@ -26,6 +26,7 @@ import org.apache.cassandra.hadoop.cql3.CqlOutputFormat;
|
|||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import org.apache.cassandra.hadoop.cql3.CqlPagingInputFormat;
|
||||
import org.apache.cassandra.hadoop.cql3.CqlInputFormat;
|
||||
import org.apache.cassandra.hadoop.ConfigHelper;
|
||||
import org.apache.cassandra.utils.ByteBufferUtil;
|
||||
|
|
@ -246,7 +247,7 @@ public class WordCount extends Configured implements Tool
|
|||
else
|
||||
{
|
||||
job.setMapperClass(TokenizerMapper.class);
|
||||
job.setInputFormatClass(CqlInputFormat.class);
|
||||
job.setInputFormatClass(CqlPagingInputFormat.class);
|
||||
ConfigHelper.setInputRpcPort(job.getConfiguration(), "9160");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ import org.slf4j.Logger;
|
|||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import org.apache.cassandra.hadoop.cql3.CqlConfigHelper;
|
||||
import org.apache.cassandra.hadoop.cql3.CqlPagingInputFormat;
|
||||
import org.apache.cassandra.hadoop.cql3.CqlInputFormat;
|
||||
import org.apache.hadoop.conf.Configuration;
|
||||
import org.apache.hadoop.conf.Configured;
|
||||
|
|
@ -155,7 +156,7 @@ public class WordCountCounters extends Configured implements Tool
|
|||
else
|
||||
{
|
||||
job.setMapperClass(SumMapper.class);
|
||||
job.setInputFormatClass(CqlInputFormat.class);
|
||||
job.setInputFormatClass(CqlPagingInputFormat.class);
|
||||
ConfigHelper.setInputRpcPort(job.getConfiguration(), "9160");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ public class CqlStorage extends AbstractCassandraStorage
|
|||
{
|
||||
super();
|
||||
this.pageSize = pageSize;
|
||||
DEFAULT_INPUT_FORMAT = "org.apache.cassandra.hadoop.cql3.CqlInputFormat";
|
||||
DEFAULT_INPUT_FORMAT = "org.apache.cassandra.hadoop.cql3.CqlPagingInputFormat";
|
||||
DEFAULT_OUTPUT_FORMAT = "org.apache.cassandra.hadoop.cql3.CqlOutputFormat";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue