Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit 6029c28

Browse files
sreevnlu90
authored andcommitted
package rename and related fixes (#2853)
* rename com.twitter to org.apache and related. breaking change. [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * long line > 100, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * order of imports, checkstyle error [#2828] * package rename from com.twitter to org.apache [#2828] * add missed imports [#2828] * package rename from com.twitter to org.apache; fix merge issues [#2828] * incorporate review changes, fix merges, on package rename * fix merge conflicts, from another PR and package rename * Resolve merge conflict errors * removed three inconsistent integration tests to pass the build
1 parent a667fcd commit 6029c28

File tree

1,268 files changed

+6130
-6209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,268 files changed

+6130
-6209
lines changed

ADOPTERS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Heron Adopters
22

3-
Twitter isn't the only company using Heron. We're sure the following list isn't complete, so please [let us know](https://github.com/twitter/heron) if your company should be included, or if you'd like us to feature a link to a blog post or article about how you're using Heron. Or even better, add the links yourself (please use HTTPS URLs if possible) and [submit a pull request](https://github.com/twitter/heron)!
3+
Twitter isn't the only company using Heron. We're sure the following list isn't complete, so please [let us know](https://github.com/apache/incubator-heron) if your company should be included, or if you'd like us to feature a link to a blog post or article about how you're using Heron. Or even better, add the links yourself (please use HTTPS URLs if possible) and [submit a pull request](https://github.com/apache/incubator-heron)!
44

55
* [Twitter](https://twitter.com/)
66
* https://blog.twitter.com/2016/open-sourcing-twitter-heron

deploy/docker/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ It is recommended that docker gets 4 or more cores and 2 GB or more memory
88
### Download heron sandbox script
99

1010
```shell
11-
$ curl -O https://raw.githubusercontent.com/twitter/heron/master/deploy/docker/sandbox.sh
11+
$ curl -O https://raw.githubusercontent.com/apache/incubator-heron/master/deploy/docker/sandbox.sh
1212
$ chmod +x sandbox.sh
1313
```
1414

@@ -33,17 +33,17 @@ http://localhost:8889
3333
```shell
3434
$ ./sandbox.sh shell
3535
Starting heron sandbox shell
36-
root@16092325a696:/heron# heron submit sandbox /heron/examples/heron-api-examples.jar com.twitter.heron.examples.api.ExclamationTopology exclamation
36+
root@16092325a696:/heron# heron submit sandbox /heron/examples/heron-api-examples.jar org.apache.heron.examples.api.ExclamationTopology exclamation
3737
[2018-02-01 20:24:20 +0000] [INFO]: Using cluster definition in /heron/heron-tools/conf/sandbox
3838
[2018-02-01 20:24:20 +0000] [INFO]: Launching topology: 'exclamation'
3939
[2018-02-01 20:24:21 +0000] [INFO]: Successfully launched topology 'exclamation'
4040
root@16092325a696:/heron# heron deactivate sandbox exclamation
4141
[2018-02-01 20:24:46 +0000] [INFO]: Using cluster definition in /heron/heron-tools/conf/sandbox
42-
[2018-02-01 20:24:47 +0000] [INFO] com.twitter.heron.spi.utils.TMasterUtils: Topology command DEACTIVATE completed successfully.
42+
[2018-02-01 20:24:47 +0000] [INFO] org.apache.heron.spi.utils.TMasterUtils: Topology command DEACTIVATE completed successfully.
4343
[2018-02-01 20:24:47 +0000] [INFO]: Successfully deactivate topology: exclamation
4444
root@16092325a696:/heron# heron activate sandbox exclamation
4545
[2018-02-01 20:24:55 +0000] [INFO]: Using cluster definition in /heron/heron-tools/conf/sandbox
46-
[2018-02-01 20:24:56 +0000] [INFO] com.twitter.heron.spi.utils.TMasterUtils: Topology command ACTIVATE completed successfully.
46+
[2018-02-01 20:24:56 +0000] [INFO] org.apache.heron.spi.utils.TMasterUtils: Topology command ACTIVATE completed successfully.
4747
[2018-02-01 20:24:56 +0000] [INFO]: Successfully activate topology: exclamation
4848
root@16092325a696:/heron# heron kill sandbox exclamation
4949
[2018-02-01 20:25:08 +0000] [INFO]: Using cluster definition in /heron/heron-tools/conf/sandbox

deploy/docker/sandbox.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ case $1 in
118118
echo " "
119119

120120
echo " Then you can ${bold}submit${normal} a topology via the shell:"
121-
echo " heron submit sandbox /heron/examples/heron-api-examples.jar com.twitter.heron.examples.api.ExclamationTopology exclamation"
121+
echo " heron submit sandbox /heron/examples/heron-api-examples.jar org.apache.heron.examples.api.ExclamationTopology exclamation"
122122
echo " "
123123

124124
echo " You can ${bold}deactivate${normal} the topology via the shell as well:"

deploy/kubernetes/general/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
### Requirements:
44
* Kubernetes cluster with 3 or more nodes
55
* [kubectl](https://kubernetes.io/docs/tasks/kubectl/install/)
6-
* [heron client](https://twitter.github.io/heron/docs/getting-started/)
6+
* [heron client](https://apache.github.io/incubator-heron/docs/getting-started/)
77

88

99

@@ -12,7 +12,7 @@
1212
1. Start zookeeper:
1313

1414
```shell
15-
$ kubectl create -f https://raw.githubusercontent.com/twitter/heron/master/deploy/kubernetes/general/zookeeper.yaml
15+
$ kubectl create -f https://raw.githubusercontent.com/apache/incubator-heron/master/deploy/kubernetes/general/zookeeper.yaml
1616

1717
$ kubectl get pods
1818
NAME READY STATUS RESTARTS AGE
@@ -24,25 +24,25 @@ zk-0 1/1 Running 0 1m
2424

2525
2. Start bookkeeper:
2626
```shell
27-
$ kubectl create -f https://raw.githubusercontent.com/twitter/heron/master/deploy/kubernetes/general/bookkeeper.yaml
27+
$ kubectl create -f https://raw.githubusercontent.com/apache/incubator-heron/master/deploy/kubernetes/general/bookkeeper.yaml
2828
```
2929

3030
This deploys bookkeeper in a `DaemonSet` and requires the ability of exposing `hostPort` for pods communication.
3131
In some environments like K8S on DC/OS, `hostPort` is not well supported. You can consider deploying bookkeeper in
3232
a `StatefulSet` with `Persistent Volumes` as below. Please see [Persistent Volumes](https://kubernetes.io/docs/concepts/storage/persistent-volumes/) for more details.
3333

3434
```shell
35-
$ kubectl create -f https://raw.githubusercontent.com/twitter/heron/master/deploy/kubernetes/general/bookkeeper.statefulset.yaml
35+
$ kubectl create -f https://raw.githubusercontent.com/apache/incubator-heron/master/deploy/kubernetes/general/bookkeeper.statefulset.yaml
3636
```
3737

3838
3. Start heron tools:
3939
```shell
40-
$ kubectl create -f https://raw.githubusercontent.com/twitter/heron/master/deploy/kubernetes/general/tools.yaml
40+
$ kubectl create -f https://raw.githubusercontent.com/apache/incubator-heron/master/deploy/kubernetes/general/tools.yaml
4141
```
4242

4343
4. Start heron apiserver:
4444
```shell
45-
$ kubectl create -f https://raw.githubusercontent.com/twitter/heron/master/deploy/kubernetes/general/apiserver.yaml
45+
$ kubectl create -f https://raw.githubusercontent.com/apache/incubator-heron/master/deploy/kubernetes/general/apiserver.yaml
4646
```
4747

4848
### Deploy via heron apiserver
@@ -73,13 +73,13 @@ $ curl http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-apis
7373
```shell
7474
$ heron config kubernetes \
7575
set service_url http://localhost:8001/api/v1/proxy/namespaces/default/services/heron-apiserver:9000 \
76-
com.twitter.heron.examples.api.AckingTopology acking
76+
org.apache.heron.examples.api.AckingTopology acking
7777
```
7878

7979
4. Submit an example topology:
8080
```shell
8181
$ heron submit kubernetes ~/.heron/examples/heron-api-examples.jar \
82-
com.twitter.heron.examples.api.AckingTopology acking
82+
org.apache.heron.examples.api.AckingTopology acking
8383
```
8484

8585
5. View heron ui:

deploy/kubernetes/general/apiserver.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ spec:
7272
-D heron.statemgr.connection.string=zookeeper:2181
7373
-D heron.kubernetes.scheduler.uri=http://localhost:8001
7474
-D heron.executor.docker.image=heron/heron:latest
75-
-D heron.class.uploader=com.twitter.heron.uploader.dlog.DLUploader
75+
-D heron.class.uploader=org.apache.heron.uploader.dlog.DLUploader
7676
-D heron.uploader.dlog.topologies.namespace.uri=distributedlog://zookeeper:2181/distributedlog
7777
- name: kubectl-proxy
7878
image: heron/kubectl:latest

deploy/kubernetes/gke/gcs-apiserver.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ spec:
7676
-D heron.statemgr.connection.string=zookeeper:2181
7777
-D heron.kubernetes.scheduler.uri=http://localhost:8001
7878
-D heron.executor.docker.image=heron/heron:latest
79-
-D heron.class.uploader=com.twitter.heron.uploader.gcs.GcsUploader
79+
-D heron.class.uploader=org.apache.heron.uploader.gcs.GcsUploader
8080
-D heron.uploader.gcs.bucket=$GCS_BUCKET
8181
volumeMounts:
8282
- name: google-cloud-key

deploy/kubernetes/helm/Chart.yaml.template

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ description: Heron is a fast distributed streaming engine for processing large d
33
name: heron
44
version: VERSION
55
appVersion: VERSION
6-
icon: https://twitter.github.io/heron/img/HeronTextLogo-small.png
6+
icon: https://apache.github.io/incubator-heron/img/HeronTextLogo-small.png
77
home: http://heron.io
88
sources:
9-
- https://github.com/twitter/heron.git
9+
- https://github.com/apache/incubator-heron.git
1010
maintainers:
1111
- name: Karthik Ramasamy
1212

deploy/kubernetes/helm/templates/NOTES.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You can check the status of Heron by doing the following:
1313
heron config {{ .Release.Name }} set service_url http://localhost:8001/api/v1/proxy/namespaces/{{ .Release.Namespace }}/services/{{ .Release.Name }}-apiserver:9000
1414

1515
5. Submit an example topology
16-
heron submit {{ .Release.Name }} ~/.heron/examples/heron-api-examples.jar com.twitter.heron.examples.api.AckingTopology acking
16+
heron submit {{ .Release.Name }} ~/.heron/examples/heron-api-examples.jar org.apache.heron.examples.api.AckingTopology acking
1717

1818
6. Visit the heron ui and see if your example topology is running
1919
open http://localhost:8001/api/v1/proxy/namespaces/{{ .Release.Namespace }}/services/{{ .Release.Name }}-ui:8889

deploy/kubernetes/helm/templates/tools.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ spec:
110110
-D heron.kubernetes.scheduler.uri=http://localhost:8001
111111
-D heron.kubernetes.scheduler.namespace={{ .Release.Namespace }}
112112
-D heron.executor.docker.image={{ .Values.image }}
113-
-D heron.class.uploader=com.twitter.heron.uploader.dlog.DLUploader
113+
-D heron.class.uploader=org.apache.heron.uploader.dlog.DLUploader
114114
-D heron.uploader.dlog.topologies.num.replicas={{ $jobReplicas }}
115115
-D heron.uploader.dlog.topologies.namespace.uri=distributedlog://{{ .Release.Name }}-zookeeper:2181/distributedlog
116116
envFrom:

deploy/kubernetes/minikube/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
### Requirements:
55
* [minikube](https://kubernetes.io/docs/getting-started-guides/minikube/#installation)
66
* [kubectl](https://kubernetes.io/docs/tasks/kubectl/install/)
7-
* [heron client](https://twitter.github.io/heron/docs/getting-started/)
7+
* [heron client](https://apache.github.io/incubator-heron/docs/getting-started/)
88

99

1010
### Start minkube
@@ -19,7 +19,7 @@ $ minikube start --memory=7168 --cpus=5 --disk-size=20g
1919
1. Start zookeeper:
2020

2121
```shell
22-
$ kubectl create -f https://raw.githubusercontent.com/twitter/heron/master/deploy/kubernetes/minikube/zookeeper.yaml
22+
$ kubectl create -f https://raw.githubusercontent.com/apache/incubator-heron/master/deploy/kubernetes/minikube/zookeeper.yaml
2323

2424
$ kubectl get pods
2525
NAME READY STATUS RESTARTS AGE
@@ -31,17 +31,17 @@ zk-0 1/1 Running 0 1m
3131

3232
2. Start bookkeeper:
3333
```shell
34-
$ kubectl create -f https://raw.githubusercontent.com/twitter/heron/master/deploy/kubernetes/minikube/bookkeeper.yaml
34+
$ kubectl create -f https://raw.githubusercontent.com/apache/incubator-heron/master/deploy/kubernetes/minikube/bookkeeper.yaml
3535
```
3636

3737
3. Start heron tools:
3838
```shell
39-
$ kubectl create -f https://raw.githubusercontent.com/twitter/heron/master/deploy/kubernetes/minikube/tools.yaml
39+
$ kubectl create -f https://raw.githubusercontent.com/apache/incubator-heron/master/deploy/kubernetes/minikube/tools.yaml
4040
```
4141

4242
4. Start heron apiserver:
4343
```shell
44-
$ kubectl create -f https://raw.githubusercontent.com/twitter/heron/master/deploy/kubernetes/minikube/apiserver.yaml
44+
$ kubectl create -f https://raw.githubusercontent.com/apache/incubator-heron/master/deploy/kubernetes/minikube/apiserver.yaml
4545
```
4646

4747
### Deploy via heron apiserver
@@ -77,7 +77,7 @@ set service_url http://localhost:8001/api/v1/proxy/namespaces/default/services/h
7777
4. Submit an example topology:
7878
```shell
7979
$ heron submit kubernetes ~/.heron/examples/heron-api-examples.jar \
80-
com.twitter.heron.examples.api.AckingTopology acking
80+
org.apache.heron.examples.api.AckingTopology acking
8181
```
8282

8383
5. View heron ui:

deploy/kubernetes/minikube/apiserver.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ spec:
5858
-D heron.statemgr.connection.string=zookeeper:2181
5959
-D heron.kubernetes.scheduler.uri=http://localhost:8001
6060
-D heron.executor.docker.image=heron/heron:latest
61-
-D heron.class.uploader=com.twitter.heron.uploader.dlog.DLUploader
61+
-D heron.class.uploader=org.apache.heron.uploader.dlog.DLUploader
6262
-D heron.uploader.dlog.topologies.num.replicas=1
6363
-D heron.uploader.dlog.topologies.namespace.uri=distributedlog://zookeeper:2181/distributedlog
6464
- name: kubectl-proxy

docker/Readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
### To submit/activate/kill a topology:
2525
```
2626
#To submit a topology:
27-
docker exec heron_executor_1 heron submit local /usr/local/heron/examples/heron-examples.jar com.twitter.heron.examples.ExclamationTopology ExclamationTopology --deploy-deactivated
27+
docker exec heron_executor_1 heron submit local /usr/local/heron/examples/heron-examples.jar org.apache.heron.examples.ExclamationTopology ExclamationTopology --deploy-deactivated
2828
#To activate a topology:
2929
docker exec -it heron_executor_1 heron activate local ExclamationTopology
3030
#To kill a topology:

eco-heron-examples/src/java/BUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ filegroup(
77

88
java_binary(
99
name='eco-examples-unshaded',
10-
srcs = glob(["com/twitter/heron/examples/eco/**/*.java"]),
10+
srcs = glob(["org/apache/heron/examples/eco/**/*.java"]),
1111
deps = [
1212
"//heron/api/src/java:api-java-low-level",
1313
"//heron/api/src/java:api-java",

eco-heron-examples/src/java/com/twitter/heron/examples/eco/EvenAndOddBolt.java eco-heron-examples/src/java/org/apache/heron/examples/eco/EvenAndOddBolt.java

+8-9
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,19 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
package com.twitter.heron.examples.eco;
14+
package org.apache.heron.examples.eco;
1515

1616

1717
import java.util.Map;
1818

19-
import com.twitter.heron.api.bolt.BasicOutputCollector;
20-
import com.twitter.heron.api.bolt.IBasicBolt;
21-
import com.twitter.heron.api.topology.OutputFieldsDeclarer;
22-
import com.twitter.heron.api.topology.TopologyContext;
19+
import org.apache.heron.api.bolt.BasicOutputCollector;
20+
import org.apache.heron.api.bolt.IBasicBolt;
21+
import org.apache.heron.api.topology.OutputFieldsDeclarer;
22+
import org.apache.heron.api.topology.TopologyContext;
23+
import org.apache.heron.api.tuple.Fields;
24+
import org.apache.heron.api.tuple.Tuple;
2325

24-
import com.twitter.heron.api.tuple.Fields;
25-
import com.twitter.heron.api.tuple.Tuple;
26-
27-
import static com.twitter.heron.api.utils.Utils.tuple;
26+
import static org.apache.heron.api.utils.Utils.tuple;
2827

2928
@SuppressWarnings({"serial", "rawtypes", "unchecked"})
3029
public class EvenAndOddBolt implements IBasicBolt {

eco-heron-examples/src/java/com/twitter/heron/examples/eco/LogInfoBolt.java eco-heron-examples/src/java/org/apache/heron/examples/eco/LogInfoBolt.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
package com.twitter.heron.examples.eco;
14+
package org.apache.heron.examples.eco;
1515

1616

1717
import java.util.logging.Logger;
1818

19-
import com.twitter.heron.api.bolt.BaseBasicBolt;
20-
import com.twitter.heron.api.bolt.BasicOutputCollector;
21-
import com.twitter.heron.api.topology.OutputFieldsDeclarer;
22-
import com.twitter.heron.api.tuple.Tuple;
19+
import org.apache.heron.api.bolt.BaseBasicBolt;
20+
import org.apache.heron.api.bolt.BasicOutputCollector;
21+
import org.apache.heron.api.topology.OutputFieldsDeclarer;
22+
import org.apache.heron.api.tuple.Tuple;
2323

2424
/**
2525
* Simple bolt that does nothing other than LOG.info() every tuple received.

eco-heron-examples/src/java/com/twitter/heron/examples/eco/RandomString.java eco-heron-examples/src/java/org/apache/heron/examples/eco/RandomString.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
package com.twitter.heron.examples.eco;
14+
package org.apache.heron.examples.eco;
1515

1616
import java.util.Random;
1717

eco-heron-examples/src/java/com/twitter/heron/examples/eco/StatefulConsumerBolt.java eco-heron-examples/src/java/org/apache/heron/examples/eco/StatefulConsumerBolt.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
package com.twitter.heron.examples.eco;
14+
package org.apache.heron.examples.eco;
1515

1616
import java.util.Map;
1717

18-
import com.twitter.heron.api.bolt.BaseRichBolt;
19-
import com.twitter.heron.api.bolt.OutputCollector;
20-
import com.twitter.heron.api.state.State;
21-
import com.twitter.heron.api.topology.IStatefulComponent;
22-
import com.twitter.heron.api.topology.OutputFieldsDeclarer;
23-
import com.twitter.heron.api.topology.TopologyContext;
24-
import com.twitter.heron.api.tuple.Tuple;
18+
import org.apache.heron.api.bolt.BaseRichBolt;
19+
import org.apache.heron.api.bolt.OutputCollector;
20+
import org.apache.heron.api.state.State;
21+
import org.apache.heron.api.topology.IStatefulComponent;
22+
import org.apache.heron.api.topology.OutputFieldsDeclarer;
23+
import org.apache.heron.api.topology.TopologyContext;
24+
import org.apache.heron.api.tuple.Tuple;
2525

2626

2727
public class StatefulConsumerBolt extends BaseRichBolt

eco-heron-examples/src/java/com/twitter/heron/examples/eco/StatefulNumberSpout.java eco-heron-examples/src/java/org/apache/heron/examples/eco/StatefulNumberSpout.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
package com.twitter.heron.examples.eco;
14+
package org.apache.heron.examples.eco;
1515

1616
import java.util.Map;
1717
import java.util.Random;
1818
import java.util.logging.Logger;
1919

20-
import com.twitter.heron.api.spout.BaseRichSpout;
21-
import com.twitter.heron.api.spout.SpoutOutputCollector;
22-
import com.twitter.heron.api.state.State;
23-
import com.twitter.heron.api.topology.IStatefulComponent;
24-
import com.twitter.heron.api.topology.OutputFieldsDeclarer;
25-
import com.twitter.heron.api.topology.TopologyContext;
26-
import com.twitter.heron.api.tuple.Fields;
27-
import com.twitter.heron.api.tuple.Values;
28-
import com.twitter.heron.api.utils.Utils;
20+
import org.apache.heron.api.spout.BaseRichSpout;
21+
import org.apache.heron.api.spout.SpoutOutputCollector;
22+
import org.apache.heron.api.state.State;
23+
import org.apache.heron.api.topology.IStatefulComponent;
24+
import org.apache.heron.api.topology.OutputFieldsDeclarer;
25+
import org.apache.heron.api.topology.TopologyContext;
26+
import org.apache.heron.api.tuple.Fields;
27+
import org.apache.heron.api.tuple.Values;
28+
import org.apache.heron.api.utils.Utils;
2929

3030
@SuppressWarnings("HiddenField")
3131
public class StatefulNumberSpout extends BaseRichSpout

eco-heron-examples/src/java/com/twitter/heron/examples/eco/StatefulRandomIntSpout.java eco-heron-examples/src/java/org/apache/heron/examples/eco/StatefulRandomIntSpout.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
package com.twitter.heron.examples.eco;
14+
package org.apache.heron.examples.eco;
1515

1616
import java.util.Map;
1717
import java.util.concurrent.ThreadLocalRandom;
1818

19-
import com.twitter.heron.api.spout.BaseRichSpout;
20-
import com.twitter.heron.api.spout.SpoutOutputCollector;
21-
import com.twitter.heron.api.state.State;
22-
import com.twitter.heron.api.topology.IStatefulComponent;
23-
import com.twitter.heron.api.topology.OutputFieldsDeclarer;
24-
import com.twitter.heron.api.topology.TopologyContext;
25-
import com.twitter.heron.api.tuple.Fields;
26-
import com.twitter.heron.api.tuple.Values;
19+
import org.apache.heron.api.spout.BaseRichSpout;
20+
import org.apache.heron.api.spout.SpoutOutputCollector;
21+
import org.apache.heron.api.state.State;
22+
import org.apache.heron.api.topology.IStatefulComponent;
23+
import org.apache.heron.api.topology.OutputFieldsDeclarer;
24+
import org.apache.heron.api.topology.TopologyContext;
25+
import org.apache.heron.api.tuple.Fields;
26+
import org.apache.heron.api.tuple.Values;
2727

2828
import backtype.storm.utils.Utils;
2929

0 commit comments

Comments
 (0)