Giter Club home page Giter Club logo

teiid-embedded-examples's Introduction

Teiid 10.x Embedded Examples

Teiid Embedded Examples show how to integrate multiple, heterogeneous data stores and enterprise services in a light-weight way.

Build

Enter the following:

$ git clone https://github.com/teiid/teiid-embedded-examples.git
$ cd teiid-embedded-examples
$ mvn clean install -Dversion.teiid=<teiid.version> -s settings.xml

NOTE: if you forked the project, then use https://github.com//teiid-embedded-examples.git instead

NOTE: The examples default to using a version of Teiid close to the latest. If you want to run against a specific version, then either modify the root pom.xml version.teiid property or use -Dversion.teiid= as an argument to any mvn install or exec:java command.

Run

Run from Source code

Import teiid-embedded-examples source code to a IDE(Eclipse), then run each example with the corresponding Main method. For example, import embedded-portfolio to Eclipse, run org.teiid.example.TeiidEmbeddedPortfolio as java application.

Run from mvn

After the above Build section steps, the examples should have built successfully. Navigate to an example, then execute mvn exec commands. For example, using the following commands to run embedded-portfolio against teiid 12.0.0:

$ cd teiid-embedded-examples/embedded-portfolio
$ mvn compile -Dversion.teiid=12.0.0 exec:java -s ../settings.xml

Available Examples

Quickstart Name Features Demonstrated Description Prerequisites
embedded-portfolio Teiid, Dynamic VDB, Native Queries, Data Federation, JDBC Translator, File Translator, TEXTTABLE Demonstrates how to expose multiple data sources for data federation None
embedded-portfolio-logging Teiid, Dynamic VDB, Native Queries, Data Federation, JDBC Translator, File Translator, TEXTTABLE, JBoss LogManager, JBoss Logging Demonstrates how to use JBoss LogManager with Teiid Embedded None
embedded-portfolio-security Teiid, Dynamic VDB, Native Queries, Data Federation, JDBC Translator, File Translator, TEXTTABLE, Jaas/Security Demonstrates security authentication in Teiid Embedded None
embedded-caching Dynamic VDB, Native Queries, JDBC Translator, Results Caching, Materialized Views, Translator Results Caching Demonstrates how Results Caching, Materialized Views works in Teiid None
hbase-as-a-datasource Teiid, Dynamic VDB, Foreign Table, HBase Translator Demonstrates using the HBase Translator with Phoenix Data Source to access data in HBase HBase Server, Phoenix Server
hadoop-integration-hive Teiid, Dynamic VDB, View, Hive Translator Demonstrates using the Hive Translator with HiveServer2 JDBC Driver to access data in Hadoop HDFS Hadoop Services, HiveServer2
spark-integration-hive Teiid, Dynamic VDB, View, Hive Translator Demonstrates using the Hive Translator with HiveServer2 JDBC Driver to access Spark data Spark Thrift JDBC/ODBC server, HiveServer2
vertica-as-a-datasource Teiid, Dynamic VDB, View, Vertica Translator Demonstrates using the Vertica Translator to access data in Vertica Server HP Vertica(7.x) Analytic Database Server, Vertica JDBC Driver
drools-integration Teiid, Dynamic VDB, User Defined Function, VIRTUAL FUNCTION, Drools API Demonstrates using Teiid User Defined Function trigger and fire business rules None
cassandra-as-a-datasourse Teiid, Dynamic VDB, Cassandra Translator Demonstrates using the Cassandra Translator to access table in Cassandra. Cassandra Server installed, keyspace and table created
excel-as-a-datasource Teiid, Dynamic VDB, Foreign Table, Excel Translator Demonstrates using Excel Translator query Excel file with JDBC None
ldap-as-a-datasource Teiid, Dynamic VDB, Ldap Translator Demonstrates using the ldap Translator to access data in OpenLDAP Server OpenLDAP Server installed, Group 'HR' be created
mongodb-as-a-datasource Teiid, Dynamic VDB, MongoDB Translator Demonstrates using the MongoDB Translator to access data in mongodb MongoDB Server installed, 'mydb' be created
twitter-as-a-datasource Teiid, Dynamic VDB, View, WS Translator, OAuth 1, JAAS Demonstrates using the WS Translator to interact with Twitter API Create App in Twitter
odataservice-as-a-datasource Teiid, Dynamic VDB, FOREIGN TABLE, OData Translator Demonstrates using the WebService Connector connecting to an OData source and OData Translator to transform OData source to Teiid Foreign Table None
odata4service-as-a-datasource Teiid, Dynamic VDB, FOREIGN TABLE, OData4 Translator Demonstrates using the WebService Connector connecting to an OData4 source and OData4 Translator to transform OData source to Teiid Foreign Table None
restservice-as-a-datasource Teiid, Dynamic VDB, XMLTABLE, XMLPARSE, WS Translator Demonstrates using the WS Translator to call a REST web services and transform the web service results into relational results customer service
soapservice-as-a-datasource Teiid, Dynamic VDB, VIRTUAL PROCEDURE, XMLTABLE, SOAP Service, WS Translator Demonstrates using the WS Translator to call a generic soap service StateService service

Usage Notes

Some of the Teiid transitive dependencies have known vulnerabilities. WildFly/Teiid addresses this by introducing managed dependency overrides. It is recommended that you include these overrides in your usage of Teiid Embedded by importing the Teiid parent pom in your depedency management section:

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.teiid</groupId>
      <artifactId>teiid-parent</artifactId>
      <version>${version.teiid}</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>

Links

teiid-embedded-examples's People

Contributors

dpereiradev avatar kylinsoong avatar rareddy avatar shawkins avatar vhalbert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

teiid-embedded-examples's Issues

mvn install fails : SNAPSHOT errors

Running mvn install on these artifacts generally leads to failures.

Are these SNAPSHOT dependencies supposed to be used in the poms?

[INFO] Building Teiid Examples excel-as-a-datasource 1.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.jboss.teiid:teiid-runtime:jar:9.0.0.Beta2-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.jboss.teiid:teiid-admin:jar:9.0.0.Beta2-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.jboss.teiid.connectors:translator-excel:jar:9.0.0.Beta2-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.jboss.teiid.connectors:connector-file:jar:9.0.0.Beta2-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.199 s
[INFO] Finished at: 2016-05-26T20:35:57-04:00
[INFO] Final Memory: 8M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project excel-as-a-datasource: Could not resolve dependencies for project org.jboss.teiid.examples:excel-as-a-datasource:jar:1.0.1-SNAPSHOT: The following artifacts could not be resolved: org.jboss.teiid:teiid-runtime:jar:9.0.0.Beta2-SNAPSHOT, org.jboss.teiid:teiid-admin:jar:9.0.0.Beta2-SNAPSHOT, org.jboss.teiid.connectors:translator-excel:jar:9.0.0.Beta2-SNAPSHOT, org.jboss.teiid.connectors:connector-file:jar:9.0.0.Beta2-SNAPSHOT: Could not find artifact org.jboss.teiid:teiid-runtime:jar:9.0.0.Beta2-SNAPSHOT -> [Help 1]
[ERROR]

how to fix java.lang.NoSuchFieldError: RETURN_BLANK_AS_NULL

i have run same project in java below error is coming up

10:53:14.337 [Worker2_QueryProcessorQueue2] ERROR org.teiid.CONNECTOR - Connector worker process failed for atomic-request=pcnik6Sg+l5d.0.1.0
java.lang.NoSuchFieldError: RETURN_BLANK_AS_NULL
at org.teiid.translator.excel.ExcelExecution.projectRow(ExcelExecution.java:230)
at org.teiid.translator.excel.ExcelExecution.next(ExcelExecution.java:160)
at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.handleBatch(ConnectorWorkItem.java:428)
at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.more(ConnectorWorkItem.java:231)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.teiid.dqp.internal.datamgr.ConnectorManager$1.invoke(ConnectorManager.java:216)
at com.sun.proxy.$Proxy18.more(Unknown Source)
at org.teiid.dqp.internal.process.DataTierTupleSource.getResults(DataTierTupleSource.java:305)
at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:108)
at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:104)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.teiid.dqp.internal.process.FutureWork.run(FutureWork.java:61)
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:280)
at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:115)
at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:206)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.