Re: Get 'TBLPROPERTIES' of a Hive table in Java

2014-07-23 Thread Tuong Tr.
Hi, 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/AvroGenericRecordReader.java. The table properties does not get copied into the jobconf in M/R job's passedin jobconf.  so there is some complex logic to

Get 'TBLPROPERTIES' of a Hive table in Java

2014-07-22 Thread Something Something
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 there. What's the best way to get TBLPROPERTIES of a Hive