Rename devZookeeper.java to DevZookeeper.java Project: http://git-wip-us.apache.org/repos/asf/storm/repo Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/9f168d26 Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/9f168d26 Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/9f168d26
Branch: refs/heads/master Commit: 9f168d267b685a65b69d8f778c96c05c7d5784c6 Parents: 99ecc4b Author: John Fang <[email protected]> Authored: Tue Feb 16 20:43:27 2016 +0800 Committer: John Fang <[email protected]> Committed: Tue Feb 16 20:43:27 2016 +0800 ---------------------------------------------------------------------- .../org/apache/storm/command/DevZookeeper.java | 35 ++++++++++++++++++++ .../org/apache/storm/command/devZookeeper.java | 35 -------------------- 2 files changed, 35 insertions(+), 35 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/storm/blob/9f168d26/storm-core/src/jvm/org/apache/storm/command/DevZookeeper.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/org/apache/storm/command/DevZookeeper.java b/storm-core/src/jvm/org/apache/storm/command/DevZookeeper.java new file mode 100644 index 0000000..846b0f1 --- /dev/null +++ b/storm-core/src/jvm/org/apache/storm/command/DevZookeeper.java @@ -0,0 +1,35 @@ +/** + * 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 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.storm.command; + +import org.apache.storm.Config; +import org.apache.storm.utils.ConfigUtils; +import org.apache.storm.utils.Utils; +import org.apache.storm.zookeeper.Zookeeper; + +import java.util.Map; + +public class DevZookeeper { + public static void main(String[] args) throws Exception { + Map<String, Object> conf = ConfigUtils.readStormConfig(); + Object port = conf.get(Config.STORM_ZOOKEEPER_PORT); + String localPath = (String) conf.get(Config.DEV_ZOOKEEPER_PATH); + Utils.forceDelete(localPath); + Zookeeper.mkInprocessZookeeper(localPath, Utils.getInt(port)); + } +} http://git-wip-us.apache.org/repos/asf/storm/blob/9f168d26/storm-core/src/jvm/org/apache/storm/command/devZookeeper.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/org/apache/storm/command/devZookeeper.java b/storm-core/src/jvm/org/apache/storm/command/devZookeeper.java deleted file mode 100644 index 846b0f1..0000000 --- a/storm-core/src/jvm/org/apache/storm/command/devZookeeper.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * 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 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.storm.command; - -import org.apache.storm.Config; -import org.apache.storm.utils.ConfigUtils; -import org.apache.storm.utils.Utils; -import org.apache.storm.zookeeper.Zookeeper; - -import java.util.Map; - -public class DevZookeeper { - public static void main(String[] args) throws Exception { - Map<String, Object> conf = ConfigUtils.readStormConfig(); - Object port = conf.get(Config.STORM_ZOOKEEPER_PORT); - String localPath = (String) conf.get(Config.DEV_ZOOKEEPER_PATH); - Utils.forceDelete(localPath); - Zookeeper.mkInprocessZookeeper(localPath, Utils.getInt(port)); - } -}
