Skip to content

Latest commit

 

History

History
 
 

finagle-memcached-hadoop

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
This package provides a MemcachedOutputFormat for use with Hadoop.  This
outputformat can be configured like any other output format, plus one
additional step:

    MemcachedOutputFormat.setFactory(job.getConfiguration(), factory);

Factory can be any class that implements
com.twitter.finagle.memcached.SerializableKeyValueClientFactory.  There are two
reference factories: SimpleMemcachedClientFactory, and
PooledMemcachedClientFactory.  Scala constructors are:

    new SimpleMemcachedClientFactory(hosts: Seq[String],
                                     port: Int)
    new PooledMemcachedClient(clients: Seq[SerializableKeyValueClientFactory])

Java constructors are:

    new SimpleMemcachedClientFactory(List<String> hosts,
                                     int port)
    new PooledMemcachedClient(List[SerializableKeyValueClientFactory] clients)