Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Installation

karussell edited this page Nov 22, 2010 · 21 revisions

Installation

  1. Clone jetwick sources and build jetwick:
    • git clone [email protected]:karussell/Jetwick.git jetwick
    • mvn install -Dmaven.test.skip=true
  2. Download solr 1.4.1 http://www.apache.org/dyn/closer.cgi/lucene/solr/
    • tar xzf apache-solr-1.4.1.tgz
    • cd apache-solr-1.4.1/
    • mv example path2jetwick/search
  3. Start the solr index
    • ./solr-twindex-start.sh
    • goto http://localhost:8082/solr/ to ensure it is started
    • BTW: I'm using screen to start multiple apps in one console and let them running when exiting the server: look here or here
  4. Start jetwick
  5. Feed the index with tweets
    • cp config-template.properties to ~/.jetwick/config.properties
    • edit h2-db user and password
    • edit twitter credentials (see below)
    • start tweet collector
      • ./myjava de.jetwick.tw.TweetCollector -maxTime=-1

Twitter Credentials

  1. read http://dev.twitter.com/pages/auth#intro
  2. register an application here: http://dev.twitter.com/apps to search twitter or read your timeline
    • get the consumerKey + consumerSecret and set them in the ~/.jetwick/config.properties file
    • jetwick.twitter4j.main.consumerKey=
    • jetwick.twitter4j.main.consumerSecret=
  3. create a new token + tokenSecret: login with your twitter account via jetwick
    • view the values, see TwitterSearch.oAuthOnCallBack and log tmpRequestToken.getToken();tmpRequestToken.getTokenSecret();
    • jetwick.twitter4j.main.token=
    • jetwick.twitter4j.main.tokenSecret=
Clone this wiki locally