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 java.io.IOException; | |
import java.util.Properties; | |
import kafka.server.KafkaConfig; | |
import kafka.server.KafkaServerStartable; | |
public class KafkaLocal { | |
public KafkaServerStartable kafka; | |
public ZooKeeperLocal zookeeper; |
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
/** | |
* @author Danny Miller [email protected] | |
*/ | |
import java.util.Collection; | |
import java.util.Iterator; | |
import java.util.LinkedList; | |
import java.util.List; | |
import backtype.storm.task.OutputCollector; |
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
// Copyright 2014 BrightTag, Inc. All rights reserved. | |
package com.brighttag.storm.utils; | |
import backtype.storm.tuple.Values; | |
import storm.trident.operation.BaseFunction; | |
import storm.trident.operation.TridentCollector; | |
import storm.trident.tuple.TridentTuple; | |
/** | |
* Converts the first tuple from a byte array into a string. |
# List all running instances of this application
$ http://localhost:7070/kafka-music/instances
[
{
"host": "localhost",
"port": 7070,
# List running app instances that currently manage (parts of) state store "top-five-songs"
$ http://localhost:7070/kafka-music/instances/top-five-songs
[
{
"host": "localhost",
"port": 7070,
# Get all the top-5 charts across all instances
$ http://localhost:7070/kafka-music/charts/top-five
[
{
"artist":"Hilltop Hoods",
"album":"The Calling",
# Get all the top-5 charts across all instances
$ http://localhost:7070/kafka-music/charts/genre/punk
[
{
"artist":"Wheres The Pope?",
"album":"PSI",
# Get all the top-5 charts across all instances
$ http://localhost:7070/kafka-music/song/9
{
"artist":"N.W.A",
"album":"Straight Outta Compton",
"name":"Gangsta Gangsta"
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
/* | |
* Licensed to the Apache Software Foundation (ASF) under one or more | |
* contributor license agreements. See the NOTICE file distributed with | |
* this work for additional information regarding copyright ownership. | |
* The ASF licenses this file to You under the Apache License, Version 2.0 | |
* (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
OlderNewer