본문 바로가기

Dev tips and tips

Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient





[hadoop@h001 hive]$ ./bin/hive
WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files.
Logging initialized using configuration in file:/home/hadoop/hive/conf/hive-log4j.properties
Hive history file=/tmp/hadoop/hive_job_log_hadoop_201306251755_694415549.txt
hive> show tables;               
OK
Time taken: 35.976 seconds
hive>
[3]+  Stopped                 ./bin/hive
[hadoop@h001 hive]$ ./bin/hive
WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files.
Logging initialized using configuration in file:/home/hadoop/hive/conf/hive-log4j.properties
Hive history file=/tmp/hadoop/hive_job_log_hadoop_201306251756_1833442973.txt
hive> show tables;
FAILED: Error in metadata: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
hive> exit;
[hadoop@h001 hive]$ ./bin/hive
WARNING: org.apache.hadoop.metrics.jvm.EventCounter is deprecated. Please use org.apache.hadoop.log.metrics.EventCounter in all the log4j.properties files.
Logging initialized using configuration in file:/home/hadoop/hive/conf/hive-log4j.properties
Hive history file=/tmp/hadoop/hive_job_log_hadoop_201306251757_1600599208.txt
hive> show tables;
OK
Time taken: 50.305 seconds
hive>




[hadoop@h001 hive]$ ls -alrt

-rw-rw-r--.  1 hadoop hadoop   348 Jun 25 17:57 derby.log
drwxrwxr-x.  5 hadoop hadoop  4096 Jun 25 17:58 metastore_db
[hadoop@h001 hive]$