Skip to content

Commit

Permalink
fix batch indexing and prepare for next release
Browse files Browse the repository at this point in the history
  • Loading branch information
fjy committed Jan 17, 2014
1 parent 26a0f86 commit f898c29
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 27 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ echo "For examples, see: "
echo " "
ls -1 examples/*/*sh
echo " "
echo "See also http://druid.io/docs/0.6.51"
echo "See also http://druid.io/docs/0.6.52"
4 changes: 2 additions & 2 deletions docs/content/Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ Clone Druid and build it:
git clone https://github.com/metamx/druid.git druid
cd druid
git fetch --tags
git checkout druid-0.6.51
git checkout druid-0.6.52
./build.sh
```

### Downloading the DSK (Druid Standalone Kit)

[Download](http://static.druid.io/artifacts/releases/druid-services-0.6.51-bin.tar.gz) a stand-alone tarball and run it:
[Download](http://static.druid.io/artifacts/releases/druid-services-0.6.52-bin.tar.gz) a stand-alone tarball and run it:

``` bash
tar -xzf druid-services-0.X.X-bin.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion docs/content/Realtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ druid.host=localhost
druid.service=realtime
druid.port=8083
druid.extensions.coordinates=["io.druid.extensions:druid-kafka-seven:0.6.51"]
druid.extensions.coordinates=["io.druid.extensions:druid-kafka-seven:0.6.52"]
druid.zk.service.host=localhost
Expand Down
4 changes: 2 additions & 2 deletions docs/content/Tutorial:-A-First-Look-at-Druid.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ There are two ways to setup Druid: download a tarball, or [Build From Source](Bu

### Download a Tarball

We've built a tarball that contains everything you'll need. You'll find it [here](http://static.druid.io/artifacts/releases/druid-services-0.6.51-bin.tar.gz). Download this file to a directory of your choosing.
We've built a tarball that contains everything you'll need. You'll find it [here](http://static.druid.io/artifacts/releases/druid-services-0.6.52-bin.tar.gz). Download this file to a directory of your choosing.

You can extract the awesomeness within by issuing:

Expand All @@ -60,7 +60,7 @@ tar -zxvf druid-services-*-bin.tar.gz
Not too lost so far right? That's great! If you cd into the directory:

```
cd druid-services-0.6.51
cd druid-services-0.6.52
```

You should see a bunch of files:
Expand Down
2 changes: 1 addition & 1 deletion docs/content/Tutorial:-Loading-Your-Data-Part-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ With real-world data, we recommend having a message bus such as [Apache Kafka](h
<a id="set-up-kafka"></a>
#### Setting up Kafka

[KafkaFirehoseFactory](https://github.com/metamx/druid/blob/druid-0.6.51/realtime/src/main/java/com/metamx/druid/realtime/firehose/KafkaFirehoseFactory.java) is how druid communicates with Kafka. Using this [Firehose](Firehose.html) with the right configuration, we can import data into Druid in real-time without writing any code. To load data to a real-time node via Kafka, we'll first need to initialize Zookeeper and Kafka, and then configure and initialize a [Realtime](Realtime.html) node.
[KafkaFirehoseFactory](https://github.com/metamx/druid/blob/druid-0.6.52/realtime/src/main/java/com/metamx/druid/realtime/firehose/KafkaFirehoseFactory.java) is how druid communicates with Kafka. Using this [Firehose](Firehose.html) with the right configuration, we can import data into Druid in real-time without writing any code. To load data to a real-time node via Kafka, we'll first need to initialize Zookeeper and Kafka, and then configure and initialize a [Realtime](Realtime.html) node.

Instructions for booting a Zookeeper and then Kafka cluster are available [here](http://kafka.apache.org/07/quickstart.html).

Expand Down
6 changes: 3 additions & 3 deletions docs/content/Tutorial:-The-Druid-Cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ In this tutorial, we will set up other types of Druid nodes as well as and exter

If you followed the first tutorial, you should already have Druid downloaded. If not, let's go back and do that first.

You can download the latest version of druid [here](http://static.druid.io/artifacts/releases/druid-services-0.6.51-bin.tar.gz)
You can download the latest version of druid [here](http://static.druid.io/artifacts/releases/druid-services-0.6.52-bin.tar.gz)

and untar the contents within by issuing:

Expand Down Expand Up @@ -149,7 +149,7 @@ druid.port=8081
druid.zk.service.host=localhost
druid.extensions.coordinates=["io.druid.extensions:druid-s3-extensions:0.6.51"]
druid.extensions.coordinates=["io.druid.extensions:druid-s3-extensions:0.6.52"]
# Dummy read only AWS account (used to download example data)
druid.s3.secretKey=QyyfVZ7llSiRg6Qcrql1eEUG7buFpAK6T6engr1b
Expand Down Expand Up @@ -240,7 +240,7 @@ druid.port=8083
druid.zk.service.host=localhost
druid.extensions.coordinates=["io.druid.extensions:druid-examples:0.6.51","io.druid.extensions:druid-kafka-seven:0.6.51"]
druid.extensions.coordinates=["io.druid.extensions:druid-examples:0.6.52","io.druid.extensions:druid-kafka-seven:0.6.52"]
# Change this config to db to hand off to the rest of the Druid cluster
druid.publish.type=noop
Expand Down
4 changes: 2 additions & 2 deletions docs/content/Tutorial:-Webstream.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ There are two ways to setup Druid: download a tarball, or [Build From Source](Bu

h3. Download a Tarball

We've built a tarball that contains everything you'll need. You'll find it [here](http://static.druid.io/artifacts/releases/druid-services-0.6.51-bin.tar.gz)
We've built a tarball that contains everything you'll need. You'll find it [here](http://static.druid.io/artifacts/releases/druid-services-0.6.52-bin.tar.gz)
Download this file to a directory of your choosing.
You can extract the awesomeness within by issuing:

Expand All @@ -48,7 +48,7 @@ tar zxvf druid-services-*-bin.tar.gz
Not too lost so far right? That's great! If you cd into the directory:

```
cd druid-services-0.6.51
cd druid-services-0.6.52
```

You should see a bunch of files:
Expand Down
2 changes: 1 addition & 1 deletion docs/content/Twitter-Tutorial.textile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ There are two ways to setup Druid: download a tarball, or build it from source.

h3. Download a Tarball

We've built a tarball that contains everything you'll need. You'll find it "here":http://static.druid.io/artifacts/releases/druid-services-0.6.51-bin.tar.gz.
We've built a tarball that contains everything you'll need. You'll find it "here":http://static.druid.io/artifacts/releases/druid-services-0.6.52-bin.tar.gz.
Download this bad boy to a directory of your choosing.

You can extract the awesomeness within by issuing:
Expand Down
2 changes: 1 addition & 1 deletion examples/config/historical/runtime.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ druid.port=8081

druid.zk.service.host=localhost

druid.extensions.coordinates=["io.druid.extensions:druid-s3-extensions:0.6.51"]
druid.extensions.coordinates=["io.druid.extensions:druid-s3-extensions:0.6.52"]

# Dummy read only AWS account (used to download example data)
druid.s3.secretKey=QyyfVZ7llSiRg6Qcrql1eEUG7buFpAK6T6engr1b
Expand Down
2 changes: 1 addition & 1 deletion examples/config/realtime/runtime.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ druid.port=8083

druid.zk.service.host=localhost

druid.extensions.coordinates=["io.druid.extensions:druid-examples:0.6.51","io.druid.extensions:druid-kafka-seven:0.6.51","io.druid.extensions:druid-rabbitmq:0.6.51"]
druid.extensions.coordinates=["io.druid.extensions:druid-examples:0.6.52","io.druid.extensions:druid-kafka-seven:0.6.52","io.druid.extensions:druid-rabbitmq:0.6.52"]

# Change this config to db to hand off to the rest of the Druid cluster
druid.publish.type=noop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@

package io.druid.indexer;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.ImmutableMap;
import com.metamx.common.logger.Logger;
import io.druid.db.DbConnector;
import io.druid.jackson.DefaultObjectMapper;
import io.druid.timeline.DataSegment;
import org.joda.time.DateTime;
import org.skife.jdbi.v2.Handle;
Expand All @@ -39,8 +37,6 @@ public class DbUpdaterJob implements Jobby
{
private static final Logger log = new Logger(DbUpdaterJob.class);

private static final ObjectMapper jsonMapper = new DefaultObjectMapper();

private final HadoopDruidIndexerConfig config;
private final IDBI dbi;

Expand Down Expand Up @@ -82,7 +78,7 @@ public Void withHandle(Handle handle) throws Exception
.put("partitioned", segment.getShardSpec().getPartitionNum())
.put("version", segment.getVersion())
.put("used", true)
.put("payload", jsonMapper.writeValueAsString(segment))
.put("payload", HadoopDruidIndexerConfig.jsonMapper.writeValueAsString(segment))
.build()
);

Expand Down
2 changes: 1 addition & 1 deletion services/src/main/java/io/druid/cli/CliBroker.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
*/
@Command(
name = "broker",
description = "Runs a broker node, see http://druid.io/docs/0.6.51/Broker.html for a description"
description = "Runs a broker node, see http://druid.io/docs/0.6.52/Broker.html for a description"
)
public class CliBroker extends ServerRunnable
{
Expand Down
2 changes: 1 addition & 1 deletion services/src/main/java/io/druid/cli/CliCoordinator.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
*/
@Command(
name = "coordinator",
description = "Runs the Coordinator, see http://druid.io/docs/0.6.51/Coordinator.html for a description."
description = "Runs the Coordinator, see http://druid.io/docs/0.6.52/Coordinator.html for a description."
)
public class CliCoordinator extends ServerRunnable
{
Expand Down
2 changes: 1 addition & 1 deletion services/src/main/java/io/druid/cli/CliHadoopIndexer.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*/
@Command(
name = "hadoop",
description = "Runs the batch Hadoop Druid Indexer, see http://druid.io/docs/0.6.51/Batch-ingestion.html for a description."
description = "Runs the batch Hadoop Druid Indexer, see http://druid.io/docs/0.6.52/Batch-ingestion.html for a description."
)
public class CliHadoopIndexer implements Runnable
{
Expand Down
2 changes: 1 addition & 1 deletion services/src/main/java/io/druid/cli/CliHistorical.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
*/
@Command(
name = "historical",
description = "Runs a Historical node, see http://druid.io/docs/0.6.51/Historical.html for a description"
description = "Runs a Historical node, see http://druid.io/docs/0.6.52/Historical.html for a description"
)
public class CliHistorical extends ServerRunnable
{
Expand Down
2 changes: 1 addition & 1 deletion services/src/main/java/io/druid/cli/CliOverlord.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
*/
@Command(
name = "overlord",
description = "Runs an Overlord node, see http://druid.io/docs/0.6.51/Indexing-Service.html for a description"
description = "Runs an Overlord node, see http://druid.io/docs/0.6.52/Indexing-Service.html for a description"
)
public class CliOverlord extends ServerRunnable
{
Expand Down
2 changes: 1 addition & 1 deletion services/src/main/java/io/druid/cli/CliRealtime.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
@Command(
name = "realtime",
description = "Runs a realtime node, see http://druid.io/docs/0.6.51/Realtime.html for a description"
description = "Runs a realtime node, see http://druid.io/docs/0.6.52/Realtime.html for a description"
)
public class CliRealtime extends ServerRunnable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
*/
@Command(
name = "realtime",
description = "Runs a standalone realtime node for examples, see http://druid.io/docs/0.6.51/Realtime.html for a description"
description = "Runs a standalone realtime node for examples, see http://druid.io/docs/0.6.52/Realtime.html for a description"
)
public class CliRealtimeExample extends ServerRunnable
{
Expand Down

0 comments on commit f898c29

Please sign in to comment.