This file contains 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
curl -XPUT 'http://localhost:9200/INDEXNAME/_mapping/TYPENAME' -d ' | |
{ | |
"TYPENAME":{ | |
"properties":{ | |
"annotations":{ | |
"properties":{ | |
"count":{ | |
"type":"long" | |
}, | |
"name":{ |
This file contains 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
# Setup | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF | |
DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]') | |
CODENAME=$(lsb_release -cs) | |
# Add the repository | |
echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" | \ | |
sudo tee /etc/apt/sources.list.d/mesosphere.list | |
sudo apt-get -y update |
This file contains 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
import sys | |
import os | |
import itertools | |
from datetime import datetime | |
try: | |
from lxml import etree | |
except ImportError: | |
import xml.etree.ElementTree as etree | |
import RDF |