phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mujtaba Chohan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-2303) performance.py does not use JAVA_HOME
Date Thu, 29 Oct 2015 00:04:27 GMT

    [ https://issues.apache.org/jira/browse/PHOENIX-2303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14979523#comment-14979523
] 

Mujtaba Chohan commented on PHOENIX-2303:
-----------------------------------------

I see performance.py somehow was not patched in master however it's in phoenix-4.x-HBase-0.98/1.0.
I'll commit to it as well. Thanks for informing.

> performance.py does not use JAVA_HOME
> -------------------------------------
>
>                 Key: PHOENIX-2303
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2303
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.5.2
>            Reporter: Albert Chu
>            Priority: Minor
>             Fix For: 4.6.0
>
>
> Was testing Phoenix support in one of my projects when I hit this issue with performance.py
(cut & pasting for people web searching).
> {noformat}
> Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/phoenix/util/PhoenixRuntime
: Unsupported major.minor version 51.0
> 	  at java.lang.ClassLoader.defineClass1(Native Method)
> 	  at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
> 	  at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
> 	  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)
> Could not find the main class: org.apache.phoenix.util.PhoenixRuntime.  Program will
exit.
> {noformat}
> This is of course the common error indicating that you are using an older version of
java to run something compiled with a newer version.  But I was setting JAVA_HOME to an appropriate
Java 1.7 path.
> I eventually realized the issue was performance.py wasn't honoring the environment variable
JAVA_HOME and picking up an older java version sitting in /usr/bin, where as queryserver.py
does honor JAVA_HOME.
> I can / will produce a patch, but can't right now.  Thought I'd post this bug today for
people web searching and in case someone else wants to beat me to it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message