This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.util.*; | |
import java.util.Map; | |
import java.util.Set; | |
import org.apache.commons.math3.linear.*; | |
import org.apache.lucene.analysis.*; | |
import org.apache.lucene.document.*; | |
import org.apache.lucene.index.*; | |
import org.apache.lucene.store.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# note you need to set the following environment variables | |
# NATIVE - the native LZO library location | |
# ANT17 - your Ant 1.7 installation | |
# FORREST_HOME - your Apache Forrest 0.8 installation | |
# HADOOP_VERSION - the version you are giving Hadoop | |
# JAVA_HOME - your Java isntallation | |
env CFLAGS=-m64 CXXFLAGS=-m64 C_INCLUDE_PATH=$NATIVE/include | |
LIBRARY_PATH=$NATIVE/lib LD_LIBRARY_PATH=$NATIVE/lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
forrest.validate.sitemap=false | |
forrest.validate.skins.stylesheets=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env CFLAGS=-m64 CXXFLAGS=-m64 C_INCLUDE_PATH=$NATIVE/include | |
LIBRARY_PATH=$NATIVE/lib LD_LIBRARY_PATH=$NATIVE/lib | |
JAVA_LIBRARY_PATH=$NATIVE/lib ant -Dtest.junit.output.format=xml | |
-Dtest.output=yes -Dversion=$HADOOP_LZO_VERSION test package published |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env CFLAGS="-m64" CXXFLAGS="-m64" ./configure --enable-shared | |
make | |
make check | |
make test | |
make DESTDIR=$PWD/build install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="resourceStore" scope="singleton" | |
class="my.hbase.using.Webapp"> | |
<constructor-arg> | |
<bean scope="singleton" | |
class="org.apache.hadoop.hbase.HBaseConfigurationSpringWrapper"> | |
<constructor-arg> | |
<bean scope="singleton" class="org.apache.hadoop.conf.Configuration" /> | |
</constructor-arg> | |
<constructor-arg> | |
<map> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.apache.hadoop.hbase; | |
import java.util.Map; | |
import org.apache.hadoop.conf.Configuration; | |
public class HBaseConfigurationSpringWrapper extends HBaseConfiguration { | |
public HBaseConfigurationSpringWrapper(Configuration config, | |
Map<String, String> configParams) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.elasticsearchtest; | |
import static org.elasticsearch.common.io.Streams.copyToStringFromClasspath; | |
import java.io.IOException; | |
import org.apache.lucene.search.Query; | |
import org.elasticsearch.common.inject.Injector; | |
import org.elasticsearch.common.inject.ModulesBuilder; | |
import org.elasticsearch.common.settings.ImmutableSettings; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bool":{ | |
"must":[ | |
{ | |
"query_string":{ | |
"default_field":"content", | |
"query":"test1" | |
} | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' | |
require 'net/http' | |
require 'uri' | |
require 'amazon/aws/search' | |
include Amazon::AWS |