[
https://issues.apache.org/jira/browse/HIVE-795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754020#action_12754020
]
Bill Graham commented on HIVE-795:
----------------------------------
I was able to manually install thrift. For anyone who's curious, here's what it
took on Mac OS 10.6 (Snow Leopard):
# Install XCode (http://developer.apple.com/TOOLS/Xcode/)
# Install MacPorts (http://www.macports.org/)
# Install boost: {{sudo port install boost}}
# Checkout thrift, or download a nightly snapshot, I did the latter
(http://incubator.apache.org/thrift/download/):
# Build and install thrift:
{code}
cd thrift; sh bootstrap.sh
./configure
sudo make install
{code}
The configure script failed in an {{if}} block that checked on
{{$with_csharp}}, so I had to comment out a few lines to work around that.
Now I could run the ant target and generate the php, py and java-beans, but
could no longer run {{cd service && ant jar}}. There were two issues:
# A new dependency was added on {{org.slf4j}} in the generated java files,
which wasn't resolved. I downloaded
(http://www.slf4j.org/dist/slf4j-1.5.8.tar.gz) and added
{{slf4j-api-1.5.8.jar}} to {{lib/}} and got past that issue.
# All of the generated java-bean classed failed with unresolved dependencies on
{{TBaseHelper}}. This seems to be a class that is now in thrift svn, but not in
the woefully un-versioned {{lib/libthrift.jar}}. i replaced
{{lib/libthrift.jar}} with my built version and I can now compile the services
classes.
I'll submit a new patch shortly, but I'm concerned regarding what seems like a
lack of versioning of thrift. Is there a thrift version I should be using that
corresponds with the jar in {{lib}} (I now see there's a '0.1.x' branch)? Or
should we upgrade to some recent version of thrift and add
{{slf4j-api-1.5.8.jar}}?
> Return better error messaging from HiveServer
> ----------------------------------------------
>
> Key: HIVE-795
> URL: https://issues.apache.org/jira/browse/HIVE-795
> Project: Hadoop Hive
> Issue Type: Improvement
> Components: Server Infrastructure
> Reporter: Bill Graham
> Assignee: Bill Graham
> Attachments: HIVE-795.1.patch
>
>
> If an exception is thrown on the Hive server (i.e., when an invalid query is
> passed), the Hive server throws a HiveServerExcpeption to the client with a
> message like "Query returned non-zero code: 10". A more informative
> description of the cause of the error should be returned.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.