Introducing Apache Hadoop to Developers
Hello World! – An introduction to Hadoop with Hive and Pig
How to Process Data with Apache Hive
[How to Process Data with Apache Pig
Introducing Apache Hadoop to Developers
Hello World! – An introduction to Hadoop with Hive and Pig
How to Process Data with Apache Hive
[How to Process Data with Apache Pig
http://hortonworks.com/blog/discovering-hive-schema-in-collections-of-json-documents/ |
start cassandra; | |
start spark;(./sbin/start-master.sh) | |
run following in cqlsh | |
CREATE KEYSPACE test WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 }; | |
CREATE TABLE test.kv(key text PRIMARY KEY, value int); | |
INSERT INTO test.kv(key, value) VALUES ('key1', 1); | |
INSERT INTO test.kv(key, value) VALUES ('key2', 2); |
import com.walmart.openapi.DataFeedManager; | |
public class MainApp { | |
public static void main(String[] args) throws Exception { | |
DataFeedManager dataFeedManager = new DataFeedManager("<insert your api key here>"); | |
DataFeedManager.FeedIterator feedIterator = dataFeedManager.getFeedIterator( | |
DataFeedManager.FeedsType.BESTSELLERS, "3944"); | |
int counter = 0; | |
while (feedIterator.hasNext()) { | |
counter = counter + 1; |
JAR location: /home/hadoop/contrib/streaming/hadoop-streaming.jar | |
Main class: None | |
Arguments: -files s3://bigdataapp/wcmapper.php,s3://bigdataapp/wcreducer.php -mapper wcmapper.php -reducer wcreducer.php -input s3://aws-publicdatasets/common-crawl/parse-output/segment/1341690169105/textData-00112 -output s3://bigdataapp/wctest -inputformat SequenceFileAsTextInputFormat | |
Action on failure: Continue |
http://www.fightswithbytes.com/2013/04/05/sample-wordcount-streaming-job-using-php-on-commoncrawl-dataset/ |
git add .; git commit -m "Demo";git push heroku master; |
var express = require('express') | |
var app = express() | |
app.use(function(req, res, next) { | |
res.header("Access-Control-Allow-Origin", "*"); | |
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); | |
next(); | |
}); | |
app.get('/', function(req, res) { | |
var zlib = require('zlib'); |
http://porterhead.blogspot.com/2014/05/securing-rest-services-with-spring.html |
$ ./bin/spark-shell | |
14/04/18 15:23:49 INFO spark.HttpServer: Starting HTTP Server | |
14/04/18 15:23:49 INFO server.Server: jetty-7.x.y-SNAPSHOT | |
14/04/18 15:23:49 INFO server.AbstractConnector: Started [email protected]:49861 | |
Welcome to | |
____ __ | |
/ __/__ ___ _____/ /__ | |
_\ \/ _ \/ _ `/ __/ '_/ | |
/___/ .__/\_,_/_/ /_/\_\ version 0.9.1 | |
/_/ |