http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/054dfb76/addons/metadata-bridge-parent/metadata-bridge-core/src/main/java/org/apache/hadoop/metadata/bridge/module/BridgeModule.java ---------------------------------------------------------------------- diff --git a/addons/metadata-bridge-parent/metadata-bridge-core/src/main/java/org/apache/hadoop/metadata/bridge/module/BridgeModule.java b/addons/metadata-bridge-parent/metadata-bridge-core/src/main/java/org/apache/hadoop/metadata/bridge/module/BridgeModule.java deleted file mode 100755 index 806f31e..0000000 --- a/addons/metadata-bridge-parent/metadata-bridge-core/src/main/java/org/apache/hadoop/metadata/bridge/module/BridgeModule.java +++ /dev/null @@ -1,83 +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 - * <p/> - * http://www.apache.org/licenses/LICENSE-2.0 - * <p/> - * 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.atlas.bridge.module; - -import com.google.inject.AbstractModule; -import com.google.inject.Scopes; -import com.google.inject.multibindings.MapBinder; -import org.apache.atlas.RepositoryMetadataModule; -import org.apache.atlas.bridge.BridgeTypeBootstrapper; -import org.apache.atlas.bridge.IBridge; -import org.apache.commons.configuration.ConfigurationException; -import org.apache.commons.configuration.PropertiesConfiguration; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.util.ArrayList; -import java.util.List; - -public class BridgeModule extends AbstractModule { - public static final Logger LOG = LoggerFactory.getLogger(BridgeModule.class); - - @Override - protected void configure() { - install(new RepositoryMetadataModule()); - - // make sure the BridgeTypeBootstrapper is only ever created once - bind(BridgeTypeBootstrapper.class).in(Scopes.SINGLETON); - - // Load the configured bridge classes and add them to the map binder - MapBinder<Class, IBridge> mapbinder = MapBinder.newMapBinder(binder(), Class.class, IBridge.class); - - String propsURI = System.getProperty("bridgeManager.propsFile", "bridge-manager.properties"); - - List<Class<? extends IBridge>> bridges = getBridgeClasses(propsURI); - for (Class<? extends IBridge> bridgeClass : bridges) { - mapbinder.addBinding(bridgeClass).to(bridgeClass).in(Scopes.SINGLETON); - } - } - - /* - * Get the bridge classes from the configuration file - */ - private List<Class<? extends IBridge>> getBridgeClasses(String bridgePropFileName) { - List<Class<? extends IBridge>> aBList = new ArrayList<Class<? extends IBridge>>(); - - PropertiesConfiguration config = new PropertiesConfiguration(); - - try { - LOG.info("Loading : Active Bridge List"); - config.load(bridgePropFileName); - String[] activeBridgeList = ((String) config.getProperty("BridgeManager.activeBridges")).split(","); - LOG.info("Loaded : Active Bridge List"); - - for (String s : activeBridgeList) { - Class<? extends IBridge> bridgeCls = (Class<? extends IBridge>) Class.forName(s); - aBList.add(bridgeCls); - } - - } catch (ConfigurationException | IllegalArgumentException - | SecurityException | ClassNotFoundException e) { - LOG.error(e.getMessage(), e); - e.printStackTrace(); - } - - return aBList; - } -}
http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/054dfb76/addons/metadata-bridge-parent/metadata-bridge-core/src/main/java/org/apache/hadoop/metadata/web/resources/HiveLineageResource.java ---------------------------------------------------------------------- diff --git a/addons/metadata-bridge-parent/metadata-bridge-core/src/main/java/org/apache/hadoop/metadata/web/resources/HiveLineageResource.java b/addons/metadata-bridge-parent/metadata-bridge-core/src/main/java/org/apache/hadoop/metadata/web/resources/HiveLineageResource.java deleted file mode 100755 index 13b0838..0000000 --- a/addons/metadata-bridge-parent/metadata-bridge-core/src/main/java/org/apache/hadoop/metadata/web/resources/HiveLineageResource.java +++ /dev/null @@ -1,82 +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 - * <p/> - * http://www.apache.org/licenses/LICENSE-2.0 - * <p/> - * 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.atlas.web.resources; - -import org.apache.atlas.bridge.hivelineage.HiveLineageBridge; - -import javax.inject.Singleton; - -//@Path("bridge/hive") -@Singleton -public class HiveLineageResource { - - private final HiveLineageBridge bridge = null; - - /* - //@Inject - public HiveLineageResource(HiveLineageBridge bridge) { - this.bridge = bridge; - } - - //@Inject - public HiveLineageResource(Map<Class<? extends IBridge>, IBridge> bridges) { - this.bridge = (HiveLineageBridge) bridges.get(HiveLineageBridge.class); - } - - @GET - @Path("/{id}") - @Produces(MediaType.APPLICATION_JSON) - public JsonElement getById(@PathParam("id") String id) throws RepositoryException { - // get the lineage bean - HiveLineage hlb = (HiveLineage) bridge.get(id); - // turn it into a JsonTree & return - return new Gson().toJsonTree(hlb); - } - - @GET - @Produces(MediaType.APPLICATION_JSON) - public JsonElement list() throws RepositoryException { - // make a new JsonArray to be returned - JsonArray ja = new JsonArray(); - // iterate over each item returned by the hive bridge's list() method - for (String s: bridge.list()) { - // they are GUIDs so make them into JsonPrimitives - ja.add(new JsonPrimitive(s)); - } - return ja; - } - - @POST - @Consumes(MediaType.APPLICATION_JSON) - @Produces(MediaType.APPLICATION_JSON) - public JsonElement addLineage(@Context HttpServletRequest request) - throws IOException, MetadataException { - // create a reader - try (Reader reader = new InputStreamReader(request.getInputStream())) { - // deserialize - HiveLineage bean = new Gson().fromJson(reader, HiveLineage.class); - String id = bridge.create(bean); - - JsonObject jo = new JsonObject(); - jo.addProperty("id", id); - return jo; - } - } - */ -} http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/054dfb76/addons/metadata-bridge-parent/metadata-bridge-core/src/main/resources/bridge-manager.properties ---------------------------------------------------------------------- diff --git a/addons/metadata-bridge-parent/metadata-bridge-core/src/main/resources/bridge-manager.properties b/addons/metadata-bridge-parent/metadata-bridge-core/src/main/resources/bridge-manager.properties deleted file mode 100755 index 256b795..0000000 --- a/addons/metadata-bridge-parent/metadata-bridge-core/src/main/resources/bridge-manager.properties +++ /dev/null @@ -1,22 +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. -# - -#BridgeManager.activebridges denotes which bridge defintions to load from the classpath (Comma seperated list of fully qualified class paths) -# -BridgeManager.activeBridges=org.apache.atlas.bridge.hivelineage.HiveLineageBridge \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/054dfb76/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/BridgeManagerTest.java ---------------------------------------------------------------------- diff --git a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/BridgeManagerTest.java b/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/BridgeManagerTest.java deleted file mode 100755 index 4045633..0000000 --- a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/BridgeManagerTest.java +++ /dev/null @@ -1,57 +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 - * <p/> - * http://www.apache.org/licenses/LICENSE-2.0 - * <p/> - * 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.atlas.bridge; - -import org.apache.atlas.RepositoryMetadataModule; -import org.apache.atlas.repository.MetadataRepository; -import org.testng.Assert; -import org.testng.annotations.Guice; -import org.testng.annotations.Test; - -import javax.inject.Inject; - - -@Guice(modules = RepositoryMetadataModule.class) -public class BridgeManagerTest { - - @Inject - MetadataRepository repo; - - @Test(enabled = false) - public void testLoadPropertiesFile() throws Exception { - BridgeManager bm = new BridgeManager(repo); - System.out.println(bm.getActiveBridges().size()); - - Assert.assertEquals(bm.activeBridges.get(0).getClass().getSimpleName(), "HiveLineageBridge"); - } - - @Test - public void testBeanConvertion() { - - //Tests Conversion of Bean to Type - } - - @Test - public void testIRefConvertion() { - - //Tests Conversion of IRef cast to Bean - } - - -} http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/054dfb76/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/TestBridgeModule.java ---------------------------------------------------------------------- diff --git a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/TestBridgeModule.java b/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/TestBridgeModule.java deleted file mode 100755 index 240b4b0..0000000 --- a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/TestBridgeModule.java +++ /dev/null @@ -1,34 +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 - * <p/> - * http://www.apache.org/licenses/LICENSE-2.0 - * <p/> - * 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.atlas.bridge; - -import org.apache.atlas.bridge.module.BridgeModule; -import org.testng.Assert; -import org.testng.annotations.Guice; -import org.testng.annotations.Test; - -@Guice(modules = {BridgeModule.class}) -public class TestBridgeModule { - - @Test - public void loadAnything() { - // if it makes it here, the BridgeModule loaded successfully - Assert.assertTrue(true); - } -} http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/054dfb76/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/TestGenericBridges.java ---------------------------------------------------------------------- diff --git a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/TestGenericBridges.java b/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/TestGenericBridges.java deleted file mode 100755 index 4f05c61..0000000 --- a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/TestGenericBridges.java +++ /dev/null @@ -1,25 +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 - * <p/> - * http://www.apache.org/licenses/LICENSE-2.0 - * <p/> - * 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.atlas.bridge; - -public class TestGenericBridges { - - - //TODO Build Generic Tests for non-lineage Bridge -} http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/054dfb76/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/hivelineage/TestHiveLineageBridge.java ---------------------------------------------------------------------- diff --git a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/hivelineage/TestHiveLineageBridge.java b/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/hivelineage/TestHiveLineageBridge.java deleted file mode 100755 index e72f13c..0000000 --- a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/java/org/apache/hadoop/metadata/bridge/hivelineage/TestHiveLineageBridge.java +++ /dev/null @@ -1,85 +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 - * <p/> - * http://www.apache.org/licenses/LICENSE-2.0 - * <p/> - * 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.atlas.bridge.hivelineage; - -import com.google.gson.Gson; -import org.apache.atlas.MetadataException; -import org.apache.atlas.bridge.BridgeTypeBootstrapper; -import org.apache.atlas.bridge.hivelineage.hook.HiveLineage; -import org.apache.atlas.bridge.module.BridgeModule; -import org.apache.atlas.repository.RepositoryException; -import org.apache.commons.collections.IteratorUtils; -import org.testng.Assert; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Guice; -import org.testng.annotations.Test; - -import javax.inject.Inject; -import java.io.IOException; -import java.io.InputStreamReader; -import java.util.List; - -@Guice(modules = {BridgeModule.class}) -public class TestHiveLineageBridge { - - @Inject - HiveLineageBridge bridge; - - @Inject - BridgeTypeBootstrapper bootstrapper; - - HiveLineage hlb; - - // the id of one.json in the repo (test #1) - String oneId; - - private HiveLineage loadHiveLineageBean(String path) throws IOException { - return new Gson().fromJson(new InputStreamReader(this.getClass().getResourceAsStream(path)), HiveLineage.class); - } - - @BeforeClass - public void bootstrap() throws IOException, MetadataException { - bootstrapper.bootstrap(); - hlb = loadHiveLineageBean("/one.json"); - } - - @Test(priority = 1, enabled = false) - public void testCreate() throws MetadataException { - // add the lineage bean to the repo - oneId = bridge.create(hlb); - - // make sure this actually did worked - Assert.assertNotNull(oneId); - } - - @Test(priority = 2, enabled = false) - public void testGet() throws RepositoryException, IOException { - Object bean = bridge.get(oneId); - - Assert.assertEquals(hlb, bean); - } - - @Test(priority = 3, enabled = false) - public void testList() throws RepositoryException { - List<String> list = IteratorUtils.toList(bridge.list().iterator()); - - Assert.assertEquals(list.size(), 1); - Assert.assertEquals(list.get(0), oneId); - } -} http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/054dfb76/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/bridge-manager.properties ---------------------------------------------------------------------- diff --git a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/bridge-manager.properties b/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/bridge-manager.properties deleted file mode 100755 index 256b795..0000000 --- a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/bridge-manager.properties +++ /dev/null @@ -1,22 +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. -# - -#BridgeManager.activebridges denotes which bridge defintions to load from the classpath (Comma seperated list of fully qualified class paths) -# -BridgeManager.activeBridges=org.apache.atlas.bridge.hivelineage.HiveLineageBridge \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/054dfb76/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/graph.properties ---------------------------------------------------------------------- diff --git a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/graph.properties b/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/graph.properties deleted file mode 100755 index 00b8edc..0000000 --- a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/graph.properties +++ /dev/null @@ -1,25 +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. -# - -storage.backend=inmemory - -# Graph Search Index -index.search.backend=elasticsearch -index.search.directory=target/data/es -index.search.elasticsearch.client-only=false -index.search.elasticsearch.local-mode=true \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/054dfb76/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/one.json ---------------------------------------------------------------------- diff --git a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/one.json b/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/one.json deleted file mode 100755 index df52941..0000000 --- a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/one.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "queryId": "a760104_20150106120303_036186d5-a991-4dfc-9ff2-05b072c7e711", - "hiveId": "90797386-3933-4ab0-ae68-a7baa7e155d4", - "user": "", - "queryStartTime": "1420563838114", - "queryEndTime": "1420563853806", - "query": "create table nyse_gss_count_dump as select count(nyse.stock_symbol) stock_symbol_count, stock_symbol from nyse_stocks nyse where (nyse.stock_symbol \u003d \u0027AET\u0027 or nyse.stock_symbol \u003d \u0027UNH\u0027 ) and nyse.stock_symbol \u003d \u0027T\u0027 GROUP by stock_symbol", - "tableName": "nyse_gss_count_dump", - "success": true, - "failed": false, - "executionEngine": "tez", - "sourceTables": [ - { - "tableName": "nyse_stocks", - "tableAlias": "nyse" - } - ], - "queryColumns": [ - { - "tbAliasOrName": "nyse", - "columnName": "stock_symbol", - "columnAlias": "stock_symbol_count", - "columnFunction": "count" - }, - {"columnName": "stock_symbol"} - ], - "whereClause": [ - { - "tbAliasOrName": "nyse", - "columnName": "stock_symbol", - "columnOperator": "\u003d", - "columnValue": "\u0027AET\u0027" - }, - { - "tbAliasOrName": "nyse", - "columnName": "stock_symbol", - "columnOperator": "\u003d", - "columnValue": "\u0027UNH\u0027" - }, - { - "tbAliasOrName": "nyse", - "columnName": "stock_symbol", - "columnOperator": "\u003d", - "columnValue": "\u0027T\u0027" - } - ], - "groupBy": [{"columnName": "stock_symbol"}] -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/054dfb76/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/test-bridge-manager.properties ---------------------------------------------------------------------- diff --git a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/test-bridge-manager.properties b/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/test-bridge-manager.properties deleted file mode 100755 index eacd445..0000000 --- a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/test-bridge-manager.properties +++ /dev/null @@ -1,22 +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. -# - -#BridgeManager.activebridges denotes which bridge defintions to load from the classpath (Comma seperated list of fully qualified class paths) -# -BridgeManager.activeBridges=org.apache.atlas.bridge.HiveLineage \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/054dfb76/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/two.json ---------------------------------------------------------------------- diff --git a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/two.json b/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/two.json deleted file mode 100755 index 7f54ce8..0000000 --- a/addons/metadata-bridge-parent/metadata-bridge-core/src/test/resources/two.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "queryId": "a760104_20150108124747_53cb7716-8756-4dfe-b746-4055f53e2895", - "hiveId": "1aebd95c-c7d5-4893-8c8c-c9ae098bdd5c", - "user": "", - "queryStartTime": "1420739257453", - "queryEndTime": "1420739277589", - "query": "create table nyse_gss_count_dump as select count(nyse.stock_symbol) stock_symbol_count, stock_symbol from nyse_stocks nyse where (nyse.stock_symbol \u003d \u0027AET\u0027 or nyse.stock_symbol \u003d \u0027UNH\u0027 ) and nyse.stock_symbol \u003d \u0027T\u0027 GROUP by stock_symbol", - "tableName": "nyse_gss_count_dump", - "success": true, - "failed": false, - "executionEngine": "tez", - "sourceTables": [ - { - "tableName": "nyse_stocks", - "tableAlias": "nyse" - } - ], - "queryColumns": [ - { - "tbAliasOrName": "nyse", - "columnName": "stock_symbol", - "columnAlias": "stock_symbol_count", - "columnFunction": "count" - }, - {"columnName": "stock_symbol"} - ], - "whereClause": [ - { - "tbAliasOrName": "nyse", - "columnName": "stock_symbol", - "columnOperator": "\u003d", - "columnValue": "\u0027AET\u0027" - }, - { - "tbAliasOrName": "nyse", - "columnName": "stock_symbol", - "columnOperator": "\u003d", - "columnValue": "\u0027UNH\u0027" - }, - { - "tbAliasOrName": "nyse", - "columnName": "stock_symbol", - "columnOperator": "\u003d", - "columnValue": "\u0027T\u0027" - } - ], - "groupBy": [{"columnName": "stock_symbol"}] -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/054dfb76/addons/metadata-bridge-parent/pom.xml ---------------------------------------------------------------------- diff --git a/addons/metadata-bridge-parent/pom.xml b/addons/metadata-bridge-parent/pom.xml deleted file mode 100755 index 6ce816e..0000000 --- a/addons/metadata-bridge-parent/pom.xml +++ /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. - --> - -<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns="http://maven.apache.org/POM/4.0.0" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.apache.atlas</groupId> - <artifactId>apache-atlas</artifactId> - <version>0.1-incubating-SNAPSHOT</version> - <relativePath>../../</relativePath> - </parent> - <artifactId>atlas-bridge-parent</artifactId> - <packaging>pom</packaging> - <modules> - <module>atlas-bridge-core</module> - <module>atlas-bridge-hive</module> - </modules> -</project> \ No newline at end of file
