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
(function(){ | |
var old; | |
if( window.onload ) { | |
old = window.onload; | |
} | |
window.onload = function () { | |
// initialization code here |
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
input { | |
zeromq { | |
mode => "server" | |
address => ["tcp://*:12000"] | |
codec => "json" | |
#type => "log.%{[owner]}" | |
#tags => ["%{[owner]}.%{[log_level]}", "%{[log_level]}"] | |
topology => "pubsub" | |
} |
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
Installed using | |
pip install -U -f /srv/wheelhouse --use-wheel --no-index {{mod_name}} | |
Directory Structure | |
{{mod_name}} | |
{{mod_name}} | |
__init__.py | |
easy_setup.py | |
setup.py |
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
{ | |
'web': { | |
'hosts': ['web.0.local', 'web.1.local'] | |
}, | |
'workers': { | |
'hosts': ['worker.0.local', 'worker.1.local', 'worker.2.local'] | |
}, | |
'other': { |
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
--- | |
app: | |
etcd_hosts: > | |
{% for host in groups.divvy %} | |
{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }} | |
{%- if not loop.last -%} | |
, | |
{%- endif -%} | |
{% endfor %} |
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
addr = "127.0.0.1:1900" | |
bind_addr = "0.0.0.0:1900" | |
ca_file = "" | |
cert_file = "" | |
cors_origins = [] | |
cpu_profile_file = "" | |
data_dir = "machines/Dock" | |
key_file = "" | |
peers = [192.168.50.100:1890,192.168.50.10:1890] | |
peers_file = "" |
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
PROBLEM | |
------- | |
I'm trying to get two peers to connect to each other. | |
It seems, however, that the machines are only listening on the client port? | |
Looking at netstat, the only port being bound is my client port (4600) and each machine is saying the connection to the other was refused. | |
Any ideas, help, or obvious oversights? | |
PEER TOPOLOGY |
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
// | |
// My class constructor | |
// | |
public CassandraDataModel() { | |
this.cluster = Cluster.builder() | |
.addContactPoint("127.0.0.1") | |
// .withSSL() // Uncomment if using client to node encryption | |
.build(); | |
Metadata metadata = this.cluster.getMetadata(); |
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
Trying to run a simple hadoop job, but hadoop is throwing a NoClassDef on "org/w3c/dom/Document" | |
I'm trying to run the basic examples from the "Mahout In Action" book (https://github.com/tdunning/MiA). | |
I do this using nearly the same maven setup but tooled for cassandra use rather than a file data model. | |
But, when I try to run the *-job.jar, it spits a NoClassDef from the datastax/hadoop end. | |
I'm using 1.0.5-dse of the driver as that's the only one that supports the current DSE version of Cassandra(1.2.1) if that helps at all though the issue seems to be deeper. |
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
Usage | |
===== | |
result, err = json.MarshalIndent(someStruct, "", " ") | |
where someStruct is of type | |
type ColumnDescriptor struct { | |
Name string | |
Type string |
OlderNewer