What's ur version of hbase that will help me to know what version of Phoenix would work.
Once you confirm I will give u steps. 
Thanks for your reply, my hbase version is HBase 0.94.6-cdh4.5.0
Then you can install the Phoenix 3.x version. 
Google Phoenix download and then get the 3.x version and untar it in a folder.
It will come with a file like Phoenix3*core*.jar copy that on all the region servers in /usr/lib/hbase/lib.the class path of hbase.
Once that's done restart your hbase and in the same folder what you have untar also has a sql*.py python script run that.
Make sure you have java path set. If you want to load some dummy data you can run the performance. py python script. 
Hope this helps.
You wouldn't happen to have instructions for CDH 5.3 
hbase is 0.98.6+cdh5.3.0+73
I downloaded phoenix-4.2.2-bin.tar.gz
untarred it and copied the phoenix-4.2.2-server.jar
to lib/hbase/lib
and the cluster has been restarted after each region got the same treatment.
When I invoke sqllite.py localhost
I get the following
phoenix-4.2.2-bin/bin$ ./sqlline.py localhost
Setting property: [isolation, TRANSACTION_READ_COMMITTED]
issuing: !connect jdbc:phoenix:localhost none none org.apache.phoenix.jdbc.
Connecting to jdbc:phoenix:localhost
java.lang.
at java.lang.ClassLoader.
at java.lang.ClassLoader.
at java.lang.ClassLoader.
at java.security.
at java.net.URLClassLoader.
at java.net.URLClassLoader.
at java.net.URLClassLoader$1.run(
at java.security.
at java.net.URLClassLoader.
at java.lang.ClassLoader.
at sun.misc.Launcher$
at java.lang.ClassLoader.
at java.lang.Class.forName0(
at java.lang.Class.forName(Class.
at sqlline.SqlLine$
at sqlline.SqlLine$
at sqlline.SqlLine$Commands.
at sqlline.SqlLine$Commands.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.reflect.Method.
at sqlline.SqlLine$
at sqlline.SqlLine.dispatch(
at sqlline.SqlLine.initArgs(
at sqlline.SqlLine.begin(SqlLine.
at sqlline.SqlLine.
at sqlline.SqlLine.main(SqlLine.
sqlline version 1.1.2
0: jdbc:phoenix:localhost> !tables
java.lang.
at sqlline.SqlLine.conn(SqlLine.
at sqlline.SqlLine$Commands.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.reflect.Method.
at sqlline.SqlLine$
at sqlline.SqlLine.dispatch(
at sqlline.SqlLine.begin(SqlLine.
at sqlline.SqlLine.
at sqlline.SqlLine.main(SqlLine.
hbase is 0.98.6+cdh5.3.0+73
I downloaded phoenix-4.2.2-bin.tar.gz
untarred it and copied the phoenix-4.2.2-server.jar
to lib/hbase/lib
and the cluster has been restarted after each region got the same treatment.
When I invoke sqllite.py localhost
I get the following
phoenix-4.2.2-bin/bin$ ./sqlline.py localhost
Setting property: [isolation, TRANSACTION_READ_COMMITTED]
issuing: !connect jdbc:phoenix:localhost none none org.apache.phoenix.jdbc.
Connecting to jdbc:phoenix:localhost
java.lang.
at java.lang.ClassLoader.
at java.lang.ClassLoader.
at java.lang.ClassLoader.
at java.security.
at java.net.URLClassLoader.
at java.net.URLClassLoader.
at java.net.URLClassLoader$1.run(
at java.security.
at java.net.URLClassLoader.
at java.lang.ClassLoader.
at sun.misc.Launcher$
at java.lang.ClassLoader.
at java.lang.Class.forName0(
at java.lang.Class.forName(Class.
at sqlline.SqlLine$
at sqlline.SqlLine$
at sqlline.SqlLine$Commands.
at sqlline.SqlLine$Commands.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.reflect.Method.
at sqlline.SqlLine$
at sqlline.SqlLine.dispatch(
at sqlline.SqlLine.initArgs(
at sqlline.SqlLine.begin(SqlLine.
at sqlline.SqlLine.
at sqlline.SqlLine.main(SqlLine.
sqlline version 1.1.2
0: jdbc:phoenix:localhost> !tables
java.lang.
at sqlline.SqlLine.conn(SqlLine.
at sqlline.SqlLine$Commands.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.reflect.Method.
at sqlline.SqlLine$
at sqlline.SqlLine.dispatch(
at sqlline.SqlLine.begin(SqlLine.
at sqlline.SqlLine.
at sqlline.SqlLine.main(SqlLine.
The error, "Unsupported major.minor version 51.0," suggests you attempting to run classes compiled with Java 7 on a Java 6 runtime. Check which JDK you are running, chances are you're picking up the wrong one.
I am on Java 6 
but it looks there is a java 7 that was installed by Cloudera /usr/lib/jvm/java-7-oracle- 
댓글 없음:
댓글 쓰기