yanxinyi commented on pull request #1123:
URL: https://github.com/apache/phoenix/pull/1123#issuecomment-770167422


   Huh, I'm not sure if this is my local setting issue or something else.
   
   With my local HBase setup, I tried 4.14.3 and 4.15 server jars without any 
issues when I called `./hbase org.apache.phoenix.mapreduce.index.IndexTool`, 
which is using the phoenix server jar as the classpath. However, I applied your 
patch and built the 4.x branch locally.  Here are my stack trace and error
   
   ./hbase org.apache.phoenix.mapreduce.index.IndexTool
   Error: A JNI error has occurred, please check your installation and try again
   Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/phoenix/thirdparty/org/apache/commons/cli/ParseException
           at java.lang.Class.getDeclaredMethods0(Native Method)
           at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
           at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
           at java.lang.Class.getMethod0(Class.java:3018)
           at java.lang.Class.getMethod(Class.java:1784)
           at 
sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:650)
           at 
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:632)
   Caused by: java.lang.ClassNotFoundException: 
org.apache.phoenix.thirdparty.org.apache.commons.cli.ParseException
           at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
           ... 7 more
   
   @stoty did you verify it locally? I guess the ITs are not using the server 
patch so it's very hard to catch the issue...
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to