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
## | |
## old | |
## | |
[zach@pds seer] $ go get code.google.com/p/go.tools/cmd/godoc | |
package golang.org/x/tools/godoc | |
imports golang.org/x/tools/godoc | |
imports golang.org/x/tools/godoc: cannot find package "golang.org/x/tools/godoc" in any of: | |
/usr/lib/go/src/pkg/golang.org/x/tools/godoc (from $GOROOT) | |
/usr/local/src/golang.org/x/tools/godoc (from $GOPATH) |
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
### Keybase proof | |
I hereby claim: | |
* I am zmarcantel on github. | |
* I am zmarcantel (https://keybase.io/zmarcantel) on keybase. | |
* I have a public key whose fingerprint is 4034 CEFB C46D AE9F 9807 149E F369 9D05 18B8 8A2D | |
To claim this, I am signing this object: |
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
{ | |
"eventUrl": "http://test.api.pluto.canwecode.com/main/users/5ef09a70-cef6-11e3-9f0d-c3d55aa7d0d9/events/64d057b0-da4e-485f-8629-315d84bdd15a", | |
"name": "CanWeTest Events", | |
"description": "Just a test of the internal broadcast system", | |
"startDate": "2014-07-23T08:00:00Z", | |
"endDate": "2014-07-23T11:00:00Z", | |
"city": "Austin", | |
"state": "Texas", | |
"venue": "Bass Hall", | |
"pictureUrl": "http://ut-isa.org/wp-content/uploads/2014/03/Bass-Outside.jpg", |
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 |
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
// | |
// 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
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
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
--- | |
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
{ | |
'web': { | |
'hosts': ['web.0.local', 'web.1.local'] | |
}, | |
'workers': { | |
'hosts': ['worker.0.local', 'worker.1.local', 'worker.2.local'] | |
}, | |
'other': { |