mirror of https://github.com/apache/lucene.git
b4aafbb606
- Use RTimer where currentTimeMillis is used for timing - Abstract out a new class TimeOut for when currentTimeMillis/nanoTime is used to timeout operations. - Used `new Date()` in some cases where that is the logical intent. - Deprecated a couple of APIs which were publicly exposing epoch time, in favour of Date objects to make the intent clearer. - A couple of cases had currentTimeMillis in dead code. - In some cases where currentTimeMillis was used to just generate a name, used nanoTime instead (really it should be some sequence/random number in such a case). - In some other cases where stamps were used for SQL queries, HTTP headers, comparing against data in external files, ZK etc., used SuppressForbidden. - Also currently allow the use of currentTimeMillis in commit data, this is then used in replication -- this is concerning since absolute times are being compared, but that can be dealt with separately. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1694798 13f79535-47bb-0310-9956-ffa450edef68 |
||
---|---|---|
.. | ||
src | ||
README.txt | ||
build.xml | ||
ivy.xml |
README.txt
Apache Solr MapReduce *Experimental* - This contrib is currently subject to change in ways that may break back compatibility. The Solr MapReduce contrib provides an a mapreduce job that allows you to build Solr indexes and optionally merge them into a live Solr cluster. Example: # Build an index with map-reduce and deploy it to SolrCloud source $solr_distrib/example/scripts/map-reduce/set-map-reduce-classpath.sh $hadoop_distrib/bin/hadoop --config $hadoop_conf_dir jar \ $solr_distrib/dist/solr-map-reduce-*.jar -D 'mapred.child.java.opts=-Xmx500m' \ -libjars "$HADOOP_LIBJAR" --morphline-file readAvroContainer.conf \ --zk-host 127.0.0.1:9983 --output-dir hdfs://127.0.0.1:8020/outdir \ --collection $collection --log4j log4j.properties --go-live \ --verbose "hdfs://127.0.0.1:8020/indir"