Anyway, there are lots of similar HOWTOs out there, but this one points to specific versions and URLs so you can just copy and paste these to get your system up and running in a few minutes.
apt-get updateapt-get dist-upgradereboot #if necessaryadd-apt-repository ppa:webupd8team/javaapt-get updateapt-get install oracle-java8-installerapt-get install antulimit -f unlimited \ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
apt-get updateapt-get install mongodb-org
service mongod start
echo "use nutch" | mongowget http://apache.cs.utah.edu/nutch/2.3.1/apache-nutch-2.3.1-src.tar.gztar xvf apache-nutch-2.3.1-src.tar.gz<dependency org="org.apache.gora" name="gora-mongodb" rev="0.6.1" conf="*->default" />gora.datastore.default=org.apache.gora.mongodb.store.MongoStoregora.mongodb.override_hadoop_configuration=falsegora.mongodb.mapping.file=/gora-mongodb-mapping.xmlgora.mongodb.servers=localhost:27017gora.mongodb.db=nutchant runtime #needs to be run in the top directory# It's possible to use the latest version, ES5, but you need to update the indexer.
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -echo "deb http://packages.elastic.co/elasticsearch/1.7/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-1.7.listapt-get update && sudo apt-get install elasticsearchnetwork.host: 127.0.0.1cluster.name: nutchnode.name: nutch1update-rc.d elasticsearch defaults/etc/init.d/elasticsearch restartecho "deb http://packages.elastic.co/kibana/4.4/debian stable main" | sudo tee -a /etc/apt/sources.list.d/kibana-4.4.x.list
apt-get update && sudo apt-get install kibana<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration> <property> <name>storage.data.store.class</name> <value>org.apache.gora.mongodb.store.MongoStore</value> <description>Default class for storing data</description> </property>
<property> <name>http.agent.name</name> <value>Spiderman</value> </property>
<property> <name>plugin.includes</name> <value>protocol-(http|httpclient)|urlfilter-regex|index-(basic|more)|query-(basic|site|url|lang)|indexer-elastic|nutch-extensionpoints|parse-(text|html|msexcel|msword|mspowerpoint|pdf)|summary-basic|scoring-opic|urlnormalizer-(pass|regex|basic)|parse-(html|tika|metatags)|index-(basic|anchor|more|metadata)</value> </property> <property> <name>elastic.host</name> <value>127.0.0.1</value> </property>
<property> <name>elastic.port</name> <value>9300</value> </property>
<property> <name>elastic.cluster</name> <value>nutch</value> </property>
<property> <name>elastic.index</name> <value>nutch</value> </property>
<property> <name>parser.character.encoding.default</name> <value>utf-8</value> </property>
<property> <name>http.content.limit</name> <value>6553600</value> </property>
<property> <name>elastic.max.bulk.docs</name> <value>2000</value> </property>
<property> <name>elastic.max.bulk.size</name> <value>2500500</value> </property>
</configuration>
No comments:
Post a Comment