hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tuong Tr." <>
Subject Re: Get 'TBLPROPERTIES' of a Hive table in Java
Date Wed, 23 Jul 2014 06:26:22 GMT

You should be able to find what you need to do in the getSchema() method inside  hive/ql/src/java/org/apache/hadoop/hive/ql/io/avro/

The table properties does not get copied into the jobconf in M/R job's passedin jobconf. 
so there is some complex logic to track it down.

Good luck,

On Tuesday, July 22, 2014 12:52 AM, Something Something <> wrote:

I am writing a custom InputFormat class in which I need to 
get the 'TBLPROPETIES' of a Hive Table.  This InputFormat will extend 
the HiveInputFormat. 
I thought the table properties will be available to me in the 'JobConf', but they are not
What's the best way to get TBLPROPERTIES of a Hive table in a Java class such as InputFormat?

Would greatly appreciate any help.  Thanks.
View raw message