Lumify-Twitter is an open source ingest example for the Lumify project. See the Lumify website for more information about Lumify.
- Please ensure that [Lumify] (https://github.com/altamiracorp/lumify/blob/master/README.md) has been installed before building.
Integrating with Lumify
- Generate Twitter API Keys.
- For instructions, please visit the Twitter Developers site or Generating Twitter API Keys below.
- Add the following properties names and corresponding Twitter API keys to your
/opt/lumify/config/configuration.properties:
twitter.consumerKey=
twitter.consumerSecret=
twitter.token=
twitter.tokenSecret=
twitter.query= # Keywords to search Twitter for, e.g. twitter
# When searching for multiple phrases it must be a semi-colon separated list, e.g. twitter; face book; instagram
- Clone the repository from github using either of the links from the main page
- cd into your
lumify-twitter
directory mvn clean package -Puber-jar
cd target
- Copy the jar file to location of where you are running your Storm Topology for Lumify.
- In the Lumify Pre-Built VM, please run the following command
/opt/storm/bin/storm jar [location of jar file] com.altamiracorp.lumify.twitter.storm.StormRunner
- In the Lumify Pre-Built VM, please run the following command
Proceed if you are not using the Pre-built VM provided by Lumify
- Deploy lumify storm topology.
- Deploy lumify-twitter storm topology.
- Deploy web war file.
- Sign In to Twitter Developers site using your Twitter credentials.
![ScreenShot](https://raw.github.com/altamiracorp/lumify-twitter/master/docs/screenshots/twitter_sign_in.png)
2. In the top right corner hover over your Twitter Handler’s picture and select **My Applications** from the drop-down menu.
![ScreenShot](https://raw.github.com/altamiracorp/lumify-twitter/master/docs/screenshots/twitter_my_app.png)
3. Select **Create a new application** and fill out the form.
![ScreenShot](https://raw.github.com/altamiracorp/lumify-twitter/master/docs/screenshots/twitter_create_new_app.png)
4. Once completed, scroll down and select **Create my access token**.
![ScreenShot](https://raw.github.com/altamiracorp/lumify-twitter/master/docs/screenshots/twitter_access_token.png)
5. Refresh the page until you see Access Token, Access Token Secret, and Access Level under **Your Access Token**.
From the lumify-twitter directory:
cd data/ontology
.- Modify
twitter.owl
, to customize different concepts (e.g. person, phone number), properties for each concept, relationships between concepts, and/or glyphIcons associated with concepts.- After modifications,
cd lumify-twitter/bin/importOntology.sh
.
- After modifications,
- Proceed from step 5 in Integrating with Lumify