phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Davis <nathan.da...@salesforce.com>
Subject Re: NoClassDefFoundError with pherf-cluster.py
Date Fri, 29 Jul 2016 12:58:44 GMT
Thanks for the tip! So, I printed out the whole java command (see below).
It is definitely picking up an `hbasecp` from a successful call to hbase. I
see the phoenix server and pherf jars listed, but no client jar (or core).

I was able to get it to work by manually adding '/usr/lib/phoenix/*' to the
-cp list, which is of course a hack. My current theory is that even though
I put the right phoenix jars inside the hbase lib directory, they are not
part of the cp that hbase returns because I have not restarted hbase yet.
Does that make sense?


/usr/lib/jvm/java/bin/java -cp
> "/usr/lib/hbase/bin/../conf:/usr/lib/jvm/java/lib/tools.jar:/usr/lib/hbase/bin/..:/usr/lib/hbase/bin/../lib/activation-1.1.jar:/usr/lib/hbase/bin/../lib/antisamy-1.4.3.jar:/usr/lib/hbase/bin/../lib/aopalliance-1.0.jar:/usr/lib/hbase/bin/../lib/apacheds-i18n-2.0.0-M15.jar:/usr/lib/hbase/bin/../lib/apacheds-kerberos-codec-2.0.0-M15.jar:/usr/lib/hbase/bin/../lib/api-asn1-api-1.0.0-M20.jar:/usr/lib/hbase/bin/../lib/api-util-1.0.0-M20.jar:/usr/lib/hbase/bin/../lib/asm-3.1.jar:/usr/lib/hbase/bin/../lib/avro-1.7.4.jar:/usr/lib/hbase/bin/../lib/batik-css-1.7.jar:/usr/lib/hbase/bin/../lib/batik-ext-1.7.jar:/usr/lib/hbase/bin/../lib/batik-util-1.7.jar:/usr/lib/hbase/bin/../lib/bsh-core-2.0b4.jar:/usr/lib/hbase/bin/../lib/commons-beanutils-1.7.0.jar:/usr/lib/hbase/bin/../lib/commons-beanutils-core-1.7.0.jar:/usr/lib/hbase/bin/../lib/commons-cli-1.2.jar:/usr/lib/hbase/bin/../lib/commons-codec-1.9.jar:/usr/lib/hbase/bin/../lib/commons-collections-3.2.2.jar:/usr/lib/hbase/bin/../lib/commons-compress-1.4.1.jar:/usr/lib/hbase/bin/../lib/commons-configuration-1.6.jar:/usr/lib/hbase/bin/../lib/commons-daemon-1.0.13.jar:/usr/lib/hbase/bin/../lib/commons-digester-1.8.jar:/usr/lib/hbase/bin/../lib/commons-el-1.0.jar:/usr/lib/hbase/bin/../lib/commons-fileupload-1.2.jar:/usr/lib/hbase/bin/../lib/commons-httpclient-3.1.jar:/usr/lib/hbase/bin/../lib/commons-io-2.4.jar:/usr/lib/hbase/bin/../lib/commons-lang-2.6.jar:/usr/lib/hbase/bin/../lib/commons-logging-1.2.jar:/usr/lib/hbase/bin/../lib/commons-math-2.2.jar:/usr/lib/hbase/bin/../lib/commons-math3-3.1.1.jar:/usr/lib/hbase/bin/../lib/commons-net-3.1.jar:/usr/lib/hbase/bin/../lib/curator-client-2.7.1.jar:/usr/lib/hbase/bin/../lib/curator-framework-2.7.1.jar:/usr/lib/hbase/bin/../lib/curator-recipes-2.7.1.jar:/usr/lib/hbase/bin/../lib/disruptor-3.3.0.jar:/usr/lib/hbase/bin/../lib/esapi-2.1.0.jar:/usr/lib/hbase/bin/../lib/findbugs-annotations-1.3.9-1.jar:/usr/lib/hbase/bin/../lib/gson-2.2.4.jar:/usr/lib/hbase/bin/../lib/guava-12.0.1.jar:/usr/lib/hbase/bin/../lib/guice-3.0.jar:/usr/lib/hbase/bin/../lib/guice-servlet-3.0.jar:/usr/lib/hbase/bin/../lib/hadoop-annotations.jar:/usr/lib/hbase/bin/../lib/hadoop-auth.jar:/usr/lib/hbase/bin/../lib/hadoop-common.jar:/usr/lib/hbase/bin/../lib/hadoop-hdfs.jar:/usr/lib/hbase/bin/../lib/hadoop-mapreduce-client-app.jar:/usr/lib/hbase/bin/../lib/hadoop-mapreduce-client-common.jar:/usr/lib/hbase/bin/../lib/hadoop-mapreduce-client-core.jar:/usr/lib/hbase/bin/../lib/hadoop-mapreduce-client-jobclient.jar:/usr/lib/hbase/bin/../lib/hadoop-mapreduce-client-shuffle.jar:/usr/lib/hbase/bin/../lib/hadoop-yarn-api.jar:/usr/lib/hbase/bin/../lib/hadoop-yarn-client.jar:/usr/lib/hbase/bin/../lib/hadoop-yarn-common.jar:/usr/lib/hbase/bin/../lib/hadoop-yarn-server-common.jar:/usr/lib/hbase/bin/../lib/hbase-annotations-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-annotations-1.2.1-tests.jar:/usr/lib/hbase/bin/../lib/hbase-client-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-common-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-common-1.2.1-tests.jar:/usr/lib/hbase/bin/../lib/hbase-examples-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-external-blockcache-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-hadoop2-compat-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-hadoop-compat-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-it-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-it-1.2.1-tests.jar:/usr/lib/hbase/bin/../lib/hbase-prefix-tree-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-procedure-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-protocol-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-resource-bundle-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-rest-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-server-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-server-1.2.1-tests.jar:/usr/lib/hbase/bin/../lib/hbase-shell-1.2.1.jar:/usr/lib/hbase/bin/../lib/hbase-thrift-1.2.1.jar:/usr/lib/hbase/bin/../lib/htrace-core-3.1.0-incubating.jar:/usr/lib/hbase/bin/../lib/httpclient-4.3.4.jar:/usr/lib/hbase/bin/../lib/httpcore-4.3.2.jar:/usr/lib/hbase/bin/../lib/jackson-core-asl-1.9.13.jar:/usr/lib/hbase/bin/../lib/jackson-jaxrs-1.9.13.jar:/usr/lib/hbase/bin/../lib/jackson-mapper-asl-1.9.13.jar:/usr/lib/hbase/bin/../lib/jackson-xc-1.9.13.jar:/usr/lib/hbase/bin/../lib/jamon-runtime-2.4.1.jar:/usr/lib/hbase/bin/../lib/jasper-compiler-5.5.23.jar:/usr/lib/hbase/bin/../lib/jasper-runtime-5.5.23.jar:/usr/lib/hbase/bin/../lib/javax.inject-1.jar:/usr/lib/hbase/bin/../lib/java-xmlbuilder-0.4.jar:/usr/lib/hbase/bin/../lib/jaxb-api-2.2.2.jar:/usr/lib/hbase/bin/../lib/jaxb-impl-2.2.3-1.jar:/usr/lib/hbase/bin/../lib/jcodings-1.0.8.jar:/usr/lib/hbase/bin/../lib/jersey-client-1.9.jar:/usr/lib/hbase/bin/../lib/jersey-core-1.9.jar:/usr/lib/hbase/bin/../lib/jersey-guice-1.9.jar:/usr/lib/hbase/bin/../lib/jersey-json-1.9.jar:/usr/lib/hbase/bin/../lib/jersey-server-1.9.jar:/usr/lib/hbase/bin/../lib/jets3t-0.9.0.jar:/usr/lib/hbase/bin/../lib/jettison-1.3.3.jar:/usr/lib/hbase/bin/../lib/jetty-6.1.26.jar:/usr/lib/hbase/bin/../lib/jetty-sslengine-6.1.26.jar:/usr/lib/hbase/bin/../lib/jetty-util-6.1.26.jar:/usr/lib/hbase/bin/../lib/joni-2.1.2.jar:/usr/lib/hbase/bin/../lib/jruby-complete-1.6.8.jar:/usr/lib/hbase/bin/../lib/jsch-0.1.42.jar:/usr/lib/hbase/bin/../lib/jsp-2.1-6.1.14.jar:/usr/lib/hbase/bin/../lib/jsp-api-2.1-6.1.14.jar:/usr/lib/hbase/bin/../lib/jsr305-1.3.9.jar:/usr/lib/hbase/bin/../lib/junit-4.12.jar:/usr/lib/hbase/bin/../lib/leveldbjni-all-1.8.jar:/usr/lib/hbase/bin/../lib/libthrift-0.9.3.jar:/usr/lib/hbase/bin/../lib/log4j-1.2.17.jar:/usr/lib/hbase/bin/../lib/metrics-core-2.2.0.jar:/usr/lib/hbase/bin/../lib/nekohtml-1.9.12.jar:/usr/lib/hbase/bin/../lib/netty-all-4.0.23.Final.jar:/usr/lib/hbase/bin/../lib/paranamer-2.3.jar:/usr/lib/hbase/bin/../lib/protobuf-java-2.5.0.jar:/usr/lib/hbase/bin/../lib/servlet-api-2.5-6.1.14.jar:/usr/lib/hbase/bin/../lib/servlet-api-2.5.jar:/usr/lib/hbase/bin/../lib/slf4j-api-1.6.1.jar:/usr/lib/hbase/bin/../lib/snappy-java-1.0.4.1.jar:/usr/lib/hbase/bin/../lib/spymemcached-2.11.6.jar:/usr/lib/hbase/bin/../lib/xalan-2.7.0.jar:/usr/lib/hbase/bin/../lib/xercesImpl-2.9.1.jar:/usr/lib/hbase/bin/../lib/xml-apis-1.3.03.jar:/usr/lib/hbase/bin/../lib/xml-apis-ext-1.3.04.jar:/usr/lib/hbase/bin/../lib/xmlenc-0.52.jar:/usr/lib/hbase/bin/../lib/xom-1.2.5.jar:/usr/lib/hbase/bin/../lib/xz-1.0.jar:/usr/lib/hbase/bin/../lib/zookeeper.jar:/etc/hadoop/conf:/usr/lib/hadoop/lib/*:/usr/lib/hadoop/.//*:/usr/lib/hadoop-hdfs/./:/usr/lib/hadoop-hdfs/lib/*:/usr/lib/hadoop-hdfs/.//*:/usr/lib/hadoop-yarn/lib/*:/usr/lib/hadoop-yarn/.//*:/usr/lib/hadoop-mapreduce/lib/*:/usr/lib/hadoop-mapreduce/.//*::/usr/lib/hadoop-lzo/lib/*:/usr/share/aws/aws-java-sdk/*:/usr/share/aws/emr/emrfs/conf:/usr/share/aws/emr/emrfs/lib/*:/usr/share/aws/emr/emrfs/auxlib/*:/usr/share/aws/emr/ddb/lib/emr-ddb-hadoop.jar:/usr/share/aws/emr/goodies/lib/emr-hadoop-goodies.jar:/usr/share/aws/emr/kinesis/lib/emr-kinesis-hadoop.jar:/usr/share/aws/emr/cloudwatch-sink/lib/*:/usr/share/aws/emr/security/conf:/usr/share/aws/emr/security/lib/*:/etc/hadoop/conf:/usr/lib/phoenix/phoenix-4.7.0-HBase-1.2-server.jar
> :/usr/lib/phoenix/bin/config:/etc/hbase/conf:/usr/lib/phoenix/bin/../phoenix-pherf-4.7.0-HBase-1.2-minimal.jar"
> -Dlog4j.configuration=file:/usr/lib/phoenix/bin/log4j.properties
> org.apache.phoenix.pherf.Pherf -h


-nathan


On Thu, Jul 28, 2016 at 7:16 PM, Mujtaba Chohan <mujtaba@apache.org> wrote:

> To use pherf-cluster.py script make sure $HBASE_DIR/bin/hbase file is
> available which is used to construct classpath. Also add the following line
> to script before java_cmd is executed to make sure *hbasecp* variable
> contains phoenix jar: print "Classpath used to launch pherf: " + hbasecp
>
> Also try running pherf-standalone.py which does not need any variable to
> be set and uses fat phoenix-client.jar with all dependencies bundled.
>
> - mujtaba
>
> On Thu, Jul 28, 2016 at 10:14 AM, Nathan Davis <
> nathan.davis@salesforce.com> wrote:
>
>> Hi All,
>> I'm trying to run pherf-cluster.py against an EMR cluster (on the master
>> server). The command I'm using is `HBASE_DIR=/usr/lib/hbase
>> ./pherf-cluster.py -drop all -l -q -z localhost -schemaFile
>> ./config/datamodel/user_defined_schema.sql -scenarioFile
>> ./config/scenario/user_defined_scenario.xml`. I get error "java.lang.NoClassDefFoundError:
>> org/apache/phoenix/schema/TableNotFoundException". Below is part of my
>> terminal session that shows the applicable directories and the failed pherf
>> command.
>>
>> [ec2-user@ip-10-2-* bin]$ pwd
>>> /usr/lib/phoenix/bin
>>>
>>
>>
>>> [ec2-user@ip-10-2-* bin]$ ls -l /usr/lib/phoenix/
>>> total 221104
>>> drwxr-xr-x 3 root root     4096 Jul 28 16:54 bin
>>> -rw-r--r-- 1 root root 98170649 Jul  8 03:18
>>> phoenix-4.7.0-HBase-1.2-client.jar
>>> -rw-r--r-- 1 root root  4898513 Jul  8 03:18
>>> phoenix-4.7.0-HBase-1.2-client-minimal.jar
>>> -rw-r--r-- 1 root root 46138953 Jul  8 03:18
>>> phoenix-4.7.0-HBase-1.2-client-spark.jar
>>> -rw-r--r-- 1 root root 31312803 Jul  8 03:18
>>> phoenix-4.7.0-HBase-1.2-client-without-hbase.jar
>>> -rw-r--r-- 1 root root 25644258 Jul  8 03:18
>>> phoenix-4.7.0-HBase-1.2-server.jar
>>> -rw-r--r-- 1 root root     6044 Jul  8 03:18
>>> phoenix-4.7.0-HBase-1.2-tests.jar
>>> -rw-r--r-- 1 root root  4152940 Jul  8 03:18
>>> phoenix-4.7.0-HBase-1.2-thin-client.jar
>>> -rw-r--r-- 1 root root     2884 Jul  8 03:18
>>> phoenix-assembly-4.7.0-HBase-1.2-tests.jar
>>> lrwxrwxrwx 1 root root       34 Jul 22 17:32 phoenix-client.jar ->
>>> phoenix-4.7.0-HBase-1.2-client.jar
>>> -rw-r--r-- 1 root root  3631295 Jul  8 03:18
>>> phoenix-core-4.7.0-HBase-1.2.jar
>>> -rw-r--r-- 1 root root  1674792 Jul  8 03:18
>>> phoenix-core-4.7.0-HBase-1.2-tests.jar
>>> -rw-r--r-- 1 root root    35501 Jul  8 03:18
>>> phoenix-flume-4.7.0-HBase-1.2.jar
>>> -rw-r--r-- 1 root root    23736 Jul  8 03:18
>>> phoenix-flume-4.7.0-HBase-1.2-tests.jar
>>> -rw-r--r-- 1 root root   159771 Jul  8 03:18
>>> phoenix-pherf-4.7.0-HBase-1.2.jar
>>> -rw-r--r-- 1 root root  4479303 Jul  8 03:18
>>> phoenix-pherf-4.7.0-HBase-1.2-minimal.jar
>>> -rw-r--r-- 1 root root    58160 Jul  8 03:18
>>> phoenix-pherf-4.7.0-HBase-1.2-tests.jar
>>> -rw-r--r-- 1 root root    42216 Jul  8 03:18
>>> phoenix-pig-4.7.0-HBase-1.2.jar
>>> -rw-r--r-- 1 root root    43578 Jul  8 03:18
>>> phoenix-pig-4.7.0-HBase-1.2-tests.jar
>>> -rw-r--r-- 1 root root    18810 Jul  8 03:18
>>> phoenix-server-4.7.0-HBase-1.2.jar
>>> -rw-r--r-- 1 root root  3357692 Jul  8 03:18
>>> phoenix-server-4.7.0-HBase-1.2-runnable.jar
>>> -rw-r--r-- 1 root root    20170 Jul  8 03:18
>>> phoenix-server-4.7.0-HBase-1.2-tests.jar
>>> -rw-r--r-- 1 root root    10451 Jul  8 03:18
>>> phoenix-server-client-4.7.0-HBase-1.2.jar
>>> -rw-r--r-- 1 root root     7139 Jul  8 03:18
>>> phoenix-server-client-4.7.0-HBase-1.2-tests.jar
>>> lrwxrwxrwx 1 root root       34 Jul 22 17:32 phoenix-server.jar ->
>>> phoenix-4.7.0-HBase-1.2-server.jar
>>> -rw-r--r-- 1 root root    77327 Jul  8 03:18
>>> phoenix-spark-4.7.0-HBase-1.2.jar
>>> -rw-r--r-- 1 root root    91730 Jul  8 03:18
>>> phoenix-spark-4.7.0-HBase-1.2-tests.jar
>>> lrwxrwxrwx 1 root root       39 Jul 22 17:32 phoenix-thin-client.jar ->
>>> phoenix-4.7.0-HBase-1.2-thin-client.jar
>>> -rw-r--r-- 1 root root    16329 Jul  8 03:18
>>> phoenix-tracing-webapp-4.7.0-HBase-1.2.jar
>>> -rw-r--r-- 1 root root  2284964 Jul  8 03:18
>>> phoenix-tracing-webapp-4.7.0-HBase-1.2-runnable.jar
>>> -rw-r--r-- 1 root root     8065 Jul  8 03:18
>>> phoenix-tracing-webapp-4.7.0-HBase-1.2-tests.jar
>>>
>>
>>
>>> [ec2-user@ip-10-2-1-118 bin]$ ls -l /usr/lib/hbase/
>>> total 152732
>>> drwxr-xr-x 4 root root     4096 Jul 22 17:32 bin
>>> lrwxrwxrwx 1 root root       15 Jul 22 17:32 conf -> /etc/hbase/conf
>>> -rw-r--r-- 1 root root    20861 Jul  8 02:17 hbase-annotations-1.2.1.jar
>>> -rw-r--r-- 1 root root    14224 Jul  8 02:17
>>> hbase-annotations-1.2.1-tests.jar
>>> lrwxrwxrwx 1 root root       27 Jul 22 17:32 hbase-annotations.jar ->
>>> hbase-annotations-1.2.1.jar
>>> -rw-r--r-- 1 root root  1297581 Jul  8 02:17 hbase-client-1.2.1.jar
>>> lrwxrwxrwx 1 root root       22 Jul 22 17:32 hbase-client.jar ->
>>> hbase-client-1.2.1.jar
>>> -rw-r--r-- 1 root root   576307 Jul  8 02:17 hbase-common-1.2.1.jar
>>> -rw-r--r-- 1 root root   228279 Jul  8 02:17 hbase-common-1.2.1-tests.jar
>>> lrwxrwxrwx 1 root root       22 Jul 22 17:32 hbase-common.jar ->
>>> hbase-common-1.2.1.jar
>>> -rw-r--r-- 1 root root   131596 Jul  8 02:17 hbase-examples-1.2.1.jar
>>> lrwxrwxrwx 1 root root       24 Jul 22 17:32 hbase-examples.jar ->
>>> hbase-examples-1.2.1.jar
>>> -rw-r--r-- 1 root root    19531 Jul  8 02:17
>>> hbase-external-blockcache-1.2.1.jar
>>> lrwxrwxrwx 1 root root       35 Jul 22 17:32
>>> hbase-external-blockcache.jar -> hbase-external-blockcache-1.2.1.jar
>>> -rw-r--r-- 1 root root    95415 Jul  8 02:17
>>> hbase-hadoop2-compat-1.2.1.jar
>>> lrwxrwxrwx 1 root root       30 Jul 22 17:32 hbase-hadoop2-compat.jar ->
>>> hbase-hadoop2-compat-1.2.1.jar
>>> -rw-r--r-- 1 root root    36616 Jul  8 02:17
>>> hbase-hadoop-compat-1.2.1.jar
>>> lrwxrwxrwx 1 root root       29 Jul 22 17:32 hbase-hadoop-compat.jar ->
>>> hbase-hadoop-compat-1.2.1.jar
>>> -rw-r--r-- 1 root root    13194 Jul  8 02:17 hbase-it-1.2.1.jar
>>> -rw-r--r-- 1 root root  2837755 Jul  8 02:17 hbase-it-1.2.1-tests.jar
>>> lrwxrwxrwx 1 root root       18 Jul 22 17:32 hbase-it.jar ->
>>> hbase-it-1.2.1.jar
>>> -rw-r--r-- 1 root root   102090 Jul  8 02:17 hbase-prefix-tree-1.2.1.jar
>>> lrwxrwxrwx 1 root root       27 Jul 22 17:32 hbase-prefix-tree.jar ->
>>> hbase-prefix-tree-1.2.1.jar
>>> -rw-r--r-- 1 root root   116740 Jul  8 02:17 hbase-procedure-1.2.1.jar
>>> lrwxrwxrwx 1 root root       25 Jul 22 17:32 hbase-procedure.jar ->
>>> hbase-procedure-1.2.1.jar
>>> -rw-r--r-- 1 root root  4365816 Jul  8 02:17 hbase-protocol-1.2.1.jar
>>> lrwxrwxrwx 1 root root       24 Jul 22 17:32 hbase-protocol.jar ->
>>> hbase-protocol-1.2.1.jar
>>> -rw-r--r-- 1 root root    67347 Jul  8 02:17
>>> hbase-resource-bundle-1.2.1.jar
>>> lrwxrwxrwx 1 root root       31 Jul 22 17:32 hbase-resource-bundle.jar
>>> -> hbase-resource-bundle-1.2.1.jar
>>> -rw-r--r-- 1 root root   431393 Jul  8 02:17 hbase-rest-1.2.1.jar
>>> lrwxrwxrwx 1 root root       20 Jul 22 17:32 hbase-rest.jar ->
>>> hbase-rest-1.2.1.jar
>>> -rw-r--r-- 1 root root  4139927 Jul  8 02:17 hbase-server-1.2.1.jar
>>> -rw-r--r-- 1 root root  7459050 Jul  8 02:17 hbase-server-1.2.1-tests.jar
>>> lrwxrwxrwx 1 root root       22 Jul 22 17:32 hbase-server.jar ->
>>> hbase-server-1.2.1.jar
>>> -rw-r--r-- 1 root root    13051 Jul  8 02:17 hbase-shell-1.2.1.jar
>>> lrwxrwxrwx 1 root root       21 Jul 22 17:32 hbase-shell.jar ->
>>> hbase-shell-1.2.1.jar
>>> -rw-r--r-- 1 root root  2760746 Jul  8 02:17 hbase-thrift-1.2.1.jar
>>> lrwxrwxrwx 1 root root       22 Jul 22 17:32 hbase-thrift.jar ->
>>> hbase-thrift-1.2.1.jar
>>> drwxr-xr-x 7 root root     4096 Jul 22 17:32 hbase-webapps
>>> drwxr-xr-x 3 root root     4096 Jul 22 17:32 include
>>> drwxr-xr-x 3 root root    12288 Jul 22 17:32 lib
>>> lrwxrwxrwx 1 root root       14 Jul 22 17:32 logs -> /var/log/hbase
>>> -rw-r--r-- 1 root root 98170649 Jul 28 16:04 phoenix-client.jar
>>> -rw-r--r-- 1 root root  3631295 Jul 28 16:07
>>> phoenix-core-4.7.0-HBase-1.2.jar
>>> -rw-r--r-- 1 root root 25644258 Jul 28 16:04 phoenix-server.jar
>>> -rw-r--r-- 1 root root  4152940 Jul 28 16:04 phoenix-thin-client.jar
>>> lrwxrwxrwx 1 root root       14 Jul 22 17:32 pids -> /var/run/hbase
>>>
>>
>>
>>> [ec2-user@ip-10-2-* bin]$ HBASE_DIR=/usr/lib/hbase ./pherf-cluster.py
>>> -drop all -l -q -z localhost -schemaFile
>>> ./config/datamodel/user_defined_schema.sql -scenarioFile
>>> ./config/scenario/user_defined_scenario.xml
>>> HBASE_DIR environment variable is currently set to: /usr/lib/hbase
>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>> org/apache/phoenix/schema/TableNotFoundException
>>> at org.apache.phoenix.pherf.Pherf.<init>(Pherf.java:52)
>>> at org.apache.phoenix.pherf.Pherf.main(Pherf.java:188)
>>> Caused by: java.lang.ClassNotFoundException:
>>> org.apache.phoenix.schema.TableNotFoundException
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>> ... 2 more
>>
>>
>> It seems like some jar is missing or another path is needed in the -cp
>> list.
>>
>> Thanks ahead of time for your help!
>>
>> -nathan
>>
>
>

Mime
View raw message