You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Ed Kohlwey <ek...@gmail.com> on 2013/12/11 00:04:56 UTC

Getting table path within storage handler

What is considered the "right way" to get the table path is a HIVE storage
handler? The MetaHook interface gives you a Table object which has a
getSd() method, but its not clear that this method is invoked outside of
lifecycle events (I assume it is not). It seems that if you write a
StorageHandler that uses HDFS for storage, this would be a desirable fact
to access within configureInputJobProperties() and
configureOutputJobProperties(). Is it stored as a property within the
jobProperties map already? Is it a constant that can be accessed anywhere
in the Configuration or some other place?