RE: Hive Metadata tables of a schema

2016-04-05 Thread Rachna Jotwani
Hacatalog example in java… private void testHCatalogAPI() throws NoSuchObjectException, TException, HCatException { HCatClient hcatClient = null; try { HiveConf hcatConf = new HiveConf(); hcatConf.setVar(HiveConf.ConfVars.METASTOREURIS,

WebHCat and knox

2016-02-05 Thread Rachna Jotwani
Could someone send me an example of how to authenticate with apache knox for templeton ? I tried the example below , but it doesn't work. Thanks Rachna package com.test.hadoop; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURL

hive metadata apis

2015-12-22 Thread Rachna Jotwani
The hcatalog apis do not return a ordinal position (the order in which they were created) on the hive columns or view columns. Is it possible to get that information? Thanks Rachna

RE: Hcatalog api - kerberos and knox

2015-10-19 Thread Rachna Jotwani Bakhru
he special string _HOST will be replaced automatically with the correct host name. < /property> how do I configure the HCatClient to connect to hive? Thanks Rachna From: Rachna Jotwani Bakhru [mailto:rjotw...@dag.com] Sent: Thursday, October 15, 2015 6:25 PM To: user@hive.apache.o

Hcatalog api - kerberos and knox

2015-10-15 Thread Rachna Jotwani Bakhru
I have a java application which reads hive metadata using hcatalog apis. If I need to read metadata from a hive database on a cluster with Kerberos and knox, would the following configuration work? HiveConf hcatConf = new HiveConf(); hcatConf.setVar(HiveConf.ConfVars.METASTOREURIS, “thrift://serv

RE: View definition information

2015-10-15 Thread Rachna Jotwani Bakhru
you're so inclined feel free to contribute a patch to add this. Alan. <mailto:rjotw...@dag.com> Rachna Jotwani Bakhru October 14, 2015 at 16:47 We are currently using the HCatalog API to get the Hive Database metadata. HCatClient with MetaStore uri. The HCatTable object retu

View definition information

2015-10-14 Thread Rachna Jotwani Bakhru
We are currently using the HCatalog API to get the Hive Database metadata. HCatClient with MetaStore uri. The HCatTable object returned by the HCatClient does not have the view SQL (view definition). As a workaround we are using the Hive Metastore API to get the view SQL from the Table (getViewOri