minor, delete ResourceStoreTest that is only useful to launch cat in ResourceTool
Signed-off-by: Li, Yang <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/e79e6b4d Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/e79e6b4d Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/e79e6b4d Branch: refs/heads/2.x-staging Commit: e79e6b4dc367d945c52ceddfd9a119e848564a24 Parents: 64800a1 Author: Chen Luwei <[email protected]> Authored: Thu Jan 28 18:27:15 2016 +0800 Committer: Li, Yang <[email protected]> Committed: Sun Feb 14 15:28:48 2016 +0800 ---------------------------------------------------------------------- .../storage/hbase/steps/ResourceStoreTest.java | 63 -------------------- 1 file changed, 63 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/e79e6b4d/storage-hbase/src/test/java/org/apache/kylin/storage/hbase/steps/ResourceStoreTest.java ---------------------------------------------------------------------- diff --git a/storage-hbase/src/test/java/org/apache/kylin/storage/hbase/steps/ResourceStoreTest.java b/storage-hbase/src/test/java/org/apache/kylin/storage/hbase/steps/ResourceStoreTest.java deleted file mode 100644 index 020394b..0000000 --- a/storage-hbase/src/test/java/org/apache/kylin/storage/hbase/steps/ResourceStoreTest.java +++ /dev/null @@ -1,63 +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.kylin.storage.hbase.steps; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.apache.kylin.common.KylinConfig; -import org.apache.kylin.common.persistence.ResourceTool; -import org.apache.kylin.common.util.ClassUtil; - -import java.io.File; - -/** - * This is a helper class for developer to directly manipulate the metadata store in sandbox - * This is designed to run in IDE(i.e. not on sandbox hadoop CLI) - * - * For production metadata store manipulation refer to bin/metastore.sh in binary package - * It is desinged to run in hadoop CLI, both in sandbox or in real hadoop environment - */ -public class ResourceStoreTest { - - private static final Log logger = LogFactory.getLog(ResourceStoreTest.class); - - public static void main(String[] args) throws Exception { - logger.info("Adding to classpath: " + new File(HBaseMetadataTestCase.SANDBOX_TEST_DATA).getAbsolutePath()); - ClassUtil.addClasspath(new File(HBaseMetadataTestCase.SANDBOX_TEST_DATA).getAbsolutePath()); - System.setProperty(KylinConfig.KYLIN_CONF, "../examples/test_case_data/sandbox"); - if (System.getProperty("hdp.version") == null) { - throw new RuntimeException("No hdp.version set; Please set hdp.version in your jvm option, for example: -Dhdp.version=2.2.4.2-2"); - } - - if (args.length < 2) { - printUsage(); - return; - } - - if ("cat".equalsIgnoreCase(args[0])) { - ResourceTool.main(new String[] { "cat", args[1] }); - } else { - printUsage(); - } - } - - private static void printUsage() { - logger.info("Usage: ResourceStoreTest cat file"); - } -}
