public static HCatWriter getHCatWriter(final WriterContext cntxt) {
    // In future, this may examine context to return appropriate HCatWriter
    return getHCatWriter(cntxt, DefaultStateProvider.get());
  }
This should be called at slave nodes to obtain an instance of
{@link HCatWriter}.

@param cntxt
         {@link WriterContext} obtained at master node
@return {@link HCatWriter}
hcatalog/core/src/main/java/org/apache/hive/hcatalog/data/transfer/DataTransferFactory.java