Skip to content

Instantly share code, notes, and snippets.

@siminoushad
siminoushad / gist:1559106
Created January 4, 2012 08:33
NoNode available
2012-01-04 10:57:25 main/DataFetcher [INFO] Logger levelINFO
2012-01-04 10:57:26 New I/O client worker #1-4/netty [WARN] [Mist Mistress] Message not fully read (response) for [0] handler org.elasticsearch.client.transport.TransportClientNodesService$ScheduledSniffNodesSampler$1$1@112da40, error [false], resetting
2012-01-04 11:09:26 Thread-4/Class [INFO] Completed the link http://rss.cnn.com/~r/rss/money_mostpopular/~3/xqUhH29XxQM/index.htm in 11478
2012-01-04 11:09:26 Thread-9/Worker-9 [ERROR] org.elasticsearch.client.transport.NoNodeAvailableException: No node available
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:139)
at org.elasticsearch.client.transport.support.InternalTransportClusterAdminClient.health(InternalTransportClusterAdminClient.java:109)
at com.algoTree.Commons.ElasticSearchClient.makeRequest(ElasticSearchClient.java:96)
at com.algoTree.DataFetcher.Worker.pushToES(Worker.java:348)
at com.algoTree.DataFetcher.Worker.run(Worker
@siminoushad
siminoushad / gist:3074749
Created July 9, 2012 07:10
build error in OG-Engine -cannot access FudgeDeserializer
fudge-proto-present:
fudge-proto-compile:
fudge-proto:
compile-src:
[javac] Compiling 37 source files to /home/simi/workspace-OG/OG-Platform/projects/OG-Engine/build/classes
[javac] /home/simi/workspace-OG/OG-Platform/projects/OG-Engine/src/com/opengamma/engine/marketdata/spec/UserMarketDataSpecification.java:21: cannot access FudgeDeserializer
[javac] class file for FudgeDeserializer not found
@siminoushad
siminoushad / gist:3225800
Created August 1, 2012 11:02
Elasticsearch client
IndexResponse response = null;
IndexRequestBuilder indexRreqBuild;
client.admin()
.cluster()
.health(new ClusterHealthRequest(indexName)
.waitForYellowStatus()).actionGet();
XContentBuilder docBuilder = XContentFactory.jsonBuilder()
.startObject();
for (String key : map.keySet()) {
@siminoushad
siminoushad / gist:3617654
Created September 4, 2012 06:36
Observation
_source: {
partnerName: filearch
relatedSources: null
fetchTimeStamp: 04-09-2012 09:45:53
Author: none
wordCount: 403
actualTimeStamp: 04-09-2012 09:45:53
entityCount: 7
Categories: {
Types: {
@siminoushad
siminoushad / gist:3877278
Created October 12, 2012 04:20
ES Observation
_source: {
partnerName: tweet
relatedSources: null
fetchTimeStamp: 12-10-2012 09:41:57
actualTimeStamp: 11-10-2012 20:00:47
wordCount: 762
Title: The U.S. trade deficit widened to $44.2 billion in August as exports dropped
ParentUrl: BloombergNews
Link: http://t.co/Hku3q5Ws
@siminoushad
siminoushad / gist:5160993
Created March 14, 2013 12:36
event structure
{
_index: emac
_type: events
_id: AYPOYALBRUKq4rCsqj8_KA
_version: 1
_score: 1
_source: {
Entities: [
{
entity: HedgeFirm
@siminoushad
siminoushad / gist:5167843
Created March 15, 2013 06:21
emac sample data
{
"Types": {
"Entities": [
{
"entity": "Company",
"Company": {
"count": 1,
"entities": [
{
"sector": "Financials",
@siminoushad
siminoushad / gist:5186766
Created March 18, 2013 12:15
EMAC -Sources
{
"_shards": {
"failed": 0,
"successful": 2,
"total": 2
},
"hits": {
"hits": [
{
"_id": "MSxKsYTaTvSD_icQdkgyZw",
@siminoushad
siminoushad / gist:5186777
Created March 18, 2013 12:17
Events - Sources
{
"_shards": {
"failed": 0,
"successful": 2,
"total": 2
},
"hits": {
"hits": [
{
"_id": "SrtW9ISKReyxIR-IIHiUng",