incubator-hcatalog-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Truong <>
Subject Could not set up Hcatalog.
Date Fri, 08 Jun 2012 01:05:51 GMT
Dear all,

I am new to Hive and Hcatalog and in the process of setting one up.
Currently Hive, mysql, Hcatalog are all in the same machine.  Hadoop
cluster is somewhere else in other machines. mysql connector is in
/usr/lib/hive/lib.  Hive was installed in /usr/lib/hive.

I created hive user and /usr/local/hive and install hcatalog in /usr/local/hive

I started the metatstore server as:
./hive --config ../conf --service metastore
and saw this  "metastore.HiveMetaStore: Started the new metaserver on
port [9083]..."

I also started the Hive Thrift server and saw this: " Starting hive
server on port 10000"

cat hcatalog/
export METASTORE_PORT=9083

Here are some parameters in hive-site.xml
hive.metastore.local true
hive.metastore.uris thrift://

I started hcatalog but it did not work at all:

 HIVE_HOME=/usr/lib/hive/ sbin/ start
Started metastore server init, testing if initialized correctly...
Metastore startup failed, see /usr/local/hive/sbin/../var/log/hcat.err

 cat var/log/hcat.err
Exception in thread "main" java.lang.NullPointerException
	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.apache.hadoop.util.RunJar.main(

It seems like Hcatalog could not connect to the metastore.

Could you please tell me what I did wrong?


View raw message