You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2012/09/05 18:56:34 UTC
svn commit: r1381244 -
/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
Author: hashutosh
Date: Wed Sep 5 16:56:33 2012
New Revision: 1381244
URL: http://svn.apache.org/viewvc?rev=1381244&view=rev
Log:
HIVE-3075 : Improve HiveMetaStore logging (Travis Crawford via Ashutosh Chauhan)
Modified:
hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
Modified: hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
URL: http://svn.apache.org/viewvc/hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java?rev=1381244&r1=1381243&r2=1381244&view=diff
==============================================================================
--- hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java (original)
+++ hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java Wed Sep 5 16:56:33 2012
@@ -548,10 +548,7 @@ public class HiveMetaStore extends Thrif
public void create_database(final Database db)
throws AlreadyExistsException, InvalidObjectException, MetaException {
- startFunction("create_database", ": "
- + db.getName() + " "
- + db.getLocationUri() + " "
- + db.getDescription());
+ startFunction("create_database", ": " + db.toString());
boolean success = false;
try {
try {
@@ -788,7 +785,7 @@ public class HiveMetaStore extends Thrif
public boolean create_type(final Type type) throws AlreadyExistsException,
MetaException, InvalidObjectException {
- startFunction("create_type", ": " + type.getName());
+ startFunction("create_type", ": " + type.toString());
boolean success = false;
try {
create_type_core(getMS(), type);
@@ -970,8 +967,7 @@ public class HiveMetaStore extends Thrif
private void create_table(final Table tbl,
final EnvironmentContext envContext) throws AlreadyExistsException,
MetaException, InvalidObjectException {
- startFunction("create_table", ": db=" + tbl.getDbName() + " tbl="
- + tbl.getTableName());
+ startFunction("create_table", ": " + tbl.toString());
boolean success = false;
try {
create_table_core(getMS(), tbl, envContext);
@@ -2246,8 +2242,7 @@ public class HiveMetaStore extends Thrif
@Override
public Index add_index(final Index newIndex, final Table indexTable)
throws InvalidObjectException, AlreadyExistsException, MetaException, TException {
- startFunction("add_index", ": db=" + newIndex.getDbName() + " tbl="
- + newIndex.getOrigTableName() + " index=" + newIndex.getIndexName());
+ startFunction("add_index", ": " + newIndex.toString() + " " + indexTable.toString());
Index ret = null;
try {
ret = add_index_core(getMS(), newIndex, indexTable);