You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@phoenix.apache.org by Abraham Tom <wo...@gmail.com> on 2015/01/02 23:41:55 UTC

Phoenix 4.2.2 install against CDH 5.3

Help newbie trying to to use
Followed the instructions tp install Phoenix on
http://phoenix.apache.org/download.html#Installation

downloaded tar file
untar it
copied phoenix-4.2.2-server.jar to /lib/hbase/lib on all region servers
restarted cluster

invoked bin/sqline.py zookeeper (same as region server)

Setting property: [isolation, TRANSACTION_READ_COMMITTED]
issuing: !connect jdbc:phoenix:172.30.0.99 none none
org.apache.phoenix.jdbc.PhoenixDriver
Connecting to jdbc:phoenix:
java.lang.UnsupportedClassVersionError:
org/apache/phoenix/jdbc/PhoenixDriver : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at sqlline.SqlLine$DatabaseConnection.connect(SqlLine.java:4608)
        at
sqlline.SqlLine$DatabaseConnection.getConnection(SqlLine.java:4701)
        at sqlline.SqlLine$Commands.connect(SqlLine.java:3942)
        at sqlline.SqlLine$Commands.connect(SqlLine.java:3851)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
sqlline.SqlLine$ReflectiveCommandHandler.execute(SqlLine.java:2810)
        at sqlline.SqlLine.dispatch(SqlLine.java:817)
        at sqlline.SqlLine.initArgs(SqlLine.java:633)
        at sqlline.SqlLine.begin(SqlLine.java:680)
        at sqlline.SqlLine.mainWithInputRedirection(SqlLine.java:441)
        at sqlline.SqlLine.main(SqlLine.java:424)


I am on
Cloudera Parcel install CDH 5.3
hbase version 0.98.6+cdh5.3.0+73
-- 
Abraham Tom
Email:   work2much@gmail.com
Phone:  415-515-3621

Re: Phoenix 4.2.2 install against CDH 5.3

Posted by Ravi Kiran <ma...@gmail.com>.
Hi Tom,
   I hope you figured by now but for the record, it looks like you are
running a jdk 1.7 compiled code on a older version of jdk , could be on 1.6
. Can you please confirm the jdk version on your servers

Regards
Ravi.

On Fri, Jan 2, 2015 at 2:41 PM, Abraham Tom <wo...@gmail.com> wrote:

> Help newbie trying to to use
> Followed the instructions tp install Phoenix on
> http://phoenix.apache.org/download.html#Installation
>
> downloaded tar file
> untar it
> copied phoenix-4.2.2-server.jar to /lib/hbase/lib on all region servers
> restarted cluster
>
> invoked bin/sqline.py zookeeper (same as region server)
>
> Setting property: [isolation, TRANSACTION_READ_COMMITTED]
> issuing: !connect jdbc:phoenix:172.30.0.99 none none
> org.apache.phoenix.jdbc.PhoenixDriver
> Connecting to jdbc:phoenix:
> java.lang.UnsupportedClassVersionError:
> org/apache/phoenix/jdbc/PhoenixDriver : Unsupported major.minor version 51.0
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:169)
>         at sqlline.SqlLine$DatabaseConnection.connect(SqlLine.java:4608)
>         at
> sqlline.SqlLine$DatabaseConnection.getConnection(SqlLine.java:4701)
>         at sqlline.SqlLine$Commands.connect(SqlLine.java:3942)
>         at sqlline.SqlLine$Commands.connect(SqlLine.java:3851)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> sqlline.SqlLine$ReflectiveCommandHandler.execute(SqlLine.java:2810)
>         at sqlline.SqlLine.dispatch(SqlLine.java:817)
>         at sqlline.SqlLine.initArgs(SqlLine.java:633)
>         at sqlline.SqlLine.begin(SqlLine.java:680)
>         at sqlline.SqlLine.mainWithInputRedirection(SqlLine.java:441)
>         at sqlline.SqlLine.main(SqlLine.java:424)
>
>
> I am on
> Cloudera Parcel install CDH 5.3
> hbase version 0.98.6+cdh5.3.0+73
> --
> Abraham Tom
> Email:   work2much@gmail.com
> Phone:  415-515-3621
>

Re: Phoenix 4.2.2 install against CDH 5.3

Posted by Andrew Purtell <ap...@apache.org>.
That's great! Thanks for letting us know.


On Mon, Jan 5, 2015 at 11:56 AM, Abraham Tom <wo...@gmail.com> wrote:

> upgrading my java worked
>
> On Sat, Jan 3, 2015 at 10:16 AM, Andrew Purtell <an...@gmail.com>
> wrote:
>
>> You are using a Java 6 based runtime but Java 7 is required (51.0 is the
>> class file version for Java 7.) Your options are:
>>
>> 1. Install and use a Java 7 runtime.
>>
>> 2. Patch the Phoenix POM to specify a target compilation version of 1.6
>> and build Phoenix from source. This may not work if any 7ish language
>> feature is used by the source, such as the diamond operator.
>>
>> I strongly recommend option 1. Java 6 was end-of-lifed by Oracle last
>> year.
>>
>>
>>
>> On Jan 2, 2015, at 2:41 PM, Abraham Tom <wo...@gmail.com> wrote:
>>
>> Help newbie trying to to use
>> Followed the instructions tp install Phoenix on
>> http://phoenix.apache.org/download.html#Installation
>>
>> downloaded tar file
>> untar it
>> copied phoenix-4.2.2-server.jar to /lib/hbase/lib on all region servers
>> restarted cluster
>>
>> invoked bin/sqline.py zookeeper (same as region server)
>>
>> Setting property: [isolation, TRANSACTION_READ_COMMITTED]
>> issuing: !connect jdbc:phoenix:172.30.0.99 none none
>> org.apache.phoenix.jdbc.PhoenixDriver
>> Connecting to jdbc:phoenix:
>> java.lang.UnsupportedClassVersionError:
>> org/apache/phoenix/jdbc/PhoenixDriver : Unsupported major.minor version 51.0
>>         at java.lang.ClassLoader.defineClass1(Native Method)
>>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>         at
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>         at java.lang.Class.forName0(Native Method)
>>         at java.lang.Class.forName(Class.java:169)
>>         at sqlline.SqlLine$DatabaseConnection.connect(SqlLine.java:4608)
>>         at
>> sqlline.SqlLine$DatabaseConnection.getConnection(SqlLine.java:4701)
>>         at sqlline.SqlLine$Commands.connect(SqlLine.java:3942)
>>         at sqlline.SqlLine$Commands.connect(SqlLine.java:3851)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at
>> sqlline.SqlLine$ReflectiveCommandHandler.execute(SqlLine.java:2810)
>>         at sqlline.SqlLine.dispatch(SqlLine.java:817)
>>         at sqlline.SqlLine.initArgs(SqlLine.java:633)
>>         at sqlline.SqlLine.begin(SqlLine.java:680)
>>         at sqlline.SqlLine.mainWithInputRedirection(SqlLine.java:441)
>>         at sqlline.SqlLine.main(SqlLine.java:424)
>>
>>
>> I am on
>> Cloudera Parcel install CDH 5.3
>> hbase version 0.98.6+cdh5.3.0+73
>> --
>> Abraham Tom
>> Email:   work2much@gmail.com
>> Phone:  415-515-3621
>>
>>

Re: Phoenix 4.2.2 install against CDH 5.3

Posted by Abraham Tom <wo...@gmail.com>.
upgrading my java worked

On Sat, Jan 3, 2015 at 10:16 AM, Andrew Purtell <an...@gmail.com>
wrote:

> You are using a Java 6 based runtime but Java 7 is required (51.0 is the
> class file version for Java 7.) Your options are:
>
> 1. Install and use a Java 7 runtime.
>
> 2. Patch the Phoenix POM to specify a target compilation version of 1.6
> and build Phoenix from source. This may not work if any 7ish language
> feature is used by the source, such as the diamond operator.
>
> I strongly recommend option 1. Java 6 was end-of-lifed by Oracle last
> year.
>
>
>
> On Jan 2, 2015, at 2:41 PM, Abraham Tom <wo...@gmail.com> wrote:
>
> Help newbie trying to to use
> Followed the instructions tp install Phoenix on
> http://phoenix.apache.org/download.html#Installation
>
> downloaded tar file
> untar it
> copied phoenix-4.2.2-server.jar to /lib/hbase/lib on all region servers
> restarted cluster
>
> invoked bin/sqline.py zookeeper (same as region server)
>
> Setting property: [isolation, TRANSACTION_READ_COMMITTED]
> issuing: !connect jdbc:phoenix:172.30.0.99 none none
> org.apache.phoenix.jdbc.PhoenixDriver
> Connecting to jdbc:phoenix:
> java.lang.UnsupportedClassVersionError:
> org/apache/phoenix/jdbc/PhoenixDriver : Unsupported major.minor version 51.0
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:169)
>         at sqlline.SqlLine$DatabaseConnection.connect(SqlLine.java:4608)
>         at
> sqlline.SqlLine$DatabaseConnection.getConnection(SqlLine.java:4701)
>         at sqlline.SqlLine$Commands.connect(SqlLine.java:3942)
>         at sqlline.SqlLine$Commands.connect(SqlLine.java:3851)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> sqlline.SqlLine$ReflectiveCommandHandler.execute(SqlLine.java:2810)
>         at sqlline.SqlLine.dispatch(SqlLine.java:817)
>         at sqlline.SqlLine.initArgs(SqlLine.java:633)
>         at sqlline.SqlLine.begin(SqlLine.java:680)
>         at sqlline.SqlLine.mainWithInputRedirection(SqlLine.java:441)
>         at sqlline.SqlLine.main(SqlLine.java:424)
>
>
> I am on
> Cloudera Parcel install CDH 5.3
> hbase version 0.98.6+cdh5.3.0+73
> --
> Abraham Tom
> Email:   work2much@gmail.com
> Phone:  415-515-3621
>
>


-- 
Abraham Tom
Email:   work2much@gmail.com
Phone:  415-515-3621

Re: Phoenix 4.2.2 install against CDH 5.3

Posted by Andrew Purtell <an...@gmail.com>.
You are using a Java 6 based runtime but Java 7 is required (51.0 is the class file version for Java 7.) Your options are:

1. Install and use a Java 7 runtime. 

2. Patch the Phoenix POM to specify a target compilation version of 1.6 and build Phoenix from source. This may not work if any 7ish language feature is used by the source, such as the diamond operator. 

I strongly recommend option 1. Java 6 was end-of-lifed by Oracle last year. 



> On Jan 2, 2015, at 2:41 PM, Abraham Tom <wo...@gmail.com> wrote:
> 
> Help newbie trying to to use 
> Followed the instructions tp install Phoenix on 
> http://phoenix.apache.org/download.html#Installation
> 
> downloaded tar file
> untar it
> copied phoenix-4.2.2-server.jar to /lib/hbase/lib on all region servers
> restarted cluster
> 
> invoked bin/sqline.py zookeeper (same as region server) 
> 
> Setting property: [isolation, TRANSACTION_READ_COMMITTED]
> issuing: !connect jdbc:phoenix:172.30.0.99 none none org.apache.phoenix.jdbc.PhoenixDriver
> Connecting to jdbc:phoenix: 
> java.lang.UnsupportedClassVersionError: org/apache/phoenix/jdbc/PhoenixDriver : Unsupported major.minor version 51.0
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:169)
>         at sqlline.SqlLine$DatabaseConnection.connect(SqlLine.java:4608)
>         at sqlline.SqlLine$DatabaseConnection.getConnection(SqlLine.java:4701)
>         at sqlline.SqlLine$Commands.connect(SqlLine.java:3942)
>         at sqlline.SqlLine$Commands.connect(SqlLine.java:3851)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at sqlline.SqlLine$ReflectiveCommandHandler.execute(SqlLine.java:2810)
>         at sqlline.SqlLine.dispatch(SqlLine.java:817)
>         at sqlline.SqlLine.initArgs(SqlLine.java:633)
>         at sqlline.SqlLine.begin(SqlLine.java:680)
>         at sqlline.SqlLine.mainWithInputRedirection(SqlLine.java:441)
>         at sqlline.SqlLine.main(SqlLine.java:424)
> 
> 
> I am on 
> Cloudera Parcel install CDH 5.3
> hbase version 0.98.6+cdh5.3.0+73
> -- 
> Abraham Tom 
> Email:   work2much@gmail.com
> Phone:  415-515-3621