Unfortunately there is no HDFS based resource adapter, which is what ones needs then you can use the TEXTTABLE to parse the contents if they are in CSV, or XMLTABLE for the JSON. I do not think this very complicated to do, take a look at Developer's Guide to write a resource adapter. This may be a good opportunity for you to contribute back to Teiid community
See the corresponding JIRA [TEIID-3647] Create native connector to interact with HDFS as a datasource - JBoss Issue Tracker
Thanks Ramesh, would love to do so.
Btw can we make connection to Apache drill in that case, any pointer please.
Do we have resource adapter and translator for this. Or can we use some alternative misal components.
Apache Drill is interesting proposition, this is query engine is some what similar to Teiid, but has a distributed execution capabilities. So, if you are just trying to call using the SQL then it may be possible using existing "jdbc-simple" or "jdbc-ansi" translators (we have not tried it).
However, there is roadmap thought in Teiid as to how we can either leverage or contribute into Apache Drill community with Teiid optimizer engine. This is a very long pole, essentially shifts Teiid architecture totally. So there is no decisions/ideas forward there yet on future direction.
Thanks for the info.
Even from the teiid designer I tried to make connection to drill using JDBC importer. Translator I used were jdbs-ansi and jdbc-simple. But both ended up with following error:
Caused by: java.lang.NullPointerException
I know its coming from Drill, but I am completely stucked on this. Would be great to have some assistance around it.
I used drill-jdbc-all-1.9 jar for this.This jar is single enough to make connection to drill as it includes sufficient dependencies as well. drill-jdbc-all-1.9.0.jar
An update, JDBC importer still not worked.
But somehow if connection can be managed, I found source query appends table name as a prefix before column name. In that case it doesnot work with Drill.
SELECT PNRId FROM dfs.compleat.pnr_view ===============this work in drill
but SELECT dfs.compleat.pnr_view.PNRId FROM dfs.compleat.pnr_view ====this is not working in Drill.
I tried giving column name in source as PNRId only, but it always adding table name as prefix. Any way to skip that ? I know multi table same column problem will occur, but still..ne guess..
If this driver is not following some what strict JDBC rules, then a specific Apache Drill translator is required before it can be used.