Hi, all
I setup Eclipse for Hive development, then I start hive via click "Run -> Java 
Application". I typed "show tables" to check if my env could work. But I got 
the errors like:

Logging initialized using configuration in 
jar:file:/home/libing/hadoop/hadoop-0.20.2/hive/lib/hive-common-0.8.0-SNAPSHOT.jar!/hive-log4j.properties
Hive history file=/tmp/libing/hive_job_log_libing_201108282234_2097811740.txt
hive> show tables;
show tables;
FAILED: Error in metadata: 
org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: The class 
"org.apache.hadoop.hive.metastore.model.MDatabase" is not persistable. This 
means that it either hasnt been enhanced, or that the enhanced version of the 
file is not in the CLASSPATH (or is hidden by an unenhanced version), or the 
Meta-Data/annotations for the class are not found.
NestedThrowables:
org.datanucleus.exceptions.ClassNotPersistableException: The class 
"org.apache.hadoop.hive.metastore.model.MDatabase" is not persistable. This 
means that it either hasnt been enhanced, or that the enhanced version of the 
file is not in the CLASSPATH (or is hidden by an unenhanced version), or the 
Meta-Data/annotations for the class are not found.
FAILED: Execution Error, return code 1 from 
org.apache.hadoop.hive.ql.exec.DDLTask
hive> 

I have included all the libraries in the CLASSPATH, and can't find the reason 
of that problem.

Do you have some ideas on it?
Thanks a lot!

Bing

Reply via email to