hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bamford <>
Subject Re: truncating tables via hcatalog api?
Date Mon, 12 Oct 2015 20:46:29 GMT
Hi Alan,

  Thanks for your response. I have a couple of patches I would love to submit to Hive, and
I'm working on getting a real build environment set up so I can do so.

  Can I ask you if HCatClient is able to operate over the HiveServer2 thrift api? I've found
contradictory information all over the place, but when I try to set hive.metastore.uris to
a hive server 2 port (10000), I connect okay but get all sorts of "invalid method name" errors.

  I can only assume that this is because HCatClient is meant to run against the metastore
thrift apis, not hive server2.

  Is this correct? We're starting to see our customers move towards limiting the metastore
thrift access because it's not secure enough for their needs (such as a Cloudera Sentry implementation),
and I'm left wondering how we'll be able to provide access.



From: Alan Gates <>
Sent: Thursday, October 8, 2015 9:22 AM
Subject: Re: truncating tables via hcatalog api?

That's correct, HCatClient doesn't provide that feature at this time.  It would be easy enough
to add if you want to provide a patch for it.


Nathan Bamford<>
October 6, 2015 at 12:14

Hello all,

  The product I work on using the HCatalog api (particularly HCatClient) to interact with
Hive. It provides virtually everything we need, with the exception of the ability to truncate
a table. I'm able to do it via the CLI by simply issuing the "TRUNCATE TABLE" command, but
HCatalog provides nothing.

  Do I have this right? Will I need to create a jdbc connection to issue a truncate statement?


Nathan Bamford

View raw message