Hi, reporting an issue here, when i try to run the script, it returns me this:
MacBook-Pro-Retina-de-Alonso:twitter-sentiment-analysis aironman$ sh insert.dashboard.sh {"took":4,"errors":true,"items":[{"index":{"_index":".kibana","_type":"config","_id":"4.0.0","_version":4,"_shards":{"total":2,"successful":1,"failed":0},"status":200}},{"index":{"_index":".kibana","_type":"index-pattern","_id":"twitter","_version":4,"_shards":{"total":2,"successful":1,"failed":0},"status":200}},{"index":{"_index":".kibana","_type":"search","_id":"All-tweets","_version":4,"_shards":{"total":2,"successful":1,"failed":0},"status":200}},{"index":{"_index":".kibana","_type":"visualization","_id":"Tweets-count","status":400,"error":{"type":"mapper_parsing_exception","reason":"failed to parse","caused_by":{"type":"json_parse_exception","reason":"Unexpected close marker '}': expected ']' (for root starting at [Source: org.elasticsearch.common.io.stream.InputStreamStreamInput@4e5344b; line: 1, column: 0])\n at [Source: org.elasticsearch.common.io.stream.InputStreamStreamInput@4e5344b; line: 1, column: 309]"}}}},{"index":{"_index":".kibana","_type":"dashboard","_id":"Overview","_version":4,"_shard
this is the output of elasticsearch:
[2016-10-03 16:32:16,350][DEBUG][action.bulk ] [Amun] [.kibana][0] failed to execute bulk item (index) index {[.kibana][visualization][Tweets-count], source[{"title":"Tweets count","visState":"{\"type\":\"metric\",\"params\":{\"fontSize\":60},\"aggs\":[{\"id\":\"1\",\"type\":\"count\",\"schema\":\"metric\",\"params\":{}}],\"listeners\":{}}","description":"","savedSearchId":"All-tweets","version":1,"kibanaSavedObjectMeta":{"searchSourceJSON":"{\"filter\":[]}"}}}]} MapperParsingException[failed to parse]; nested: JsonParseException[Unexpected close marker '}': expected ']' (for root starting at [Source: org.elasticsearch.common.io.stream.InputStreamStreamInput@33d22f76; line: 1, column: 0]) at [Source: org.elasticsearch.common.io.stream.InputStreamStreamInput@33d22f76; line: 1, column: 309]]; at org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:156) at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:309) at org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:580) at org.elasticsearch.index.shard.IndexShard.prepareIndexOnPrimary(IndexShard.java:559) at org.elasticsearch.action.index.TransportIndexAction.prepareIndexOperationOnPrimary(TransportIndexAction.java:211) at org.elasticsearch.action.index.TransportIndexAction.executeIndexRequestOnPrimary(TransportIndexAction.java:223) at org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:327) at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:120) at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:68) at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase.doRun(TransportReplicationAction.java:648) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryOperationTransportHandler.messageReceived(TransportReplicationAction.java:279) at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryOperationTransportHandler.messageReceived(TransportReplicationAction.java:271) at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:77) at org.elasticsearch.transport.TransportService$4.doRun(TransportService.java:376) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected close marker '}': expected ']' (for root starting at [Source: org.elasticsearch.common.io.stream.InputStreamStreamInput@33d22f76; line: 1, column: 0]) at [Source: org.elasticsearch.common.io.stream.InputStreamStreamInput@33d22f76; line: 1, column: 309] at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1702) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:558) at com.fasterxml.jackson.core.base.ParserBase._reportMismatchedEndMarker(ParserBase.java:559) at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:752) at org.elasticsearch.common.xcontent.json.JsonXContentParser.nextToken(JsonXContentParser.java:53) at org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:139) ... 18 more
Running on osx Sierra.
Another little issue is that the provided versions of kibana and elastic search does not work, i had to install them using the brew command.