forcedotcom / phoenix

BSD 3-Clause "New" or "Revised" License
558 stars 227 forks source link

Snappy jar is missing in client assembly dependencies #676

Closed rtvt123 closed 10 years ago

rtvt123 commented 10 years ago

While trying to execute JOIN using phoenix/bin/sqlline.sh getting this error:

"Error: Encountered exception in hash plan execution. SQLState: null ErrorCode: 0"

the problem is temporarily resolved by including snappy-java-1.0.3.2.jar in the sqlline classpath (as suggested here: https://groups.google.com/forum/#!msg/phoenix-hbase-user/jOAuBbvwFXQ/1JEr9GR8j40J ), however this doesn't solve the problem for other sql clients, like SQuirrel.

by looking at the pom.xml and client assemblies in src/build/*.xml looks like snappy is not included in the dependencies.

mujtabachohan commented 10 years ago

Added reference to Snappy in https://github.com/forcedotcom/phoenix/commit/31a674baca1a8647e0bae82d8712786df53e8f39. Generated phoenix-3.0.0-SNAPSHOT-client.jar would bundle snappy classes. To verify run jar tf phoenix-3.0.0-SNAPSHOT-client.jar | grep org/xerial/snappy which should list out

org/xerial/snappy/
org/xerial/snappy/OSInfo.class
org/xerial/snappy/Snappy.class
org/xerial/snappy/SnappyBundleActivator.class
org/xerial/snappy/SnappyCodec.class
...
rtvt123 commented 10 years ago

pls upgrade to the latest snappy version, see this error on OSX with the current one https://github.com/forcedotcom/phoenix/issues/720