This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.2.zip | |
| unzip elasticsearch-1.4.2.zip | |
| cd elasticsearch-1.4.2 | |
| echo "http.cors.enabled: true" >> ./config/elasticsearch.yml | |
| ./bin/elasticsearch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget https://download.elasticsearch.org/kibana/kibana/kibana-3.1.2.zip | |
| unzip kibana-3.1.2.zip | |
| cd kibana-3.1.2 | |
| touch SimpleCorsHTTPServer.py | |
| #! /usr/bin/env python2 | |
| # http://stackoverflow.com/a/21957017/4368212 - poke | |
| from SimpleHTTPServer import SimpleHTTPRequestHandler | |
| import BaseHTTPServer | |
| class CORSRequestHandler (SimpleHTTPRequestHandler): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget https://www.dropbox.com/s/c4qkctgdxvq41fe/SalesJan2009_final.csv?dl=0 | |
| mv SalesJan2009_final.csv* SalesJan2009_final.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| current_product = None | |
| current_count = 0 | |
| product = None | |
| for line in sys.stdin: | |
| line = line.strip() | |
| product, count = line.split(',', 1) | |
| count = int(count) | |
| if current_product == product: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| yarn jar /usr/hdp/current/hadoop-mapreduce-client/hadoop-streaming.jar -file mapper.py -mapper mapper.py -file reducer.py -reducer reducer.py -input /tmp/SalesJan2009_final.csv -output /tmp/my_output/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget http://ftp.ps.pl/pub/apache/pig/pig-0.14.0/pig-0.14.0.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://chrome.google.com/webstore/detail/sense-beta/lhjgkmllcaadmopgmanpapmpjgmfcfig |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| POST /megacorp/transactions/ | |
| { | |
| "_timestamp" : "2015-01-12T23:37:00.000+01:00", | |
| "Product" : "Product2", | |
| "Price" : 5200, | |
| "Payment_type": "Mastercard", | |
| "Name" : "carolina", | |
| "City" : "Basildon", | |
| "State" : "England", | |
| "Country" : "GB", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET /megacorp/transactions/_mapping | |
| { | |
| "megacorp": { | |
| "mappings": { | |
| "transactions": { | |
| "properties": { | |
| "City": { | |
| "type": "string" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| POST /megacorp/_mapping/transactions2 | |
| { | |
| "transactions2": { | |
| "_timestamp": { | |
| "enabled": true, | |
| "type": "date", | |
| "format": "yyyy-MM-dd'T'HH:mm:ss.SSSZ", | |
| "store": true, | |
| "path": "_timestamp" | |
| }, |
OlderNewer