incubator-hcatalog-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 徐冰 <>
Subject Re:Re: A bug in hcatalog?
Date Fri, 11 Jan 2013 03:47:07 GMT
Thx for your advice!
I have installed hive-0.9.0 replacing hive-0.8.1 for trying. And create table,load data,select,etc
operations are all normal.
But when use hcat to create table,NPEs are the same.

I didn't change the hive-site.xml conf file in $HIVE_HOME/conf and $HCAT_HOME/etc/hcatalog,
and just stay it as previous.

Do you have the compiled hcatalog installation file : hcatalog-0.4.0.tar.gz?If yes,can you
mail it to me? Thx~

Or do you have other advice?

Best Regards,


At 2013-01-11 05:51:39,"Mithun Radhakrishnan" <> wrote:

Hello, Janet.

Unless I'm mistaken, HCatalog 0.4 should really be used with Hive 0.9.0/0.9.1. It looks like
you're trying to get this going with Hive 0.8.1. Would you please run against Hive-9 and check
if you're still hitting NPEs? This shouldn't be failing at all.


From: 徐冰 <>
Sent: Wednesday, January 9, 2013 6:53 PM
Subject: A bug in hcatalog?

These days,I have tried to install hcatalog on a hadoop cluster composed of three nodes.
The related environment detailed info is shown as following:
Hadoop version: hadoop-0.20.2
Hive version: hive-0.8.1
HCatalog version: hcatalog-0.4.0
Ant version: Apache-ant-1.8.4
Thrift version:thrift-0.9.0
Mysql version:Mysql-5.1.47
The installation steps I followed is like this(MapReduce job can run on hadoop cluster correctly):
Step 1:Compile the hcatalog-src-0.4.0-incubating to the install file hcatalog-0.4.0.tar.gz
Step 2:install thrift and test installation.
Step 3:install hive and config the metastore to mysql as the local metastore rather than remote
metastore.Then test by loading data into hive from local and select.All the operations can
be done rightly.And the data on HDFS and mysql are all correct.
Step 4:Untar the hcatalog-0.4.0.tar.gz and install hcatalog-0.4.0 server follow the steps
given by apache website.And then I started the hive server service.
Step 5:Start the hcat server,also can work normally.Then I tried to create a table,but it
failed.Then I enter the $HIVE_LOG_DIR/hive.log to see the error info:
2013-01-09 16:51:01,158 ERROR DataNucleus.Plugin ( - Bundle "org.eclipse.jdt.core"
requires "org.eclipse.core.resources" but it cannot be resolved.
2013-01-09 16:51:01,158 ERROR DataNucleus.Plugin ( - Bundle "org.eclipse.jdt.core"
requires "org.eclipse.core.resources" but it cannot be resolved.
2013-01-09 16:51:01,173 ERROR DataNucleus.Plugin ( - Bundle "org.eclipse.jdt.core"
requires "org.eclipse.core.runtime" but it cannot be resolved.
2013-01-09 16:51:01,173 ERROR DataNucleus.Plugin ( - Bundle "org.eclipse.jdt.core"
requires "org.eclipse.core.runtime" but it cannot be resolved.
2013-01-09 16:51:01,178 ERROR DataNucleus.Plugin ( - Bundle "org.eclipse.jdt.core"
requires "org.eclipse.text" but it cannot be resolved.
2013-01-09 16:51:01,178 ERROR DataNucleus.Plugin ( - Bundle "org.eclipse.jdt.core"
requires "org.eclipse.text" but it cannot be resolved.
2013-01-09 16:51:24,243 ERROR ql.Driver ( - FAILED: Error
in semantic analysis: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.NullPointerException
org.apache.hadoop.hive.ql.parse.SemanticException: org.apache.hadoop.hive.ql.metadata.HiveException:
 at org.apache.hcatalog.cli.SemanticAnalysis.CreateTableHook.authorize(
 at org.apache.hcatalog.cli.SemanticAnalysis.CreateTableHook.postAnalyze(
 at org.apache.hcatalog.cli.SemanticAnalysis.HCatSemanticAnalyzer.postAnalyze(
 at org.apache.hadoop.hive.ql.Driver.compile(
 at org.apache.hadoop.hive.ql.Driver.compile(
 at org.apache.hcatalog.cli.HCatCli.processCmd(
 at org.apache.hcatalog.cli.HCatCli.processLine(
 at org.apache.hcatalog.cli.HCatCli.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(
Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.NullPointerException
 at org.apache.hadoop.hive.ql.metadata.Hive.getDatabase(
 at org.apache.hcatalog.cli.SemanticAnalysis.CreateTableHook.authorize(
 ... 14 more
Caused by: java.lang.NullPointerException
 at java.lang.Class.forName(
 at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getClass(
 at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.getMS(
 at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.executeWithRetry(
 at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.createDefaultDB(
 at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(
 at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.<init>(
 at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(
 at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(
 at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(
 at org.apache.hadoop.hive.ql.metadata.Hive.getDatabase(
 ... 15 more
Then I can show the hive-stie.xml in $HCAT_CONF_DIR/etc/hcatalog/conf info:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   See the License for the specific language governing permissions and
   limitations under the License.
  <description>controls whether to connect to remove metastore server or open a new
metastore server in Hive Client JVM</description>
  <description>JDBC connect string for a JDBC metastore</description>
  <description>Driver class name for a JDBC metastore</description>
  <description>username to use against metastore database</description>
  <description>password to use against metastore database</description>
  <description>location of default database for the warehouse</description>

Whether it is a bug exist in hcatalog-0.4.0?
Or has anyone met the same problem?
Pls contact with me if you has anwser or advice to fix it.Thx a lot~


Best Regards,


Best Regards,
E-mail: OR: 
View raw message