You are viewing a plain text version of this content. The canonical link for it is here.
Posted to s4-commits@incubator.apache.org by mm...@apache.org on 2013/10/06 11:55:38 UTC

[1/2] git commit: Update Twitter example documentation to reflect auth scheme changes

Updated Branches:
  refs/heads/dev 276a49772 -> fc379a642


Update Twitter example documentation to reflect auth scheme changes


Project: http://git-wip-us.apache.org/repos/asf/incubator-s4/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-s4/commit/1f9d84e3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-s4/tree/1f9d84e3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-s4/diff/1f9d84e3

Branch: refs/heads/dev
Commit: 1f9d84e3fc85a47ef795cd37b21813505cbdae4b
Parents: 276a497
Author: Matthieu Morel <mm...@apache.org>
Authored: Sun Oct 6 13:18:16 2013 +0200
Committer: Matthieu Morel <mm...@apache.org>
Committed: Sun Oct 6 13:53:04 2013 +0200

----------------------------------------------------------------------
 .../doc/0.6.0/twitter_trending_example.md       | 24 ++++++++++++++++++++
 1 file changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/1f9d84e3/website/content/doc/0.6.0/twitter_trending_example.md
----------------------------------------------------------------------
diff --git a/website/content/doc/0.6.0/twitter_trending_example.md b/website/content/doc/0.6.0/twitter_trending_example.md
index f7fabf4..cbe8f26 100644
--- a/website/content/doc/0.6.0/twitter_trending_example.md
+++ b/website/content/doc/0.6.0/twitter_trending_example.md
@@ -24,9 +24,33 @@ Have a look at the code in these directories. You'll note that:
 > Note: You need a twitter4j.properties file in your home directory with the following content (debug is optional):
 
 	debug=true
+	// not valid since june 2013
 	user=<a twitter username>
 	password=<matching password>
 
+**UPDATE:** In June 2013 Twitter updated the way external consumers can use Twitter APIs: **external consumers must now use [OAuth](http://oauth.net/)**. 
+
+
+As a result, the twitter example shipped with S4 distribution *does not work out of the box*. The good news is there is a workaround and we applied a [patch](https://issues.apache.org/jira/browse/S4-138) on the `dev` branch.
+
+To make things work with the new Twitter access control scheme:
+
+1. get the code updates
+	* either by checking out the code from the `dev` branch
+	* or by applying the relevant [change](https://github.com/apache/incubator-s4/commit/276a49772f00a7880d270941a8e05c878ee2484e) e.g. by cherry-picking it
+
+1. get an OAuth token. [This page](https://dev.twitter.com/docs/auth/tokens-devtwittercom) may help
+
+1. use the token parameters in the twitter4j.properties file in the home directory:
+
+		oauth.consumerKey=<consumer key>
+		oauth.consumerSecret=<consumer secret>
+		oauth.accessToken=<access token>
+		oauth.accessTokenSecret=<access token secret>
+
+Once Twitter access is configured, we can start the S4 application.
+
+
 * Start a Zookeeper clean instance. From the S4 base directory, do:
 	
 		./s4 zkServer -clean


[2/2] git commit: Add haml option for ensuring proper code block formatting

Posted by mm...@apache.org.
Add haml option for ensuring proper code block formatting


Project: http://git-wip-us.apache.org/repos/asf/incubator-s4/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-s4/commit/fc379a64
Tree: http://git-wip-us.apache.org/repos/asf/incubator-s4/tree/fc379a64
Diff: http://git-wip-us.apache.org/repos/asf/incubator-s4/diff/fc379a64

Branch: refs/heads/dev
Commit: fc379a642185bad55269e3a7d5b6bf67930473f1
Parents: 1f9d84e
Author: Matthieu Morel <mm...@apache.org>
Authored: Sun Oct 6 13:53:19 2013 +0200
Committer: Matthieu Morel <mm...@apache.org>
Committed: Sun Oct 6 13:53:19 2013 +0200

----------------------------------------------------------------------
 website/layouts/default.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/fc379a64/website/layouts/default.haml
----------------------------------------------------------------------
diff --git a/website/layouts/default.haml b/website/layouts/default.haml
index 43f66ff..1ae30fb 100644
--- a/website/layouts/default.haml
+++ b/website/layouts/default.haml
@@ -21,7 +21,7 @@
             %img{:src=>'/images/s4_test.png'}
         #navbar= render 'nav'
     #wrapper
-      #container{:class=>"container"}= yield
+      #container{:class=>"container"}~ yield
     #footer
       .container
         %span{:class=>'copyright'}= "Apache S4 - Copyright 2013 The Apache Software Foundation"